simplex icon indicating copy to clipboard operation
simplex copied to clipboard

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

Open invisi-splat opened this issue 1 year ago • 0 comments

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.

invisi-splat avatar Jan 24 '23 11:01 invisi-splat