Go to the documentation of this file.
6 #ifndef ClpDynamicExampleMatrix_H
7 #define ClpDynamicExampleMatrix_H
9 #include "CoinPragma.hpp"
39 int &bestSequence,
int &numberWanted);
49 virtual void packDown(
const int *in,
int numberToPack);
64 const double *lower,
const double *upper,
68 const unsigned char *status = NULL,
70 int numberIds = 0,
const int *ids = NULL);
75 const double * lower,
const double * upper,
79 const unsigned char * status = NULL,
81 int numberIds = 0,
const int *ids = NULL);
145 st_byte =
static_cast< unsigned char >(st_byte & ~7);
146 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".
CoinBigIndex * fullStartGen_
start of each set
int * idGen_
identifier for each variable up one level (startColumn_, etc).
bool flaggedGen(int i) const
Whether flagged.
CoinBigIndex * fullStartGen() const
full starts
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.
ClpDynamicExampleMatrix & operator=(const ClpDynamicExampleMatrix &)
double * columnLowerGen() const
Optional lower bounds on columns.
int numberColumns() const
size
int numberSets() const
Number of sets (dynamic rows)
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.