public class IloOplCplexBasis
extends java.lang.Object
IloCplex and restore it on other instances of IloCplex.IloCplex::setBasisStatuses(BasisStatusArray,IloNumVarArray,BasisStatusArray,IloConstraintArray)IloCplex::getBasisStatuses(BasisStatusArray,IloNumVarArray,BasisStatusArray,IloConstraintArray)| Modifier and Type | Method and Description |
|---|---|
void |
attach(IloNumVarMap vars,
IloIntMap statuses)
Attach a variable map
vars to a value map statuses. |
void |
end()
Clears the memory used by this object
|
boolean |
getBasis(IloCplex cplex)
Saves basis information for a CPLEX instance.
|
int |
getNcols()
Returns the number of columns in the currently saved basis.
|
int |
getNrows()
Returns the number of rows in the currently saved basis.
|
int |
getStatus()
Returns the CPLEX status of the last invocation of CPLEX API.
|
boolean |
setBasis(IloCplex cplex)
Restores basis information for a CPLEX instance.
|
public boolean getBasis(IloCplex cplex)
cplex - Saves the basis currently available on the given CPLEX instance.IloTrue if the basis was successfully saved.
public boolean setBasis(IloCplex cplex)
cplex - Restores this basis on the given CPLEX instance.IloTrue if the basis was successfully restored.
public void attach(IloNumVarMap vars, IloIntMap statuses)
vars to a value map statuses. After some attachments have been done, only the elements with attachments are taken into account to get/set basis.vars - The variable map to be attached.statuses - The value map.public void end()
public int getStatus()
An integer to indicate the status of the CPLEX instance.
public int getNrows()
An integer to indicate the number of rows in the currently saved basis.
public int getNcols()
An integer to indicate the number of columns in the currently saved basis.