Hello everyone! I would like to ask a question about the solvability of a linear programming problem.
I use sagemath to check whether my LP problem has any feasible solution or not.
The program is similar to the following one without details
sage: p = MixedIntegerLinearProgram(maximization=False, solver = "PPL")
sage: w = p.new_variable(integer=True, nonnegative=True)
sage: p.set_objective(w[0])
Then I use p.solve() to solve this problem, and when there is no feasible solution, the program will
print out quite a few sentences with the last one like this:
MIPSolverException: PPL : There is no feasible solution
My question is whether I can define a True/False function such that when the LP porble p has any feasible solution,
then it returens True; otherwise it returns False?
Thank you very much for your kind help!