I have used the following commands to solve a linear programing problem in sagemath.
p = MixedIntegerLinearProgram(maximization=True, solver='GLPK') x = p.new_variable(nonnegative=True) p.set_objective(12x[0] + 3x[1]+x[2]) p.add_constraint(10x[0] + 2x[1]+x[2] <= 100) p.add_constraint(7x[0] + 3x[1]+2x[2] <= 77) p.add_constraint(2x[0] + 4*x[1]+x[2] <= 80) p.show() print 'The optimal value:', QQ(p.solve())
It solved and gave the answer. But I want to generate a step by step table to explain to the students.
Is there any possible way to get the step by step table? or should we have to modify the program to do so?