dandxy89 / lp_parser_rs

Rust LP file Parser
Apache License 2.0
3 stars 1 forks source link

Labels are required #26

Closed ahenshaw closed 6 months ago

ahenshaw commented 6 months ago

In this simple LP file:

\ LP format example

Minimize
obj:  x + 10 y
Subject To
r01:  x + y  >= 1
Binaries
 x y
End

If I remove the "obj:" label, then "x" is taken as the name of the objective and not processed as part of the equation.

dandxy89 commented 6 months ago

@ahenshaw

All of the issues raised should now be resolved. Would you mind re-testing?

Glad you've found this repo useful.

ahenshaw commented 6 months ago

Thanks! This fixes the label issue for the objective, but it doesn't seem to fix it for the constraints. If I remove the "r01: '" from the LP given above, then "x" is grabbed for the label.

ahenshaw commented 6 months ago

Your fix to allow no labels for constraints works!