Skeleton of a solver interface.
More...
Skeleton of a solver interface.
def checkFeasible |
( |
|
self | ) |
|
Raise an exception if method isFeasible returns false.
Raise an exception if method isOptimal returns false.
Return true if the solution is optimal.
- Returns
- True if the solution is optimal.
Return true if the solution is optimal.
- Returns
- True if the solution is optimal.
def objectiveValue |
( |
|
self | ) |
|
Get the objective value.
- Returns
- Objective value.
def silentCall |
( |
|
self, |
|
|
|
command, |
|
|
|
cwd = "" |
|
) |
| |
Call a commend without display.
- Parameters
-
command | Command to execute |
cwd | Working directory. |
- Returns
- The return status of the command.
def solve |
( |
|
self, |
|
|
|
model, |
|
|
|
solution |
|
) |
| |
Solve a problem.
- Parameters
-
model | Model file. |
solution | Target solution file. |
def variableValue |
( |
|
self, |
|
|
|
variableName = 'x' |
|
) |
| |
Get the value of a variable.
- Parameters
-
variableName | Name of the variable. |
- Returns
- Value, 0 if not found.
def variableVectorValue |
( |
|
self, |
|
|
|
maxIndex, |
|
|
|
variablePrefix = 'x#' , |
|
|
|
minIndex = 0 , |
|
|
|
variableSuffix = '' |
|
) |
| |
Get a vector of variable values.
- Parameters
-
maxIndex | Maximum index. |
variablePrefix | Prefix of the variables to get. For instance : 'x#' becomes 'x#0','x#1',... |
minIndex | Minimum index. |
variableSuffix | Suffix of the variables to get. Appended after the index number. |
- Returns
- Vector of values.
Additional debug informations to display.
Last model used by the solve method.
Last solution obtained by the solve method.
The documentation for this class was generated from the following file: