Initializing help system before first use

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