Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels are required #26

Closed
ahenshaw opened this issue Jan 2, 2024 · 3 comments
Closed

Labels are required #26

ahenshaw opened this issue Jan 2, 2024 · 3 comments

Comments

@ahenshaw
Copy link
Collaborator

ahenshaw commented Jan 2, 2024

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
Copy link
Owner

dandxy89 commented Jan 3, 2024

@ahenshaw

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

Glad you've found this repo useful.

@ahenshaw
Copy link
Collaborator Author

ahenshaw commented Jan 3, 2024

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
Copy link
Collaborator Author

ahenshaw commented Jan 4, 2024

Your fix to allow no labels for constraints works!

@dandxy89 dandxy89 closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants