Constraint parser module
OpenSEFA.ConstraintParserModule — Module
Parse equations and bound constraints from string format into a more structured format.
OpenSEFA.ConstraintParserModule.BoundConstraint — Type
Type for bound constraints (lower <= variable <= upper).
OpenSEFA.ConstraintParserModule.ParsedConstraint — Type
Simplified parser with unified equation handling.
OpenSEFA.ConstraintParserModule.determine_constraint_type — Method
Helper function to determine the constraint type.
OpenSEFA.ConstraintParserModule.parse_bound_constraint — Method
Parse bound constraints with single or double inequality symbols.
OpenSEFA.ConstraintParserModule.parse_constraint — Method
Main parsing function that handles all constraint types.
OpenSEFA.ConstraintParserModule.parse_equation — Method
Parse any equality constraint (assignments, equations) into unified form: LHS - RHS = 0.
OpenSEFA.ConstraintParserModule.parse_expression — Method
Helper function to parse expression into terms.
OpenSEFA.ConstraintParserModule.parse_term — Method
Helper to extract the coefficient and variables.