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

Fix solving objective functions of form "p = x+y+2" or similar #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

invisi-splat
Copy link

There's an issue with the current version of the LP calculator - inputting an objective function with a constant in it (e.g. M = m-4 or p = x+y+2) doesn't correctly calculate the final value of the objective variable. It instead creates a column with an empty variable name in the tableau.

image

I've fixed this by moving this constant to the RHS of the objective row. The algorithm then continues as usual.

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

Successfully merging this pull request may close these issues.

1 participant