#include <OsiDylpWarmStartBasis.hpp>
Public Member Functions | |
Methods to get and set basis information. | |
Methods for structural and artificial variables are inherited from CoinWarmStartBasis. Constraint status is coded using the CoinWarmStartBasis::Status codes. Active constraints are coded as atLowerBound, inactive as isFree. | |
int | numberActiveConstraints () const |
Return the number of active constraints. | |
Status | getConStatus (int i) const |
Return the status of the specified constraint. | |
void | setConStatus (int i, Status st) |
Set the status of the specified constraint. | |
char * | getConstraintStatus () |
Return the status array for constraints. | |
const char * | getConstraintStatus () const |
const overload for getConstraintStatus() | |
void | setPhase (dyphase_enum phase) |
Set the lp phase for this basis. | |
dyphase_enum | getPhase () const |
Get the lp phase for this basis. | |
Basis `diff' methods | |
CoinWarmStartDiff * | generateDiff (const CoinWarmStart *const oldCWS) const |
Generate a `diff' that can convert oldBasis to this basis. | |
void | applyDiff (const CoinWarmStartDiff *const cwsdDiff) |
Apply diff to this basis. | |
Methods to modify the warm start object | |
void | setSize (int ns, int na) |
Set basis capacity; existing basis is discarded. | |
void | resize (int numRows, int numCols) |
Set basis capacity; existing basis is maintained. | |
void | compressRows (int tgtCnt, const int *tgts) |
Delete a set of rows from the basis. | |
void | deleteRows (int number, const int *which) |
Delete a set of rows from the basis. | |
Constructors, destructors, and related functions | |
OsiDylpWarmStartBasis () | |
Default constructor (empty object). | |
OsiDylpWarmStartBasis (int ns, int na, const char *sStat, const char *aStat, const char *cStat=0) | |
Constructs a warm start object with the specified status arrays. | |
OsiDylpWarmStartBasis (const CoinWarmStartBasis &cwsb) | |
Construct an OsiDylpWarmStartBasis from a CoinWarmStartBasis. | |
OsiDylpWarmStartBasis (const OsiDylpWarmStartBasis &ws) | |
Copy constructor. | |
CoinWarmStart * | clone () const |
`Virtual constructor' | |
~OsiDylpWarmStartBasis () | |
Destructor. | |
OsiDylpWarmStartBasis & | operator= (const OsiDylpWarmStartBasis &rhs) |
Assignment. | |
void | assignBasisStatus (int ns, int na, char *&sStat, char *&aStat, char *&cStat) |
Assign the status vectors to be the warm start information. | |
void | assignBasisStatus (int ns, int na, char *&sStat, char *&aStat) |
Assign the status vectors to be the warm start information. | |
Miscellaneous methods | |
void | print () const |
Prints in readable format (for debug). | |
void | checkBasis () const |
Performs basis consistency checks (for debug). | |
Private Attributes | |
Constraint status private data members | |
dyphase_enum | phase_ |
dylp phase | |
char * | constraintStatus_ |
vector of constraint status information |
This derived class is necessary because dylp by default works with a subset of the full constraint system. The warm start object needs to contain a list of the active constraints in addition to the status information included in CoinWarmStartBasis. It is also convenient to include the solver phase in the warm start object.
Definition at line 40 of file OsiDylpWarmStartBasis.hpp.
|
Default constructor (empty object).
|
|
Constructs a warm start object with the specified status arrays.
|
|
Construct an OsiDylpWarmStartBasis from a CoinWarmStartBasis.
|
|
Copy constructor.
|
|
Destructor.
|
|
Return the number of active constraints.
|
|
Return the status of the specified constraint.
Definition at line 60 of file OsiDylpWarmStartBasis.hpp. References constraintStatus_. |
|
Set the status of the specified constraint.
Definition at line 68 of file OsiDylpWarmStartBasis.hpp. References constraintStatus_. |
|
Return the status array for constraints.
Definition at line 77 of file OsiDylpWarmStartBasis.hpp. |
|
Definition at line 85 of file OsiDylpWarmStartBasis.hpp. |
|
Set the lp phase for this basis.
Definition at line 92 of file OsiDylpWarmStartBasis.hpp. References phase_. |
|
Get the lp phase for this basis.
Definition at line 96 of file OsiDylpWarmStartBasis.hpp. |
|
Generate a `diff' that can convert oldBasis to this basis.
|
|
Apply
|
|
Set basis capacity; existing basis is discarded.
|
|
Set basis capacity; existing basis is maintained.
|
|
Delete a set of rows from the basis.
|
|
Delete a set of rows from the basis.
|
|
`Virtual constructor'
|
|
Assignment.
|
|
Assign the status vectors to be the warm start information.
|
|
Assign the status vectors to be the warm start information.
|
|
Prints in readable format (for debug).
|
|
Performs basis consistency checks (for debug).
|
|
dylp phase
Definition at line 212 of file OsiDylpWarmStartBasis.hpp. Referenced by setPhase(). |
|
vector of constraint status information
Definition at line 214 of file OsiDylpWarmStartBasis.hpp. Referenced by getConStatus(), and setConStatus(). |