problem.getmipsol
problem.getmipsol |
Purpose
Used to obtain the solution values of the last MIP solution that was found.
Synopsis
problem.getmipsol(x, slack)
Arguments
x
|
Array to store the values of the primal variables. May be
None if not required.
|
slack
|
Array to store the values of the slack variables. May be
None if not required.
|
Example
The following sequence of commands will get the solution (
x) of the last MIP solution for a problem:
x = [] p.mipoptimize() p.getmipsol(x) print("solution:", x)
Related topics