problem.getmipsolval
problem.getmipsolval |
Purpose
Used to obtain a single solution value of the last MIP solution that was found.
Synopsis
x, slack = problem.getmipsolval(column=None, row=None)
Arguments
prob
|
The current problem.
|
col
|
Column index of the variable for which to return the solution value. May be
None.
|
row
|
Row index of the constraint for which to return the solution value. May be
None.
|
x
|
The returned value of the primal variable, or
-xpress.infinity if
column is
None.
|
slack
|
The returned value of the slack variable, or
-xpress.infinity if
row is
None.
|
Related topics