problem.getSlack
problem.getSlack |
Purpose
Return the slack for all constraints of the problem w.r.t. the solution found by
solve(). This function works both with continuous and mixed-integer optimization problems.
Synopsis
s = problem.getSlack()
Example
p.solve() print("slack:", p.getSlack())
Related topics
problem.solve,
problem.getlpsol,
problem.getmipsol,
problem.getSolution,
problem.getDual,
problem.getRCost,
problem.getProbStatus,
problem.getProbStatusString.