#include <ClpModel.hpp>
Inheritance diagram for ClpModel:
Public Methods | |
Constructors and destructor | |
Note - copy methods copy ALL data so can chew up memory until other copy is freed | |
ClpModel () | |
Default constructor. | |
ClpModel (const ClpModel &rhs, int scalingMode=-1) | |
Copy constructor. | |
ClpModel & | operator= (const ClpModel &rhs) |
Assignment operator. This copies the data. | |
ClpModel (const ClpModel *wholeModel, int numberRows, const int *whichRows, int numberColumns, const int *whichColumns, bool dropNames=true, bool dropIntegers=true) | |
Subproblem constructor. | |
~ClpModel () | |
Destructor. | |
Load model - loads some stuff and initializes others | |
void | loadProblem (const ClpMatrixBase &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const double *rowObjective=NULL) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const double *rowObjective=NULL) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const double *rowObjective=NULL) |
Just like the other loadProblem() method except that the matrix is given in a standard column major ordered format (without gaps). | |
void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const int *length, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const double *rowObjective=NULL) |
This one is for after presolve to save memory. | |
void | loadQuadraticObjective (const int numberColumns, const CoinBigIndex *start, const int *column, const double *element) |
Load up quadratic objective. | |
void | loadQuadraticObjective (const CoinPackedMatrix &matrix) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | deleteQuadraticObjective () |
Get rid of quadratic objective. | |
void | setRowObjective (const double *rowObjective) |
This just loads up a row objective. | |
int | readMps (const char *filename, bool keepNames=false, bool ignoreErrors=false) |
Read an mps file from the given filename. | |
void | copyInIntegerInformation (const char *information) |
Copy in integer informations. | |
void | deleteIntegerInformation () |
Drop integer informations. | |
void | resize (int newNumberRows, int newNumberColumns) |
Resizes rim part of model. | |
void | deleteRows (int number, const int *which) |
Deletes rows. | |
void | addRows (int number, const double *rowLower, const double *rowUpper, const int *rowStarts, const int *columns, const double *elements) |
Add rows. | |
void | addRows (int number, const double *rowLower, const double *rowUpper, const int *rowStarts, const int *rowLengths, const int *columns, const double *elements) |
Add rows. | |
void | addRows (int number, const double *rowLower, const double *rowUpper, const CoinPackedVectorBase *const *rows) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | deleteColumns (int number, const int *which) |
Deletes columns. | |
void | addColumns (int number, const double *columnLower, const double *columnUpper, const double *objective, const int *columnStarts, const int *rows, const double *elements) |
Add columns. | |
void | addColumns (int number, const double *columnLower, const double *columnUpper, const double *objective, const int *columnStarts, const int *columnLengths, const int *rows, const double *elements) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | addColumns (int number, const double *columnLower, const double *columnUpper, const double *objective, const CoinPackedVectorBase *const *columns) |
Loads a problem (the constraints on the rows are given by lower and upper bounds). | |
void | borrowModel (ClpModel &otherModel) |
Borrow model. | |
void | returnModel (ClpModel &otherModel) |
Return model - nulls all arrays so can be deleted safely also updates any scalars. | |
void | createEmptyMatrix () |
Create empty ClpPackedMatrix. | |
void | dropNames () |
Drops names - makes lengthnames 0 and names empty. | |
void | copyNames (std::vector< std::string > &rowNames, std::vector< std::string > &columnNames) |
Copies in names. | |
int | writeMps (const char *filename, int formatType=0, int numberAcross=2, double objSense=0.0) const |
Write the problem in MPS format to the specified file. | |
gets and sets | |
int | numberRows () const |
Number of rows. | |
int | getNumRows () const |
Number of rows. | |
int | getNumCols () const |
Number of columns. | |
int | numberColumns () const |
Number of rows. | |
double | primalTolerance () const |
Primal tolerance to use. | |
void | setPrimalTolerance (double value) |
Number of rows. | |
double | dualTolerance () const |
Dual tolerance to use. | |
void | setDualTolerance (double value) |
Number of rows. | |
double | dualObjectiveLimit () const |
Dual objective limit. | |
void | setDualObjectiveLimit (double value) |
Number of rows. | |
double | objectiveOffset () const |
Objective offset. | |
void | setObjectiveOffset (double value) |
Number of rows. | |
std::string | problemName () const |
Number of rows. | |
int | numberIterations () const |
Number of iterations. | |
int | getIterationCount () const |
Number of rows. | |
void | setNumberIterations (int numberIterations) |
Number of rows. | |
int | solveType () const |
Solve type - 1 simplex, 2 simplex interface, 3 Interior. | |
void | setSolveType (int type) |
Number of rows. | |
int | maximumIterations () const |
Maximum number of iterations. | |
void | setMaximumIterations (int value) |
Number of rows. | |
double | maximumSeconds () const |
Maximum time in seconds (from when set called). | |
void | setMaximumSeconds (double value) |
Number of rows. | |
bool | hitMaximumIterations () const |
Returns true if hit maximum iterations (or time). | |
int | status () const |
Status of problem: 0 - optimal 1 - primal infeasible 2 - dual infeasible 3 - stopped on iterations or time 4 - stopped due to errors 5 - stopped by event handler (virtual int ClpEventHandler::event()). | |
void | setProblemStatus (int problemStatus) |
Set problem status. | |
int | secondaryStatus () const |
Secondary status of problem - may get extended 0 - none 1 - primal infeasible because dual limit reached 2 - scaled problem optimal - unscaled problem has primal infeasibilities 3 - scaled problem optimal - unscaled problem has dual infeasibilities 4 - scaled problem optimal - unscaled problem has primal and dual infeasibilities 100 up - translation of enum from ClpEventHandler. | |
void | setSecondaryStatus (int status) |
Number of rows. | |
bool | isAbandoned () const |
Are there a numerical difficulties? | |
bool | isProvenOptimal () const |
Is optimality proven? | |
bool | isProvenPrimalInfeasible () const |
Is primal infeasiblity proven? | |
bool | isProvenDualInfeasible () const |
Is dual infeasiblity proven? | |
bool | isPrimalObjectiveLimitReached () const |
Is the given primal objective limit reached? | |
bool | isDualObjectiveLimitReached () const |
Is the given dual objective limit reached? | |
bool | isIterationLimitReached () const |
Iteration limit reached? | |
double | optimizationDirection () const |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. | |
double | getObjSense () const |
Number of rows. | |
void | setOptimizationDirection (double value) |
Number of rows. | |
double * | primalRowSolution () const |
Primal row solution. | |
const double * | getRowActivity () const |
Number of rows. | |
double * | primalColumnSolution () const |
Primal column solution. | |
const double * | getColSolution () const |
Number of rows. | |
void | setColSolution (const double *input) |
Number of rows. | |
double * | dualRowSolution () const |
Dual row solution. | |
const double * | getRowPrice () const |
Number of rows. | |
double * | dualColumnSolution () const |
Reduced costs. | |
const double * | getReducedCost () const |
Number of rows. | |
double * | rowLower () const |
Row lower. | |
const double * | getRowLower () const |
Number of rows. | |
double * | rowUpper () const |
Row upper. | |
const double * | getRowUpper () const |
Number of rows. | |
const double * | rowScale () const |
Scaling. | |
const double * | columnScale () const |
Number of rows. | |
void | setRowScale (double *scale) |
Number of rows. | |
void | setColumnScale (double *scale) |
Number of rows. | |
double | objectiveScale () const |
Scaling of objective. | |
void | setObjectiveScale (double value) |
Number of rows. | |
double | rhsScale () const |
Scaling of rhs and bounds. | |
void | setRhsScale (double value) |
Number of rows. | |
void | scaling (int mode=1) |
Sets or unsets scaling, 0 -off, 1 equilibrium, 2 geometric, 3, auto, 4 dynamic(later). | |
void | unscale () |
If we constructed a "really" scaled model then this reverses the operation. | |
int | scalingFlag () const |
Gets scalingFlag. | |
double * | objective () const |
Objective. | |
double * | objective (const double *solution, double &offset, bool refresh=true) const |
Number of rows. | |
const double * | getObjCoefficients () const |
Number of rows. | |
double * | rowObjective () const |
Row Objective. | |
const double * | getRowObjCoefficients () const |
Number of rows. | |
double * | columnLower () const |
Column Lower. | |
const double * | getColLower () const |
Number of rows. | |
double * | columnUpper () const |
Column Upper. | |
const double * | getColUpper () const |
Number of rows. | |
CoinPackedMatrix * | matrix () const |
Matrix (if not ClpPackedmatrix be careful about memory leak. | |
int | getNumElements () const |
Number of elements in matrix. | |
double | getSmallElementValue () const |
Small element value - elements less than this set to zero, default is 1.0e-20. | |
void | setSmallElementValue (double value) |
Number of rows. | |
ClpMatrixBase * | rowCopy () const |
Row Matrix. | |
ClpMatrixBase * | clpMatrix () const |
Clp Matrix. | |
void | replaceMatrix (ClpMatrixBase *matrix) |
Replace Clp Matrix (current is not deleted and new is used) So up to user to delete one. | |
double | objectiveValue () const |
Objective value. | |
double | getObjValue () const |
Number of rows. | |
char * | integerInformation () const |
Integer information. | |
double * | infeasibilityRay () const |
Infeasibility/unbounded ray (NULL returned if none/wrong) Up to user to use delete [] on these arrays. | |
double * | unboundedRay () const |
Number of rows. | |
bool | statusExists () const |
See if status array exists (partly for OsiClp). | |
unsigned char * | statusArray () const |
Return address of status array (char[numberRows+numberColumns]). | |
unsigned char * | statusCopy () const |
Return copy of status array (char[numberRows+numberColumns]), use delete []. | |
void | copyinStatus (const unsigned char *statusArray) |
Copy in status vector. | |
void | setUserPointer (void *pointer) |
User pointer for whatever reason. | |
void * | getUserPointer () const |
Number of rows. | |
Message handling | |
void | passInMessageHandler (CoinMessageHandler *handler) |
Pass in Message handler (not deleted at end). | |
CoinMessageHandler * | pushMessageHandler (CoinMessageHandler *handler, bool &oldDefault) |
Pass in Message handler (not deleted at end) and return current. | |
void | popMessageHandler (CoinMessageHandler *oldHandler, bool oldDefault) |
back to previous message handler | |
void | newLanguage (CoinMessages::Language language) |
Set language. | |
void | setLanguage (CoinMessages::Language language) |
Pass in Message handler (not deleted at end). | |
CoinMessageHandler * | messageHandler () const |
Return handler. | |
CoinMessages | messages () const |
Return messages. | |
CoinMessages * | messagesPointer () |
Return pointer to messages. | |
void | setLogLevel (int value) |
Amount of print out: 0 - none 1 - just final 2 - just factorizations 3 - as 2 plus a bit more 4 - verbose above that 8,16,32 etc just for selective debug. | |
int | logLevel () const |
Pass in Message handler (not deleted at end). | |
void | passInEventHandler (const ClpEventHandler *eventHandler) |
Pass in Event handler (cloned and deleted at end). | |
int | lengthNames () const |
length of names (0 means no names0 | |
const std::vector< std::string > * | rowNames () const |
Row names. | |
const std::string & | rowName (int iRow) const |
Pass in Message handler (not deleted at end). | |
const std::vector< std::string > * | columnNames () const |
Column names. | |
const std::string & | columnName (int iColumn) const |
Pass in Message handler (not deleted at end). | |
ClpObjective * | objectiveAsObject () const |
Objective methods. | |
void | setObjective (ClpObjective *objective) |
Pass in Message handler (not deleted at end). | |
void | setObjectivePointer (ClpObjective *objective) |
Pass in Message handler (not deleted at end). | |
int | emptyProblem (int *infeasNumber=NULL, double *infeasSum=NULL, bool printMessage=true) |
Solve a problem with no elements - return status and dual and primal infeasibilites. | |
Matrix times vector methods | |
They can be faster if scalar is +- 1 These are covers so user need not worry about scaling Also for simplex I am not using basic/non-basic split | |
void | times (double scalar, const double *x, double *y) const |
Return y + A * x * scalar in y . | |
void | transposeTimes (double scalar, const double *x, double *y) const |
Return y + x * scalar * A in y . | |
Parameter set/get methods | |
The set methods return true if the parameter was set to the given value, false otherwise.
There can be various reasons for failure: the given parameter is not applicable for the solver (e.g., refactorization frequency for the volume algorithm), the parameter is not yet implemented for the solver or simply the value of the parameter is out of the range the solver accepts. If a parameter setting call returns false check the details of your solver. The get methods return true if the given parameter is applicable for the solver and is implemented. In this case the value of the parameter is returned in the second argument. Otherwise they return false.
once it has been decided where solver sits this may be redone | |
bool | setIntParam (ClpIntParam key, int value) |
Set an integer parameter. | |
bool | setDblParam (ClpDblParam key, double value) |
Set an double parameter. | |
bool | setStrParam (ClpStrParam key, const std::string &value) |
Set an string parameter. | |
bool | getIntParam (ClpIntParam key, int &value) const |
Set an integer parameter. | |
bool | getDblParam (ClpDblParam key, double &value) const |
Set an integer parameter. | |
bool | getStrParam (ClpStrParam key, std::string &value) const |
Set an integer parameter. | |
Protected Methods | |
private or protected methods | |
void | gutsOfDelete () |
Does most of deletion. | |
void | gutsOfCopy (const ClpModel &rhs, bool trueCopy=true) |
Does most of copying If trueCopy false then just points to arrays. | |
void | getRowBound (int iRow, double &lower, double &upper) const |
gets lower and upper bounds on rows | |
void | gutsOfLoadModel (int numberRows, int numberColumns, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const double *rowObjective=NULL) |
puts in format I like - 4 array matrix - may make row copy | |
void | gutsOfScaling () |
Does much of scaling. | |
Protected Attributes | |
data | |
double | optimizationDirection_ |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. | |
double | dblParam_ [ClpLastDblParam] |
Array of double parameters. | |
double | objectiveValue_ |
Objective value. | |
double | smallElement_ |
Small element value. | |
double | objectiveScale_ |
Scaling of objective. | |
double | rhsScale_ |
Scaling of rhs and bounds. | |
int | numberRows_ |
Number of rows. | |
int | numberColumns_ |
Number of columns. | |
double * | rowActivity_ |
Row activities. | |
double * | columnActivity_ |
Column activities. | |
double * | dual_ |
Duals. | |
double * | reducedCost_ |
Reduced costs. | |
double * | rowLower_ |
Row lower. | |
double * | rowUpper_ |
Row upper. | |
ClpObjective * | objective_ |
Objective. | |
double * | rowObjective_ |
Row Objective (? sign) - may be NULL. | |
double * | columnLower_ |
Column Lower. | |
double * | columnUpper_ |
Column Upper. | |
ClpMatrixBase * | matrix_ |
Packed matrix. | |
ClpMatrixBase * | rowCopy_ |
Row copy if wanted. | |
double * | ray_ |
Infeasible/unbounded ray. | |
double * | rowScale_ |
Row scale factors for matrix. | |
double * | columnScale_ |
Column scale factors. | |
int | scalingFlag_ |
Scale flag, 0 none, 1 equilibrium, 2 geometric, 3, auto, 4 dynamic. | |
unsigned char * | status_ |
Status Region. | |
char * | integerType_ |
Integer information. | |
void * | userPointer_ |
User pointer for whatever reason. | |
int | intParam_ [ClpLastIntParam] |
Array of integer parameters. | |
int | numberIterations_ |
Number of iterations. | |
int | solveType_ |
Solve type - 1 simplex, 2 simplex interface, 3 Interior. | |
int | problemStatus_ |
Status of problem. | |
int | secondaryStatus_ |
Secondary status of problem. | |
int | lengthNames_ |
length of names (0 means no names) | |
CoinMessageHandler * | handler_ |
Message handler. | |
bool | defaultHandler_ |
Flag to say if default handler (so delete). | |
ClpEventHandler * | eventHandler_ |
Event handler. | |
std::vector< std::string > | rowNames_ |
Row names. | |
std::vector< std::string > | columnNames_ |
Column names. | |
CoinMessages | messages_ |
Messages. | |
std::string | strParam_ [ClpLastStrParam] |
Array of string parameters. |
I would welcome suggestions for what should be in this and how it relates to OsiSolverInterface. Some methods look very similar.
Definition at line 33 of file ClpModel.hpp.
|
Default constructor.
|
|
Copy constructor. May scale depending on mode -1 leave mode as is 0 -off, 1 equilibrium, 2 geometric, 3, auto, 4 dynamic(later) |
|
Subproblem constructor. A subset of whole model is created from the row and column lists given. The new order is given by list order and duplicates are allowed. Name and integer information can be dropped |
|
Destructor.
|
|
Assignment operator. This copies the data.
|
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
Reimplemented in ClpInterior, and ClpSimplex. |
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
Reimplemented in ClpInterior, and ClpSimplex. |
|
Just like the other loadProblem() method except that the matrix is given in a standard column major ordered format (without gaps).
Reimplemented in ClpInterior, and ClpSimplex. |
|
This one is for after presolve to save memory.
Reimplemented in ClpInterior, and ClpSimplex. |
|
Load up quadratic objective. This is stored as a CoinPackedMatrix |
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
|
|
Get rid of quadratic objective.
|
|
This just loads up a row objective.
|
|
Read an mps file from the given filename.
Reimplemented in ClpInterior, and ClpSimplex. |
|
Copy in integer informations.
|
|
Drop integer informations.
|
|
Resizes rim part of model.
|
|
Deletes rows.
|
|
Add rows.
|
|
Add rows.
|
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
|
|
Deletes columns.
|
|
Add columns.
|
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
|
|
Loads a problem (the constraints on the rows are given by lower and upper bounds). If a pointer is 0 then the following values are the default:
|
|
Borrow model. This is so we don't have to copy large amounts of data around. It assumes a derived class wants to overwrite an empty model with a real one - while it does an algorithm Reimplemented in ClpInterior, and ClpSimplex. |
|
Return model - nulls all arrays so can be deleted safely also updates any scalars.
Reimplemented in ClpInterior. |
|
Create empty ClpPackedMatrix.
|
|
Drops names - makes lengthnames 0 and names empty.
|
|
Copies in names.
|
|
Write the problem in MPS format to the specified file. Row and column names may be null. formatType is
Returns non-zero on I/O error |
|
Number of rows.
Definition at line 194 of file ClpModel.hpp. References numberRows_. |
|
Number of rows.
Definition at line 197 of file ClpModel.hpp. References numberRows_. |
|
Number of columns.
Definition at line 201 of file ClpModel.hpp. References numberColumns_. |
|
Number of rows.
Definition at line 204 of file ClpModel.hpp. References numberColumns_. |
|
Primal tolerance to use.
Definition at line 208 of file ClpModel.hpp. References ClpPrimalTolerance, and dblParam_. |
|
Number of rows.
|
|
Dual tolerance to use.
Definition at line 213 of file ClpModel.hpp. References ClpDualTolerance, and dblParam_. |
|
Number of rows.
|
|
Dual objective limit.
Definition at line 216 of file ClpModel.hpp. References ClpDualObjectiveLimit, and dblParam_. |
|
Number of rows.
|
|
Objective offset.
Definition at line 219 of file ClpModel.hpp. References ClpObjOffset, and dblParam_. |
|
Number of rows.
|
|
Number of rows.
Definition at line 221 of file ClpModel.hpp. References ClpProbName, and strParam_. |
|
Number of iterations.
Definition at line 223 of file ClpModel.hpp. References numberIterations_. |
|
Number of rows.
Definition at line 224 of file ClpModel.hpp. References numberIterations_. |
|
Number of rows.
Definition at line 225 of file ClpModel.hpp. References numberIterations_. |
|
Solve type - 1 simplex, 2 simplex interface, 3 Interior.
Definition at line 228 of file ClpModel.hpp. References solveType_. |
|
Number of rows.
Definition at line 230 of file ClpModel.hpp. References solveType_. |
|
Maximum number of iterations.
Definition at line 233 of file ClpModel.hpp. References ClpMaxNumIteration, and intParam_. |
|
Number of rows.
|
|
Maximum time in seconds (from when set called).
Definition at line 236 of file ClpModel.hpp. References ClpMaxSeconds, and dblParam_. |
|
Number of rows.
|
|
Returns true if hit maximum iterations (or time).
|
|
Status of problem: 0 - optimal 1 - primal infeasible 2 - dual infeasible 3 - stopped on iterations or time 4 - stopped due to errors 5 - stopped by event handler (virtual int ClpEventHandler::event()).
Definition at line 248 of file ClpModel.hpp. References problemStatus_. |
|
Set problem status.
Definition at line 250 of file ClpModel.hpp. References problemStatus_. |
|
Secondary status of problem - may get extended 0 - none 1 - primal infeasible because dual limit reached 2 - scaled problem optimal - unscaled problem has primal infeasibilities 3 - scaled problem optimal - unscaled problem has dual infeasibilities 4 - scaled problem optimal - unscaled problem has primal and dual infeasibilities 100 up - translation of enum from ClpEventHandler.
Definition at line 260 of file ClpModel.hpp. References secondaryStatus_. |
|
Number of rows.
Definition at line 261 of file ClpModel.hpp. References secondaryStatus_. |
|
Are there a numerical difficulties?
Definition at line 264 of file ClpModel.hpp. References problemStatus_. |
|
Is optimality proven?
Definition at line 266 of file ClpModel.hpp. References problemStatus_. |
|
Is primal infeasiblity proven?
Definition at line 268 of file ClpModel.hpp. References problemStatus_. |
|
Is dual infeasiblity proven?
Definition at line 270 of file ClpModel.hpp. References problemStatus_. |
|
Is the given primal objective limit reached?
|
|
Is the given dual objective limit reached?
|
|
Iteration limit reached?
Definition at line 276 of file ClpModel.hpp. References problemStatus_. |
|
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 278 of file ClpModel.hpp. References optimizationDirection_. |
|
Number of rows.
Definition at line 281 of file ClpModel.hpp. References optimizationDirection_. |
|
Number of rows.
|
|
Primal row solution.
Definition at line 284 of file ClpModel.hpp. References rowActivity_. |
|
Number of rows.
Definition at line 285 of file ClpModel.hpp. References rowActivity_. |
|
Primal column solution.
Definition at line 287 of file ClpModel.hpp. References columnActivity_. |
|
Number of rows.
Definition at line 288 of file ClpModel.hpp. References columnActivity_. |
|
Number of rows.
Definition at line 289 of file ClpModel.hpp. |
|
Dual row solution.
Definition at line 292 of file ClpModel.hpp. References dual_. |
|
Number of rows.
Definition at line 293 of file ClpModel.hpp. References dual_. |
|
Reduced costs.
Definition at line 295 of file ClpModel.hpp. References reducedCost_. |
|
Number of rows.
Definition at line 296 of file ClpModel.hpp. References reducedCost_. |
|
Row lower.
Definition at line 298 of file ClpModel.hpp. References rowLower_. |
|
Number of rows.
Definition at line 299 of file ClpModel.hpp. References rowLower_. |
|
Row upper.
Definition at line 301 of file ClpModel.hpp. References rowUpper_. |
|
Number of rows.
Definition at line 302 of file ClpModel.hpp. References rowUpper_. |
|
Scaling.
Definition at line 304 of file ClpModel.hpp. References rowScale_. |
|
Number of rows.
Definition at line 305 of file ClpModel.hpp. References columnScale_. |
|
Number of rows.
Definition at line 306 of file ClpModel.hpp. References rowScale_. |
|
Number of rows.
Definition at line 307 of file ClpModel.hpp. References columnScale_. |
|
Scaling of objective.
Definition at line 309 of file ClpModel.hpp. References objectiveScale_. |
|
Number of rows.
Definition at line 311 of file ClpModel.hpp. References objectiveScale_. |
|
Scaling of rhs and bounds.
Definition at line 314 of file ClpModel.hpp. References rhsScale_. |
|
Number of rows.
Definition at line 316 of file ClpModel.hpp. References rhsScale_. |
|
Sets or unsets scaling, 0 -off, 1 equilibrium, 2 geometric, 3, auto, 4 dynamic(later).
|
|
If we constructed a "really" scaled model then this reverses the operation. Quantities may not be exactly as they were before due to rounding errors |
|
Gets scalingFlag.
Definition at line 324 of file ClpModel.hpp. References scalingFlag_. |
|
Objective.
Definition at line 326 of file ClpModel.hpp. References ClpObjective::gradient(), and objective_. |
|
Number of rows.
Definition at line 335 of file ClpModel.hpp. References ClpObjective::gradient(), and objective_. |
|
Number of rows.
Definition at line 344 of file ClpModel.hpp. References ClpObjective::gradient(), and objective_. |
|
Row Objective.
Definition at line 354 of file ClpModel.hpp. References rowObjective_. |
|
Number of rows.
Definition at line 355 of file ClpModel.hpp. References rowObjective_. |
|
Column Lower.
Definition at line 359 of file ClpModel.hpp. References columnLower_. |
|
Number of rows.
Definition at line 360 of file ClpModel.hpp. References columnLower_. |
|
Column Upper.
Definition at line 362 of file ClpModel.hpp. References columnUpper_. |
|
Number of rows.
Definition at line 363 of file ClpModel.hpp. References columnUpper_. |
|
Matrix (if not ClpPackedmatrix be careful about memory leak.
Definition at line 365 of file ClpModel.hpp. References ClpMatrixBase::getPackedMatrix(), and matrix_. |
|
Number of elements in matrix.
Definition at line 370 of file ClpModel.hpp. References ClpMatrixBase::getNumElements(), and matrix_. |
|
Small element value - elements less than this set to zero, default is 1.0e-20.
Definition at line 374 of file ClpModel.hpp. References smallElement_. |
|
Number of rows.
Definition at line 376 of file ClpModel.hpp. References smallElement_. |
|
Row Matrix.
Definition at line 379 of file ClpModel.hpp. References rowCopy_. |
|
Clp Matrix.
Definition at line 381 of file ClpModel.hpp. References matrix_. |
|
Replace Clp Matrix (current is not deleted and new is used) So up to user to delete one.
|
|
Objective value.
Definition at line 387 of file ClpModel.hpp. References ClpObjOffset, dblParam_, objectiveValue_, and optimizationDirection_. |
|
Number of rows.
Definition at line 390 of file ClpModel.hpp. References ClpObjOffset, dblParam_, objectiveValue_, and optimizationDirection_. |
|
Integer information.
Definition at line 394 of file ClpModel.hpp. References integerType_. |
|
Infeasibility/unbounded ray (NULL returned if none/wrong) Up to user to use delete [] on these arrays.
|
|
Number of rows.
|
|
See if status array exists (partly for OsiClp).
Definition at line 400 of file ClpModel.hpp. References status_. |
|
Return address of status array (char[numberRows+numberColumns]).
Definition at line 403 of file ClpModel.hpp. References status_. |
|
Return copy of status array (char[numberRows+numberColumns]), use delete [].
|
|
Copy in status vector.
|
|
User pointer for whatever reason.
Definition at line 412 of file ClpModel.hpp. References userPointer_. |
|
Number of rows.
Definition at line 414 of file ClpModel.hpp. References userPointer_. |
|
Pass in Message handler (not deleted at end).
|
|
Pass in Message handler (not deleted at end) and return current.
|
|
back to previous message handler
|
|
Set language.
Referenced by setLanguage(). |
|
Pass in Message handler (not deleted at end).
Definition at line 428 of file ClpModel.hpp. References newLanguage(). |
|
Return handler.
Definition at line 430 of file ClpModel.hpp. References handler_. |
|
Return messages.
Definition at line 432 of file ClpModel.hpp. References messages_. |
|
Return pointer to messages.
Definition at line 434 of file ClpModel.hpp. References messages_. |
|
Amount of print out: 0 - none 1 - just final 2 - just factorizations 3 - as 2 plus a bit more 4 - verbose above that 8,16,32 etc just for selective debug.
Definition at line 443 of file ClpModel.hpp. References handler_. |
|
Pass in Message handler (not deleted at end).
Definition at line 444 of file ClpModel.hpp. References handler_. |
|
Pass in Event handler (cloned and deleted at end).
Reimplemented in ClpSimplex. |
|
length of names (0 means no names0
Definition at line 448 of file ClpModel.hpp. References lengthNames_. |
|
Row names.
Definition at line 450 of file ClpModel.hpp. References rowNames_. |
|
Pass in Message handler (not deleted at end).
Definition at line 453 of file ClpModel.hpp. References rowNames_. |
|
Column names.
Definition at line 457 of file ClpModel.hpp. References columnNames_. |
|
Pass in Message handler (not deleted at end).
Definition at line 460 of file ClpModel.hpp. References columnNames_. |
|
Objective methods.
Definition at line 464 of file ClpModel.hpp. References objective_. |
|
Pass in Message handler (not deleted at end).
|
|
Pass in Message handler (not deleted at end).
Definition at line 467 of file ClpModel.hpp. References objective_. |
|
Solve a problem with no elements - return status and dual and primal infeasibilites.
|
|
Return
|
|
Return
|
|
Set an integer parameter.
|
|
Set an double parameter.
|
|
Set an string parameter.
|
|
Set an integer parameter.
Definition at line 518 of file ClpModel.hpp. References ClpLastIntParam, and intParam_. |
|
Set an integer parameter.
Definition at line 527 of file ClpModel.hpp. References ClpLastDblParam, and dblParam_. |
|
Set an integer parameter.
Definition at line 536 of file ClpModel.hpp. References ClpLastStrParam, and strParam_. |
|
Does most of deletion.
Reimplemented in ClpInterior. |
|
Does most of copying If trueCopy false then just points to arrays.
|
|
gets lower and upper bounds on rows
|
|
puts in format I like - 4 array matrix - may make row copy
|
|
Does much of scaling.
|
|
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 573 of file ClpModel.hpp. Referenced by getObjSense(), getObjValue(), objectiveValue(), and optimizationDirection(). |
|
Array of double parameters.
Definition at line 575 of file ClpModel.hpp. Referenced by dualObjectiveLimit(), dualTolerance(), getDblParam(), getObjValue(), maximumSeconds(), objectiveOffset(), objectiveValue(), and primalTolerance(). |
|
Objective value.
Definition at line 577 of file ClpModel.hpp. Referenced by getObjValue(), objectiveValue(), ClpSimplex::rawObjectiveValue(), and ClpInterior::rawObjectiveValue(). |
|
Small element value.
Definition at line 579 of file ClpModel.hpp. Referenced by getSmallElementValue(), and setSmallElementValue(). |
|
Scaling of objective.
Definition at line 581 of file ClpModel.hpp. Referenced by objectiveScale(), and setObjectiveScale(). |
|
Scaling of rhs and bounds.
Definition at line 583 of file ClpModel.hpp. Referenced by rhsScale(), and setRhsScale(). |
|
Number of rows.
Definition at line 585 of file ClpModel.hpp. Referenced by getNumRows(), and numberRows(). |
|
Number of columns.
Definition at line 587 of file ClpModel.hpp. Referenced by getNumCols(), ClpSimplex::getRowStatus(), ClpSimplex::isColumn(), ClpInterior::isColumn(), numberColumns(), ClpSimplex::originalLower(), ClpSimplex::originalUpper(), ClpSimplex::sequenceWithin(), ClpInterior::sequenceWithin(), and ClpSimplex::setRowStatus(). |
|
Row activities.
Definition at line 589 of file ClpModel.hpp. Referenced by getRowActivity(), and primalRowSolution(). |
|
Column activities.
Definition at line 591 of file ClpModel.hpp. Referenced by getColSolution(), and primalColumnSolution(). |
|
Duals.
Definition at line 593 of file ClpModel.hpp. Referenced by dualRowSolution(), and getRowPrice(). |
|
Reduced costs.
Definition at line 595 of file ClpModel.hpp. Referenced by dualColumnSolution(), and getReducedCost(). |
|
Row lower.
Definition at line 597 of file ClpModel.hpp. Referenced by getRowLower(), ClpSimplex::originalLower(), and rowLower(). |
|
Row upper.
Definition at line 599 of file ClpModel.hpp. Referenced by getRowUpper(), ClpSimplex::originalUpper(), and rowUpper(). |
|
Objective.
Definition at line 601 of file ClpModel.hpp. Referenced by getObjCoefficients(), objective(), objectiveAsObject(), and setObjectivePointer(). |
|
Row Objective (? sign) - may be NULL.
Definition at line 603 of file ClpModel.hpp. Referenced by getRowObjCoefficients(), and rowObjective(). |
|
Column Lower.
Definition at line 605 of file ClpModel.hpp. Referenced by columnLower(), getColLower(), and ClpSimplex::originalLower(). |
|
Column Upper.
Definition at line 607 of file ClpModel.hpp. Referenced by columnUpper(), getColUpper(), and ClpSimplex::originalUpper(). |
|
Packed matrix.
Definition at line 609 of file ClpModel.hpp. Referenced by clpMatrix(), getNumElements(), and matrix(). |
|
Row copy if wanted.
Definition at line 611 of file ClpModel.hpp. Referenced by rowCopy(). |
|
Infeasible/unbounded ray.
Definition at line 613 of file ClpModel.hpp. |
|
Row scale factors for matrix.
Definition at line 615 of file ClpModel.hpp. Referenced by rowScale(), and setRowScale(). |
|
Column scale factors.
Definition at line 617 of file ClpModel.hpp. Referenced by columnScale(), and setColumnScale(). |
|
Scale flag, 0 none, 1 equilibrium, 2 geometric, 3, auto, 4 dynamic.
Definition at line 619 of file ClpModel.hpp. Referenced by scalingFlag(). |
|
|
Integer information.
Definition at line 629 of file ClpModel.hpp. Referenced by integerInformation(). |
|
User pointer for whatever reason.
Definition at line 631 of file ClpModel.hpp. Referenced by getUserPointer(), and setUserPointer(). |
|
Array of integer parameters.
Definition at line 633 of file ClpModel.hpp. Referenced by getIntParam(), and maximumIterations(). |
|
Number of iterations.
Definition at line 635 of file ClpModel.hpp. Referenced by getIterationCount(), numberIterations(), and setNumberIterations(). |
|
Solve type - 1 simplex, 2 simplex interface, 3 Interior.
Definition at line 637 of file ClpModel.hpp. Referenced by setSolveType(), and solveType(). |
|
Status of problem.
Definition at line 639 of file ClpModel.hpp. Referenced by isAbandoned(), isIterationLimitReached(), isProvenDualInfeasible(), isProvenOptimal(), isProvenPrimalInfeasible(), setProblemStatus(), and status(). |
|
Secondary status of problem.
Definition at line 641 of file ClpModel.hpp. Referenced by secondaryStatus(), and setSecondaryStatus(). |
|
length of names (0 means no names)
Definition at line 643 of file ClpModel.hpp. Referenced by lengthNames(). |
|
Message handler.
Definition at line 645 of file ClpModel.hpp. Referenced by logLevel(), messageHandler(), and setLogLevel(). |
|
Flag to say if default handler (so delete).
Definition at line 647 of file ClpModel.hpp. |
|
Event handler.
Definition at line 649 of file ClpModel.hpp. |
|
Row names.
Definition at line 651 of file ClpModel.hpp. Referenced by rowName(), and rowNames(). |
|
Column names.
Definition at line 653 of file ClpModel.hpp. Referenced by columnName(), and columnNames(). |
|
Messages.
Definition at line 655 of file ClpModel.hpp. Referenced by messages(), and messagesPointer(). |
|
Array of string parameters.
Definition at line 657 of file ClpModel.hpp. Referenced by getStrParam(), and problemName(). |