Ask Your Question

# Interactive simple Method The interactive simplex method is a very nice pedagogical tool. But it seems to work only with 2 variables. Could it be expanded at least until 3/4 and more constraints. I plan to use it to teach and do exams in a computer room if it is possible to expand it ?

edit retag close merge delete

## 1 Answer

Sort by » oldest newest most voted The documentation shows many examples with two variables, but in fact there is no restriction on the number of variables or constraints. Example with three variables and three constraints:

A = ([1, 1, 0], [3, 1, 0], [0, 0, 1])
b = (1000, 1500, 20)
c = (10, 5, 1)
P = InteractiveLPProblem(A, b, c, ["C", "B", "A"], variable_type=">=")
show(P)
P = P.standard_form()
P.run_simplex_method()


Three variables and two constraints:

A = ([1, 1, 0], [3, 1, 0])
b = (1000, 1500)
c = (10, 5, 1)
P = InteractiveLPProblem(A, b, c, ["C", "B", "A"], variable_type=">=")
show(P)
P = P.standard_form()
P.run_simplex_method()


Etc.

more

## Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

## Stats

Asked: 2019-09-14 10:54:40 +0200

Seen: 63 times

Last updated: Sep 14 '19