Go to the documentation of this file.
6 #ifndef ClpDynamicExampleMatrix_H
7 #define ClpDynamicExampleMatrix_H
10 #include "CoinPragma.hpp"
40 int & bestSequence,
int & numberWanted);
50 virtual void packDown(
const int * in,
int numberToPack);
67 const double * lower,
const double * upper,
71 const unsigned char * status = NULL,
73 int numberIds = 0,
const int *ids = NULL);
78 const double * lower,
const double * upper,
82 const unsigned char * status = NULL,
84 int numberIds = 0,
const int *ids = NULL);
138 st_byte =
static_cast<unsigned char>(st_byte & ~7);
139 st_byte =
static_cast<unsigned char>(st_byte | status);
This solves LPs using the simplex method.
CoinBigIndex * startColumnGen() const
Starts of each column.
This implements a dynamic matrix when we have a limit on the number of "interesting rows".
int * idGen_
identifier for each variable up one level (startColumn_, etc).
bool flaggedGen(int i) const
Whether flagged.
virtual ClpMatrixBase * clone() const
Clone.
CoinBigIndex * startColumnGen_
Starts of each column.
double * columnUpperGen() const
Optional upper bounds on columns.
unsigned char * dynamicStatus() const
Status region for gub variables.
int * idGen() const
ids in next level matrix
void setFlaggedGen(int i)
double * cost() const
costs
double * elementGen_
elements
DynamicStatus getDynamicStatusGen(int sequence) const
void setDynamicStatusGen(int sequence, DynamicStatus status)
double * costGen() const
costs
virtual void packDown(const int *in, int numberToPack)
If addColumn forces compression then this allows descendant to know what to do.
ClpDynamicExampleMatrix()
Default constructor.
Abstract base class for Clp Matrices.
int * fullStartGen() const
full starts
ClpDynamicExampleMatrix & operator=(const ClpDynamicExampleMatrix &)
int * fullStartGen_
start of each set
double * columnLowerGen() const
Optional lower bounds on columns.
int numberColumns() const
size
int numberSets() const
Number of sets (dynamic rows)
ClpDynamicExampleMatrix(ClpSimplex *model, int numberSets, int numberColumns, const int *starts, const double *lower, const double *upper, const int *startColumn, const int *row, const double *element, const double *cost, const double *columnLower=NULL, const double *columnUpper=NULL, const unsigned char *status=NULL, const unsigned char *dynamicStatus=NULL, int numberIds=0, const int *ids=NULL)
This is the real constructor.
virtual void createVariable(ClpSimplex *model, int &bestSequence)
Creates a variable.
virtual ~ClpDynamicExampleMatrix()
Destructor.
DynamicStatus
enums for status of various sorts
double * columnUpperGen_
Optional upper bounds on columns.
unsigned char * dynamicStatusGen_
for status and which bound
double * columnLower() const
Optional lower bounds on columns.
double * element() const
elements
double * elementGen() const
elements
double * columnUpper() const
Optional upper bounds on columns.
virtual void partialPricing(ClpSimplex *model, double start, double end, int &bestSequence, int &numberWanted)
Partial pricing.
This implements a dynamic matrix when we have a limit on the number of "interesting rows".
double * columnLowerGen_
Optional lower bounds on columns.
CoinBigIndex * startColumn() const
Starts of each column.
ClpDynamicExampleMatrix(const ClpDynamicExampleMatrix &)
The copy constructor.