I find missleading the following comportment
%display latex p = MixedIntegerLinearProgram(maximization=False, solver = "GLPK") w = p.new_variable(integer=True, nonnegative=True) p.add_constraint(w[0] + w[1] + w[2] - 14w[3] == 1) p.add_constraint(w[1] + 2w[2] - 8w[3] == 0) p.add_constraint(2w[2] - 3w[3] == 0) p.add_constraint(w[0] - w[1] - w[2] >= 0) p.add_constraint(w[3] >= 1) p.set_objective(w[2]+ 2w[3]) p.show()
Which gives the program in x[i] terms not in w[i]'s because later when I need the optimal value of the variables through the command
val=p.get_values(w or x)? Is there a way to have the resulting programs written in x and written in Latex ?