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

ReadLP #8

Open
steruhs opened this issue Aug 26, 2020 · 0 comments
Open

ReadLP #8

steruhs opened this issue Aug 26, 2020 · 0 comments

Comments

@steruhs
Copy link

steruhs commented Aug 26, 2020

When I read in the LP below with the ReadLP method, I get as result x_1 = 2, x_2 = 0, x_3 = 2, x_4 = 0 which is clearly wrong when looking at the LP.

\* Problem: Unknown *\

Maximize
obj: 0 x_1

Subject To
r_1: + x_2 + x_1 = 2
r_2: - x_2 = 0
r_3: + x_4 + x_3 = 2
r_4: - x_3 = 0
r_5: + x_3 + x_1 <= 10
r_6: + x_4 + x_2 <= 8

End

When I don't read in the LP but create a Prob datastructure it seems to work.

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

1 participant