CoinUtils  2.10.14
CoinSnapshot.hpp
Go to the documentation of this file.
1 /* $Id: CoinSnapshot.hpp 1416 2011-04-17 09:57:29Z stefan $ */
2 // Copyright (C) 2006, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CoinSnapshot_H
7 #define CoinSnapshot_H
8 
9 class CoinPackedMatrix;
10 #include "CoinTypes.hpp"
11 
12 //#############################################################################
13 
25 class CoinSnapshot {
26 
27 public:
28 
29  //---------------------------------------------------------------------------
35  inline int getNumCols() const
37  { return numCols_;}
38 
40  inline int getNumRows() const
41  { return numRows_;}
42 
44  inline int getNumElements() const
45  { return numElements_;}
46 
48  inline int getNumIntegers() const
49  { return numIntegers_;}
50 
52  inline const double * getColLower() const
53  { return colLower_;}
54 
56  inline const double * getColUpper() const
57  { return colUpper_;}
58 
60  inline const double * getRowLower() const
61  { return rowLower_;}
62 
64  inline const double * getRowUpper() const
65  { return rowUpper_;}
66 
74  inline const double * getRightHandSide() const
75  { return rightHandSide_;}
76 
78  inline const double * getObjCoefficients() const
79  { return objCoefficients_;}
80 
82  inline double getObjSense() const
83  { return objSense_;}
84 
86  inline bool isContinuous(int colIndex) const
87  { return colType_[colIndex]=='C';}
88 
90  inline bool isBinary(int colIndex) const
91  { return colType_[colIndex]=='B';}
92 
94  inline bool isInteger(int colIndex) const
95  { return colType_[colIndex]=='B'||colType_[colIndex]=='I';}
96 
98  inline bool isIntegerNonBinary(int colIndex) const
99  { return colType_[colIndex]=='I';}
100 
102  inline bool isFreeBinary(int colIndex) const
103  { return colType_[colIndex]=='B'&&colUpper_[colIndex]>colLower_[colIndex];}
104 
106  inline const char * getColType() const
107  { return colType_;}
108 
110  inline const CoinPackedMatrix * getMatrixByRow() const
111  { return matrixByRow_;}
112 
114  inline const CoinPackedMatrix * getMatrixByCol() const
115  { return matrixByCol_;}
116 
119  { return originalMatrixByRow_;}
120 
123  { return originalMatrixByCol_;}
125 
128  inline const double * getColSolution() const
130  { return colSolution_;}
131 
133  inline const double * getRowPrice() const
134  { return rowPrice_;}
135 
137  inline const double * getReducedCost() const
138  { return reducedCost_;}
139 
141  inline const double * getRowActivity() const
142  { return rowActivity_;}
143 
145  inline const double * getDoNotSeparateThis() const
146  { return doNotSeparateThis_;}
148 
151  inline double getInfinity() const
153  { return infinity_;}
154 
157  inline double getObjValue() const
158  { return objValue_;}
159 
161  inline double getObjOffset() const
162  { return objOffset_;}
163 
165  inline double getDualTolerance() const
166  { return dualTolerance_;}
167 
169  inline double getPrimalTolerance() const
170  { return primalTolerance_;}
171 
173  inline double getIntegerTolerance() const
174  { return integerTolerance_;}
175 
177  inline double getIntegerUpperBound() const
178  { return integerUpperBound_;}
179 
181  inline double getIntegerLowerBound() const
182  { return integerLowerBound_;}
184 
185  //---------------------------------------------------------------------------
186 
201  void loadProblem(const CoinPackedMatrix& matrix,
202  const double* collb, const double* colub,
203  const double* obj,
204  const double* rowlb, const double* rowub,
205  bool makeRowCopy=false);
206 
208 
209  //---------------------------------------------------------------------------
210 
213  inline void setNumCols(int value)
215  { numCols_ = value;}
216 
218  inline void setNumRows(int value)
219  { numRows_ = value;}
220 
222  inline void setNumElements(int value)
223  { numElements_ = value;}
224 
226  inline void setNumIntegers(int value)
227  { numIntegers_ = value;}
228 
230  void setColLower(const double * array, bool copyIn=true);
231 
233  void setColUpper(const double * array, bool copyIn=true);
234 
236  void setRowLower(const double * array, bool copyIn=true);
237 
239  void setRowUpper(const double * array, bool copyIn=true);
240 
248  void setRightHandSide(const double * array, bool copyIn=true);
249 
259 
261  void setObjCoefficients(const double * array, bool copyIn=true);
262 
264  inline void setObjSense(double value)
265  { objSense_ = value;}
266 
268  void setColType(const char *array, bool copyIn=true);
269 
271  void setMatrixByRow(const CoinPackedMatrix * matrix, bool copyIn=true);
272 
275 
277  void setMatrixByCol(const CoinPackedMatrix * matrix, bool copyIn=true);
278 
280  void setOriginalMatrixByRow(const CoinPackedMatrix * matrix, bool copyIn=true);
281 
283  void setOriginalMatrixByCol(const CoinPackedMatrix * matrix, bool copyIn=true);
284 
286  void setColSolution(const double * array, bool copyIn=true);
287 
289  void setRowPrice(const double * array, bool copyIn=true);
290 
292  void setReducedCost(const double * array, bool copyIn=true);
293 
295  void setRowActivity(const double * array, bool copyIn=true);
296 
298  void setDoNotSeparateThis(const double * array, bool copyIn=true);
299 
301  inline void setInfinity(double value)
302  { infinity_ = value;}
303 
305  inline void setObjValue(double value)
306  { objValue_ = value;}
307 
309  inline void setObjOffset(double value)
310  { objOffset_ = value;}
311 
313  inline void setDualTolerance(double value)
314  { dualTolerance_ = value;}
315 
317  inline void setPrimalTolerance(double value)
318  { primalTolerance_ = value;}
319 
321  inline void setIntegerTolerance(double value)
322  { integerTolerance_ = value;}
323 
325  inline void setIntegerUpperBound(double value)
326  { integerUpperBound_ = value;}
327 
329  inline void setIntegerLowerBound(double value)
330  { integerLowerBound_ = value;}
332 
333  //---------------------------------------------------------------------------
334 
336 
337  CoinSnapshot();
339 
342 
345 
347  virtual ~CoinSnapshot ();
348 
350 
351 private:
353 
354 
360  void gutsOfDestructor(int type);
362  void gutsOfCopy(const CoinSnapshot & rhs);
364 
366 
368  double objSense_;
369 
371  double infinity_;
372 
374  double objValue_;
375 
377  double objOffset_;
378 
381 
384 
387 
390 
393 
395  const double * colLower_;
396 
398  const double * colUpper_;
399 
401  const double * rowLower_;
402 
404  const double * rowUpper_;
405 
407  const double * rightHandSide_;
408 
410  const double * objCoefficients_;
411 
413  const char * colType_;
414 
417 
420 
423 
426 
428  const double * colSolution_;
429 
431  const double * rowPrice_;
432 
434  const double * reducedCost_;
435 
437  const double * rowActivity_;
438 
440  const double * doNotSeparateThis_;
441 
443  int numCols_;
444 
446  int numRows_;
447 
450 
453 
455  typedef struct {
456  unsigned int colLower:1;
457  unsigned int colUpper:1;
458  unsigned int rowLower:1;
459  unsigned int rowUpper:1;
460  unsigned int rightHandSide:1;
461  unsigned int objCoefficients:1;
462  unsigned int colType:1;
463  unsigned int matrixByRow:1;
464  unsigned int matrixByCol:1;
465  unsigned int originalMatrixByRow:1;
466  unsigned int originalMatrixByCol:1;
467  unsigned int colSolution:1;
468  unsigned int rowPrice:1;
469  unsigned int reducedCost:1;
470  unsigned int rowActivity:1;
471  unsigned int doNotSeparateThis:1;
472  } coinOwned;
475 };
476 #endif
CoinSnapshot::getColUpper
const double * getColUpper() const
Get pointer to array[getNumCols()] of column upper bounds.
Definition: CoinSnapshot.hpp:56
CoinSnapshot::setRowActivity
void setRowActivity(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vecto...
CoinSnapshot::getObjCoefficients
const double * getObjCoefficients() const
Get pointer to array[getNumCols()] of objective function coefficients.
Definition: CoinSnapshot.hpp:78
CoinSnapshot::setColSolution
void setColSolution(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of primal variable values.
CoinSnapshot::getIntegerUpperBound
double getIntegerUpperBound() const
Get integer upper bound i.e. best solution * getObjSense.
Definition: CoinSnapshot.hpp:177
CoinSnapshot::integerTolerance_
double integerTolerance_
integer tolerance
Definition: CoinSnapshot.hpp:386
CoinSnapshot::setObjCoefficients
void setObjCoefficients(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of objective function coefficients.
CoinSnapshot::objSense_
double objSense_
objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:368
CoinSnapshot::setObjSense
void setObjSense(double value)
Set objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:264
CoinSnapshot::isInteger
bool isInteger(int colIndex) const
Return true if column is integer.
Definition: CoinSnapshot.hpp:94
CoinSnapshot::getInfinity
double getInfinity() const
Get solver's value for infinity.
Definition: CoinSnapshot.hpp:152
CoinSnapshot::getObjOffset
double getObjOffset() const
Get objective offset i.e. sum c sub j * x subj -objValue = objOffset.
Definition: CoinSnapshot.hpp:161
CoinSnapshot::setPrimalTolerance
void setPrimalTolerance(double value)
Set primal tolerance.
Definition: CoinSnapshot.hpp:317
CoinSnapshot::matrixByCol_
const CoinPackedMatrix * matrixByCol_
pointer to column-wise copy of current matrix
Definition: CoinSnapshot.hpp:419
CoinSnapshot::getObjValue
double getObjValue() const
Get objective function value - includinbg any offset i.e.
Definition: CoinSnapshot.hpp:157
CoinSnapshot::getIntegerTolerance
double getIntegerTolerance() const
Get integer tolerance.
Definition: CoinSnapshot.hpp:173
CoinSnapshot::coinOwned::colLower
unsigned int colLower
Definition: CoinSnapshot.hpp:456
CoinSnapshot::setMatrixByCol
void setMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to column-wise copy of current matrix.
CoinSnapshot::gutsOfCopy
void gutsOfCopy(const CoinSnapshot &rhs)
Does main work of copy.
CoinSnapshot::coinOwned::rowUpper
unsigned int rowUpper
Definition: CoinSnapshot.hpp:459
CoinSnapshot::setObjOffset
void setObjOffset(double value)
Set objective offset i.e. sum c sub j * x subj -objValue = objOffset.
Definition: CoinSnapshot.hpp:309
CoinSnapshot::setColUpper
void setColUpper(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of column upper bounds.
CoinSnapshot::createMatrixByRow
void createMatrixByRow()
Create row-wise copy from MatrixByCol.
CoinTypes.hpp
CoinSnapshot::setNumIntegers
void setNumIntegers(int value)
Set number of integer variables.
Definition: CoinSnapshot.hpp:226
CoinSnapshot::getReducedCost
const double * getReducedCost() const
Get a pointer to array[getNumCols()] of reduced costs.
Definition: CoinSnapshot.hpp:137
CoinSnapshot::setDualTolerance
void setDualTolerance(double value)
Set dual tolerance.
Definition: CoinSnapshot.hpp:313
CoinSnapshot::CoinSnapshot
CoinSnapshot(const CoinSnapshot &)
Copy constructor.
CoinSnapshot::setRowLower
void setRowLower(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row lower bounds.
CoinSnapshot::setRightHandSide
void setRightHandSide(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row right-hand sides This gives same results as OsiSolverInterf...
CoinSnapshot::createRightHandSide
void createRightHandSide()
Create array[getNumRows()] of row right-hand sides using existing information This gives same results...
CoinSnapshot::numElements_
int numElements_
number of nonzero elements
Definition: CoinSnapshot.hpp:449
CoinSnapshot::dualTolerance_
double dualTolerance_
dual tolerance
Definition: CoinSnapshot.hpp:380
CoinSnapshot::setMatrixByRow
void setMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to row-wise copy of current matrix.
CoinSnapshot::originalMatrixByCol_
const CoinPackedMatrix * originalMatrixByCol_
pointer to column-wise copy of "original" matrix
Definition: CoinSnapshot.hpp:425
CoinSnapshot::getColSolution
const double * getColSolution() const
Get pointer to array[getNumCols()] of primal variable values.
Definition: CoinSnapshot.hpp:129
CoinSnapshot::numCols_
int numCols_
number of columns
Definition: CoinSnapshot.hpp:443
CoinSnapshot::setRowPrice
void setRowPrice(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of dual variable values.
CoinSnapshot::coinOwned::matrixByCol
unsigned int matrixByCol
Definition: CoinSnapshot.hpp:464
CoinSnapshot::getNumCols
int getNumCols() const
Get number of columns.
Definition: CoinSnapshot.hpp:36
CoinSnapshot::setColType
void setColType(const char *array, bool copyIn=true)
Set colType array ('B', 'I', or 'C' for Binary, Integer and Continuous)
CoinSnapshot::setRowUpper
void setRowUpper(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row upper bounds.
CoinSnapshot::coinOwned::matrixByRow
unsigned int matrixByRow
Definition: CoinSnapshot.hpp:463
CoinSnapshot::CoinSnapshot
CoinSnapshot()
Default Constructor.
CoinSnapshot::colUpper_
const double * colUpper_
pointer to array[getNumCols()] of column upper bounds
Definition: CoinSnapshot.hpp:398
CoinSnapshot::numIntegers_
int numIntegers_
number of integer variables
Definition: CoinSnapshot.hpp:452
CoinSnapshot::coinOwned::colUpper
unsigned int colUpper
Definition: CoinSnapshot.hpp:457
CoinSnapshot::getOriginalMatrixByRow
const CoinPackedMatrix * getOriginalMatrixByRow() const
Get pointer to row-wise copy of "original" matrix.
Definition: CoinSnapshot.hpp:118
CoinSnapshot::getNumIntegers
int getNumIntegers() const
Get number of integer variables.
Definition: CoinSnapshot.hpp:48
CoinSnapshot::infinity_
double infinity_
solver's value for infinity
Definition: CoinSnapshot.hpp:371
CoinSnapshot::coinOwned::originalMatrixByCol
unsigned int originalMatrixByCol
Definition: CoinSnapshot.hpp:466
CoinSnapshot::objCoefficients_
const double * objCoefficients_
pointer to array[getNumCols()] of objective function coefficients
Definition: CoinSnapshot.hpp:410
CoinSnapshot::colType_
const char * colType_
colType array ('B', 'I', or 'C' for Binary, Integer and Continuous)
Definition: CoinSnapshot.hpp:413
CoinSnapshot::coinOwned::doNotSeparateThis
unsigned int doNotSeparateThis
Definition: CoinSnapshot.hpp:471
CoinSnapshot::setReducedCost
void setReducedCost(const double *array, bool copyIn=true)
Set a pointer to array[getNumCols()] of reduced costs.
CoinSnapshot::objValue_
double objValue_
objective function value (including any rhs offset)
Definition: CoinSnapshot.hpp:374
CoinSnapshot::getRowLower
const double * getRowLower() const
Get pointer to array[getNumRows()] of row lower bounds.
Definition: CoinSnapshot.hpp:60
CoinSnapshot::setIntegerTolerance
void setIntegerTolerance(double value)
Set integer tolerance.
Definition: CoinSnapshot.hpp:321
CoinSnapshot::integerUpperBound_
double integerUpperBound_
integer upper bound i.e. best solution * getObjSense
Definition: CoinSnapshot.hpp:389
CoinSnapshot::integerLowerBound_
double integerLowerBound_
integer lower bound i.e. best possible solution * getObjSense
Definition: CoinSnapshot.hpp:392
CoinSnapshot::coinOwned::rightHandSide
unsigned int rightHandSide
Definition: CoinSnapshot.hpp:460
CoinSnapshot::setOriginalMatrixByCol
void setOriginalMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to column-wise copy of "original" matrix.
CoinSnapshot::getDoNotSeparateThis
const double * getDoNotSeparateThis() const
Get pointer to array[getNumCols()] of primal variable values which should not be separated (for debug...
Definition: CoinSnapshot.hpp:145
CoinSnapshot::doNotSeparateThis_
const double * doNotSeparateThis_
pointer to array[getNumCols()] of primal variable values which should not be separated (for debug)
Definition: CoinSnapshot.hpp:440
CoinSnapshot::getMatrixByRow
const CoinPackedMatrix * getMatrixByRow() const
Get pointer to row-wise copy of current matrix.
Definition: CoinSnapshot.hpp:110
CoinSnapshot::rowUpper_
const double * rowUpper_
pointer to array[getNumRows()] of row upper bounds
Definition: CoinSnapshot.hpp:404
CoinSnapshot::originalMatrixByRow_
const CoinPackedMatrix * originalMatrixByRow_
pointer to row-wise copy of "original" matrix
Definition: CoinSnapshot.hpp:422
CoinSnapshot::coinOwned::colSolution
unsigned int colSolution
Definition: CoinSnapshot.hpp:467
CoinSnapshot::matrixByRow_
const CoinPackedMatrix * matrixByRow_
pointer to row-wise copy of current matrix
Definition: CoinSnapshot.hpp:416
CoinSnapshot::coinOwned
To say whether arrays etc are owned by CoinSnapshot.
Definition: CoinSnapshot.hpp:455
CoinSnapshot::setDoNotSeparateThis
void setDoNotSeparateThis(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of primal variable values which should not be separated (for debug...
CoinSnapshot::getOriginalMatrixByCol
const CoinPackedMatrix * getOriginalMatrixByCol() const
Get pointer to column-wise copy of "original" matrix.
Definition: CoinSnapshot.hpp:122
CoinSnapshot::getRowUpper
const double * getRowUpper() const
Get pointer to array[getNumRows()] of row upper bounds.
Definition: CoinSnapshot.hpp:64
CoinSnapshot::coinOwned::rowActivity
unsigned int rowActivity
Definition: CoinSnapshot.hpp:470
CoinSnapshot::isFreeBinary
bool isFreeBinary(int colIndex) const
Return true if variable is binary and not fixed at either bound.
Definition: CoinSnapshot.hpp:102
CoinSnapshot::getRightHandSide
const double * getRightHandSide() const
Get pointer to array[getNumRows()] of row right-hand sides This gives same results as OsiSolverInterf...
Definition: CoinSnapshot.hpp:74
CoinSnapshot::getDualTolerance
double getDualTolerance() const
Get dual tolerance.
Definition: CoinSnapshot.hpp:165
CoinSnapshot::setNumRows
void setNumRows(int value)
Set number of rows.
Definition: CoinSnapshot.hpp:218
CoinSnapshot::coinOwned::originalMatrixByRow
unsigned int originalMatrixByRow
Definition: CoinSnapshot.hpp:465
CoinSnapshot
NON Abstract Base Class for interfacing with cut generators or branching code or .
Definition: CoinSnapshot.hpp:25
CoinSnapshot::gutsOfDestructor
void gutsOfDestructor(int type)
Does main work of destructor - type (or'ed) 1 - NULLify pointers 2 - delete pointers 4 - initialize s...
CoinSnapshot::setNumCols
void setNumCols(int value)
Set number of columns.
Definition: CoinSnapshot.hpp:214
CoinSnapshot::setNumElements
void setNumElements(int value)
Set number of nonzero elements.
Definition: CoinSnapshot.hpp:222
CoinPackedMatrix
Sparse Matrix Base Class.
Definition: CoinPackedMatrix.hpp:79
CoinSnapshot::colSolution_
const double * colSolution_
pointer to array[getNumCols()] of primal variable values
Definition: CoinSnapshot.hpp:428
CoinSnapshot::setColLower
void setColLower(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of column lower bounds.
CoinSnapshot::getColLower
const double * getColLower() const
Get pointer to array[getNumCols()] of column lower bounds.
Definition: CoinSnapshot.hpp:52
CoinSnapshot::~CoinSnapshot
virtual ~CoinSnapshot()
Destructor.
CoinSnapshot::objOffset_
double objOffset_
objective offset i.e. sum c sub j * x subj -objValue = objOffset
Definition: CoinSnapshot.hpp:377
CoinSnapshot::owned_
coinOwned owned_
Definition: CoinSnapshot.hpp:473
CoinSnapshot::rowLower_
const double * rowLower_
pointer to array[getNumRows()] of row lower bounds
Definition: CoinSnapshot.hpp:401
CoinSnapshot::primalTolerance_
double primalTolerance_
primal tolerance
Definition: CoinSnapshot.hpp:383
CoinSnapshot::rowPrice_
const double * rowPrice_
pointer to array[getNumRows()] of dual variable values
Definition: CoinSnapshot.hpp:431
CoinSnapshot::getIntegerLowerBound
double getIntegerLowerBound() const
Get integer lower bound i.e. best possible solution * getObjSense.
Definition: CoinSnapshot.hpp:181
CoinSnapshot::reducedCost_
const double * reducedCost_
a pointer to array[getNumCols()] of reduced costs
Definition: CoinSnapshot.hpp:434
CoinSnapshot::setIntegerUpperBound
void setIntegerUpperBound(double value)
Set integer upper bound i.e. best solution * getObjSense.
Definition: CoinSnapshot.hpp:325
CoinSnapshot::getNumElements
int getNumElements() const
Get number of nonzero elements.
Definition: CoinSnapshot.hpp:44
CoinSnapshot::loadProblem
void loadProblem(const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, bool makeRowCopy=false)
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper...
CoinSnapshot::getRowPrice
const double * getRowPrice() const
Get pointer to array[getNumRows()] of dual variable values.
Definition: CoinSnapshot.hpp:133
CoinSnapshot::isBinary
bool isBinary(int colIndex) const
Return true if variable is binary.
Definition: CoinSnapshot.hpp:90
CoinSnapshot::coinOwned::objCoefficients
unsigned int objCoefficients
Definition: CoinSnapshot.hpp:461
CoinSnapshot::coinOwned::reducedCost
unsigned int reducedCost
Definition: CoinSnapshot.hpp:469
CoinSnapshot::operator=
CoinSnapshot & operator=(const CoinSnapshot &rhs)
Assignment operator.
CoinSnapshot::rightHandSide_
const double * rightHandSide_
pointer to array[getNumRows()] of rhs side values
Definition: CoinSnapshot.hpp:407
CoinSnapshot::getColType
const char * getColType() const
Get colType array ('B', 'I', or 'C' for Binary, Integer and Continuous)
Definition: CoinSnapshot.hpp:106
CoinSnapshot::isContinuous
bool isContinuous(int colIndex) const
Return true if variable is continuous.
Definition: CoinSnapshot.hpp:86
CoinSnapshot::setObjValue
void setObjValue(double value)
Set objective function value (including any rhs offset)
Definition: CoinSnapshot.hpp:305
CoinSnapshot::isIntegerNonBinary
bool isIntegerNonBinary(int colIndex) const
Return true if variable is general integer.
Definition: CoinSnapshot.hpp:98
CoinSnapshot::getRowActivity
const double * getRowActivity() const
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vecto...
Definition: CoinSnapshot.hpp:141
CoinSnapshot::coinOwned::rowPrice
unsigned int rowPrice
Definition: CoinSnapshot.hpp:468
CoinSnapshot::coinOwned::rowLower
unsigned int rowLower
Definition: CoinSnapshot.hpp:458
CoinSnapshot::getMatrixByCol
const CoinPackedMatrix * getMatrixByCol() const
Get pointer to column-wise copy of current matrix.
Definition: CoinSnapshot.hpp:114
CoinSnapshot::setIntegerLowerBound
void setIntegerLowerBound(double value)
Set integer lower bound i.e. best possible solution * getObjSense.
Definition: CoinSnapshot.hpp:329
CoinSnapshot::numRows_
int numRows_
number of rows
Definition: CoinSnapshot.hpp:446
CoinSnapshot::setOriginalMatrixByRow
void setOriginalMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to row-wise copy of "original" matrix.
CoinSnapshot::colLower_
const double * colLower_
pointer to array[getNumCols()] of column lower bounds
Definition: CoinSnapshot.hpp:395
CoinSnapshot::getObjSense
double getObjSense() const
Get objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:82
CoinSnapshot::getPrimalTolerance
double getPrimalTolerance() const
Get primal tolerance.
Definition: CoinSnapshot.hpp:169
CoinSnapshot::rowActivity_
const double * rowActivity_
pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector).
Definition: CoinSnapshot.hpp:437
CoinSnapshot::setInfinity
void setInfinity(double value)
Set solver's value for infinity.
Definition: CoinSnapshot.hpp:301
CoinSnapshot::getNumRows
int getNumRows() const
Get number of rows.
Definition: CoinSnapshot.hpp:40
CoinSnapshot::coinOwned::colType
unsigned int colType
Definition: CoinSnapshot.hpp:462