Cgl 0.60.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoinSnapshot.hpp
Go to the documentation of this file.
1 /* $Id: CoinSnapshot.hpp 2083 2019-01-06 19:38:09Z unxusr $ */
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 //---------------------------------------------------------------------------
34 inline int getNumCols() const
36 {
37 return numCols_;
38 }
39
41 inline int getNumRows() const
42 {
43 return numRows_;
44 }
45
47 inline int getNumElements() const
48 {
49 return numElements_;
50 }
51
53 inline int getNumIntegers() const
54 {
55 return numIntegers_;
56 }
57
59 inline const double *getColLower() const
60 {
61 return colLower_;
62 }
63
65 inline const double *getColUpper() const
66 {
67 return colUpper_;
68 }
69
71 inline const double *getRowLower() const
72 {
73 return rowLower_;
74 }
75
77 inline const double *getRowUpper() const
78 {
79 return rowUpper_;
80 }
81
89 inline const double *getRightHandSide() const
90 {
91 return rightHandSide_;
92 }
93
95 inline const double *getObjCoefficients() const
96 {
97 return objCoefficients_;
98 }
99
101 inline double getObjSense() const
102 {
103 return objSense_;
104 }
105
107 inline bool isContinuous(int colIndex) const
108 {
109 return colType_[colIndex] == 'C';
110 }
111
113 inline bool isBinary(int colIndex) const
114 {
115 return colType_[colIndex] == 'B';
116 }
117
119 inline bool isInteger(int colIndex) const
120 {
121 return colType_[colIndex] == 'B' || colType_[colIndex] == 'I';
122 }
123
125 inline bool isIntegerNonBinary(int colIndex) const
126 {
127 return colType_[colIndex] == 'I';
128 }
129
131 inline bool isFreeBinary(int colIndex) const
132 {
133 return colType_[colIndex] == 'B' && colUpper_[colIndex] > colLower_[colIndex];
134 }
135
137 inline const char *getColType() const
138 {
139 return colType_;
140 }
141
143 inline const CoinPackedMatrix *getMatrixByRow() const
144 {
145 return matrixByRow_;
146 }
147
149 inline const CoinPackedMatrix *getMatrixByCol() const
150 {
151 return matrixByCol_;
152 }
153
155 inline const CoinPackedMatrix *getOriginalMatrixByRow() const
156 {
157 return originalMatrixByRow_;
158 }
159
161 inline const CoinPackedMatrix *getOriginalMatrixByCol() const
162 {
163 return originalMatrixByCol_;
164 }
166
169 inline const double *getColSolution() const
171 {
172 return colSolution_;
173 }
174
176 inline const double *getRowPrice() const
177 {
178 return rowPrice_;
179 }
180
182 inline const double *getReducedCost() const
183 {
184 return reducedCost_;
185 }
186
188 inline const double *getRowActivity() const
189 {
190 return rowActivity_;
191 }
192
194 inline const double *getDoNotSeparateThis() const
195 {
196 return doNotSeparateThis_;
197 }
199
202 inline double getInfinity() const
204 {
205 return infinity_;
206 }
207
210 inline double getObjValue() const
211 {
212 return objValue_;
213 }
214
216 inline double getObjOffset() const
217 {
218 return objOffset_;
219 }
220
222 inline double getDualTolerance() const
223 {
224 return dualTolerance_;
225 }
226
228 inline double getPrimalTolerance() const
229 {
230 return primalTolerance_;
231 }
232
234 inline double getIntegerTolerance() const
235 {
236 return integerTolerance_;
237 }
238
240 inline double getIntegerUpperBound() const
241 {
242 return integerUpperBound_;
243 }
244
246 inline double getIntegerLowerBound() const
247 {
248 return integerLowerBound_;
249 }
251
252 //---------------------------------------------------------------------------
253
268 void loadProblem(const CoinPackedMatrix &matrix,
269 const double *collb, const double *colub,
270 const double *obj,
271 const double *rowlb, const double *rowub,
272 bool makeRowCopy = false);
273
275
276 //---------------------------------------------------------------------------
277
280 inline void setNumCols(int value)
282 {
283 numCols_ = value;
284 }
285
287 inline void setNumRows(int value)
288 {
289 numRows_ = value;
290 }
291
293 inline void setNumElements(int value)
294 {
295 numElements_ = value;
296 }
297
299 inline void setNumIntegers(int value)
300 {
301 numIntegers_ = value;
302 }
303
305 void setColLower(const double *array, bool copyIn = true);
306
308 void setColUpper(const double *array, bool copyIn = true);
309
311 void setRowLower(const double *array, bool copyIn = true);
312
314 void setRowUpper(const double *array, bool copyIn = true);
315
323 void setRightHandSide(const double *array, bool copyIn = true);
324
333 void createRightHandSide();
334
336 void setObjCoefficients(const double *array, bool copyIn = true);
337
339 inline void setObjSense(double value)
340 {
341 objSense_ = value;
342 }
343
345 void setColType(const char *array, bool copyIn = true);
346
348 void setMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn = true);
349
351 void createMatrixByRow();
352
354 void setMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn = true);
355
357 void setOriginalMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn = true);
358
360 void setOriginalMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn = true);
361
363 void setColSolution(const double *array, bool copyIn = true);
364
366 void setRowPrice(const double *array, bool copyIn = true);
367
369 void setReducedCost(const double *array, bool copyIn = true);
370
372 void setRowActivity(const double *array, bool copyIn = true);
373
375 void setDoNotSeparateThis(const double *array, bool copyIn = true);
376
378 inline void setInfinity(double value)
379 {
380 infinity_ = value;
381 }
382
384 inline void setObjValue(double value)
385 {
386 objValue_ = value;
387 }
388
390 inline void setObjOffset(double value)
391 {
392 objOffset_ = value;
393 }
394
396 inline void setDualTolerance(double value)
397 {
398 dualTolerance_ = value;
399 }
400
402 inline void setPrimalTolerance(double value)
403 {
404 primalTolerance_ = value;
405 }
406
408 inline void setIntegerTolerance(double value)
409 {
410 integerTolerance_ = value;
411 }
412
414 inline void setIntegerUpperBound(double value)
415 {
416 integerUpperBound_ = value;
417 }
418
420 inline void setIntegerLowerBound(double value)
421 {
422 integerLowerBound_ = value;
423 }
425
426 //---------------------------------------------------------------------------
427
429
430 CoinSnapshot();
432
434 CoinSnapshot(const CoinSnapshot &);
435
437 CoinSnapshot &operator=(const CoinSnapshot &rhs);
438
440 virtual ~CoinSnapshot();
441
443
444 private:
446
447
453 void gutsOfDestructor(int type);
455 void gutsOfCopy(const CoinSnapshot &rhs);
457
459
461 double objSense_;
462
464 double infinity_;
465
467 double objValue_;
468
470 double objOffset_;
471
473 double dualTolerance_;
474
476 double primalTolerance_;
477
479 double integerTolerance_;
480
482 double integerUpperBound_;
483
485 double integerLowerBound_;
486
488 const double *colLower_;
489
491 const double *colUpper_;
492
494 const double *rowLower_;
495
497 const double *rowUpper_;
498
500 const double *rightHandSide_;
501
503 const double *objCoefficients_;
504
506 const char *colType_;
507
509 const CoinPackedMatrix *matrixByRow_;
510
512 const CoinPackedMatrix *matrixByCol_;
513
515 const CoinPackedMatrix *originalMatrixByRow_;
516
518 const CoinPackedMatrix *originalMatrixByCol_;
519
521 const double *colSolution_;
522
524 const double *rowPrice_;
525
527 const double *reducedCost_;
528
530 const double *rowActivity_;
531
533 const double *doNotSeparateThis_;
534
536 int numCols_;
537
539 int numRows_;
540
542 int numElements_;
543
545 int numIntegers_;
546
548 typedef struct {
549 unsigned int colLower : 1;
550 unsigned int colUpper : 1;
551 unsigned int rowLower : 1;
552 unsigned int rowUpper : 1;
553 unsigned int rightHandSide : 1;
554 unsigned int objCoefficients : 1;
555 unsigned int colType : 1;
556 unsigned int matrixByRow : 1;
557 unsigned int matrixByCol : 1;
558 unsigned int originalMatrixByRow : 1;
559 unsigned int originalMatrixByCol : 1;
560 unsigned int colSolution : 1;
561 unsigned int rowPrice : 1;
562 unsigned int reducedCost : 1;
563 unsigned int rowActivity : 1;
564 unsigned int doNotSeparateThis : 1;
565 } coinOwned;
566 coinOwned owned_;
568 };
569 #endif
570
571 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
572 */
CoinSnapshot::operator=
CoinSnapshot & operator=(const CoinSnapshot &rhs)
Assignment operator.
CoinSnapshot::getColType
const char * getColType() const
Get colType array (&#39;B&#39;, &#39;I&#39;, or &#39;C&#39; for Binary, Integer and Continuous)
Definition: CoinSnapshot.hpp:137
CoinSnapshot::rowLower_
const double * rowLower_
pointer to array[getNumRows()] of row lower bounds
Definition: CoinSnapshot.hpp:494
CoinSnapshot::setColSolution
void setColSolution(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of primal variable values.
CoinSnapshot::getNumElements
int getNumElements() const
Get number of nonzero elements.
Definition: CoinSnapshot.hpp:47
CoinSnapshot::setNumIntegers
void setNumIntegers(int value)
Set number of integer variables.
Definition: CoinSnapshot.hpp:299
CoinSnapshot::getObjCoefficients
const double * getObjCoefficients() const
Get pointer to array[getNumCols()] of objective function coefficients.
Definition: CoinSnapshot.hpp:95
CoinSnapshot::getPrimalTolerance
double getPrimalTolerance() const
Get primal tolerance.
Definition: CoinSnapshot.hpp:228
CoinSnapshot::getObjValue
double getObjValue() const
Get objective function value - includinbg any offset i.e.
Definition: CoinSnapshot.hpp:210
CoinSnapshot::setRowLower
void setRowLower(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row lower bounds.
CoinSnapshot::createRightHandSide
void createRightHandSide()
Create array[getNumRows()] of row right-hand sides using existing information This gives same results...
CoinSnapshot::getDualTolerance
double getDualTolerance() const
Get dual tolerance.
Definition: CoinSnapshot.hpp:222
CoinSnapshot::gutsOfCopy
void gutsOfCopy(const CoinSnapshot &rhs)
Does main work of copy.
CoinTypes.hpp
CoinSnapshot::setDualTolerance
void setDualTolerance(double value)
Set dual tolerance.
Definition: CoinSnapshot.hpp:396
CoinSnapshot::matrixByRow_
const CoinPackedMatrix * matrixByRow_
pointer to row-wise copy of current matrix
Definition: CoinSnapshot.hpp:509
CoinSnapshot
NON Abstract Base Class for interfacing with cut generators or branching code or .
Definition: CoinSnapshot.hpp:25
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:194
CoinSnapshot::getObjOffset
double getObjOffset() const
Get objective offset i.e. sum c sub j * x subj -objValue = objOffset.
Definition: CoinSnapshot.hpp:216
CoinSnapshot::setColLower
void setColLower(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of column lower bounds.
CoinSnapshot::getNumCols
int getNumCols() const
Get number of columns.
Definition: CoinSnapshot.hpp:35
CoinSnapshot::isContinuous
bool isContinuous(int colIndex) const
Return true if variable is continuous.
Definition: CoinSnapshot.hpp:107
CoinSnapshot::getIntegerLowerBound
double getIntegerLowerBound() const
Get integer lower bound i.e. best possible solution * getObjSense.
Definition: CoinSnapshot.hpp:246
CoinSnapshot::setNumRows
void setNumRows(int value)
Set number of rows.
Definition: CoinSnapshot.hpp:287
CoinSnapshot::getColSolution
const double * getColSolution() const
Get pointer to array[getNumCols()] of primal variable values.
Definition: CoinSnapshot.hpp:170
CoinSnapshot::matrixByCol_
const CoinPackedMatrix * matrixByCol_
pointer to column-wise copy of current matrix
Definition: CoinSnapshot.hpp:512
CoinSnapshot::colSolution_
const double * colSolution_
pointer to array[getNumCols()] of primal variable values
Definition: CoinSnapshot.hpp:521
CoinSnapshot::createMatrixByRow
void createMatrixByRow()
Create row-wise copy from MatrixByCol.
CoinSnapshot::getInfinity
double getInfinity() const
Get solver&#39;s value for infinity.
Definition: CoinSnapshot.hpp:203
CoinSnapshot::getRowUpper
const double * getRowUpper() const
Get pointer to array[getNumRows()] of row upper bounds.
Definition: CoinSnapshot.hpp:77
CoinSnapshot::objOffset_
double objOffset_
objective offset i.e. sum c sub j * x subj -objValue = objOffset
Definition: CoinSnapshot.hpp:470
CoinSnapshot::originalMatrixByRow_
const CoinPackedMatrix * originalMatrixByRow_
pointer to row-wise copy of &quot;original&quot; matrix
Definition: CoinSnapshot.hpp:515
CoinSnapshot::getNumIntegers
int getNumIntegers() const
Get number of integer variables.
Definition: CoinSnapshot.hpp:53
CoinSnapshot::setObjOffset
void setObjOffset(double value)
Set objective offset i.e. sum c sub j * x subj -objValue = objOffset.
Definition: CoinSnapshot.hpp:390
CoinSnapshot::getColLower
const double * getColLower() const
Get pointer to array[getNumCols()] of column lower bounds.
Definition: CoinSnapshot.hpp:59
CoinSnapshot::CoinSnapshot
CoinSnapshot()
Default Constructor.
CoinSnapshot::setObjSense
void setObjSense(double value)
Set objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:339
CoinSnapshot::rowUpper_
const double * rowUpper_
pointer to array[getNumRows()] of row upper bounds
Definition: CoinSnapshot.hpp:497
CoinSnapshot::isFreeBinary
bool isFreeBinary(int colIndex) const
Return true if variable is binary and not fixed at either bound.
Definition: CoinSnapshot.hpp:131
CoinSnapshot::integerUpperBound_
double integerUpperBound_
integer upper bound i.e. best solution * getObjSense
Definition: CoinSnapshot.hpp:482
CoinSnapshot::gutsOfDestructor
void gutsOfDestructor(int type)
Does main work of destructor - type (or&#39;ed) 1 - NULLify pointers 2 - delete pointers 4 - initialize s...
CoinSnapshot::colType_
const char * colType_
colType array (&#39;B&#39;, &#39;I&#39;, or &#39;C&#39; for Binary, Integer and Continuous)
Definition: CoinSnapshot.hpp:506
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::primalTolerance_
double primalTolerance_
primal tolerance
Definition: CoinSnapshot.hpp:476
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::objSense_
double objSense_
objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:461
CoinSnapshot::numIntegers_
int numIntegers_
number of integer variables
Definition: CoinSnapshot.hpp:545
CoinSnapshot::objValue_
double objValue_
objective function value (including any rhs offset)
Definition: CoinSnapshot.hpp:467
CoinSnapshot::getMatrixByRow
const CoinPackedMatrix * getMatrixByRow() const
Get pointer to row-wise copy of current matrix.
Definition: CoinSnapshot.hpp:143
CoinSnapshot::getObjSense
double getObjSense() const
Get objective function sense (1 for min (default), -1 for max)
Definition: CoinSnapshot.hpp:101
CoinSnapshot::isBinary
bool isBinary(int colIndex) const
Return true if variable is binary.
Definition: CoinSnapshot.hpp:113
CoinSnapshot::setOriginalMatrixByCol
void setOriginalMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to column-wise copy of &quot;original&quot; matrix.
CoinSnapshot::getRowLower
const double * getRowLower() const
Get pointer to array[getNumRows()] of row lower bounds.
Definition: CoinSnapshot.hpp:71
CoinSnapshot::setIntegerTolerance
void setIntegerTolerance(double value)
Set integer tolerance.
Definition: CoinSnapshot.hpp:408
CoinSnapshot::setNumCols
void setNumCols(int value)
Set number of columns.
Definition: CoinSnapshot.hpp:281
CoinSnapshot::setIntegerUpperBound
void setIntegerUpperBound(double value)
Set integer upper bound i.e. best solution * getObjSense.
Definition: CoinSnapshot.hpp:414
CoinSnapshot::setColUpper
void setColUpper(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of column upper bounds.
CoinSnapshot::getOriginalMatrixByCol
const CoinPackedMatrix * getOriginalMatrixByCol() const
Get pointer to column-wise copy of &quot;original&quot; matrix.
Definition: CoinSnapshot.hpp:161
CoinSnapshot::numCols_
int numCols_
number of columns
Definition: CoinSnapshot.hpp:536
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::setIntegerLowerBound
void setIntegerLowerBound(double value)
Set integer lower bound i.e. best possible solution * getObjSense.
Definition: CoinSnapshot.hpp:420
CoinSnapshot::getColUpper
const double * getColUpper() const
Get pointer to array[getNumCols()] of column upper bounds.
Definition: CoinSnapshot.hpp:65
CoinSnapshot::rightHandSide_
const double * rightHandSide_
pointer to array[getNumRows()] of rhs side values
Definition: CoinSnapshot.hpp:500
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...
CoinPackedMatrix
Sparse Matrix Base Class.
Definition: CoinPackedMatrix.hpp:79
CoinSnapshot::coinOwned
To say whether arrays etc are owned by CoinSnapshot.
Definition: CoinSnapshot.hpp:548
CoinSnapshot::getNumRows
int getNumRows() const
Get number of rows.
Definition: CoinSnapshot.hpp:41
CoinSnapshot::originalMatrixByCol_
const CoinPackedMatrix * originalMatrixByCol_
pointer to column-wise copy of &quot;original&quot; matrix
Definition: CoinSnapshot.hpp:518
CoinSnapshot::doNotSeparateThis_
const double * doNotSeparateThis_
pointer to array[getNumCols()] of primal variable values which should not be separated (for debug) ...
Definition: CoinSnapshot.hpp:533
CoinSnapshot::setReducedCost
void setReducedCost(const double *array, bool copyIn=true)
Set a pointer to array[getNumCols()] of reduced costs.
CoinSnapshot::colUpper_
const double * colUpper_
pointer to array[getNumCols()] of column upper bounds
Definition: CoinSnapshot.hpp:491
CoinSnapshot::infinity_
double infinity_
solver&#39;s value for infinity
Definition: CoinSnapshot.hpp:464
CoinSnapshot::setInfinity
void setInfinity(double value)
Set solver&#39;s value for infinity.
Definition: CoinSnapshot.hpp:378
CoinSnapshot::rowPrice_
const double * rowPrice_
pointer to array[getNumRows()] of dual variable values
Definition: CoinSnapshot.hpp:524
CoinSnapshot::getIntegerTolerance
double getIntegerTolerance() const
Get integer tolerance.
Definition: CoinSnapshot.hpp:234
CoinSnapshot::getIntegerUpperBound
double getIntegerUpperBound() const
Get integer upper bound i.e. best solution * getObjSense.
Definition: CoinSnapshot.hpp:240
CoinSnapshot::setMatrixByRow
void setMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to row-wise copy of current matrix.
CoinSnapshot::objCoefficients_
const double * objCoefficients_
pointer to array[getNumCols()] of objective function coefficients
Definition: CoinSnapshot.hpp:503
CoinSnapshot::setColType
void setColType(const char *array, bool copyIn=true)
Set colType array (&#39;B&#39;, &#39;I&#39;, or &#39;C&#39; for Binary, Integer and Continuous)
CoinSnapshot::getRowActivity
const double * getRowActivity() const
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vecto...
Definition: CoinSnapshot.hpp:188
CoinSnapshot::getRowPrice
const double * getRowPrice() const
Get pointer to array[getNumRows()] of dual variable values.
Definition: CoinSnapshot.hpp:176
CoinSnapshot::numElements_
int numElements_
number of nonzero elements
Definition: CoinSnapshot.hpp:542
CoinSnapshot::getOriginalMatrixByRow
const CoinPackedMatrix * getOriginalMatrixByRow() const
Get pointer to row-wise copy of &quot;original&quot; matrix.
Definition: CoinSnapshot.hpp:155
CoinSnapshot::setMatrixByCol
void setMatrixByCol(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to column-wise copy of current matrix.
CoinSnapshot::~CoinSnapshot
virtual ~CoinSnapshot()
Destructor.
CoinSnapshot::getMatrixByCol
const CoinPackedMatrix * getMatrixByCol() const
Get pointer to column-wise copy of current matrix.
Definition: CoinSnapshot.hpp:149
CoinSnapshot::isInteger
bool isInteger(int colIndex) const
Return true if column is integer.
Definition: CoinSnapshot.hpp:119
CoinSnapshot::reducedCost_
const double * reducedCost_
a pointer to array[getNumCols()] of reduced costs
Definition: CoinSnapshot.hpp:527
CoinSnapshot::setObjValue
void setObjValue(double value)
Set objective function value (including any rhs offset)
Definition: CoinSnapshot.hpp:384
CoinSnapshot::integerTolerance_
double integerTolerance_
integer tolerance
Definition: CoinSnapshot.hpp:479
CoinSnapshot::setOriginalMatrixByRow
void setOriginalMatrixByRow(const CoinPackedMatrix *matrix, bool copyIn=true)
Set pointer to row-wise copy of &quot;original&quot; matrix.
CoinSnapshot::isIntegerNonBinary
bool isIntegerNonBinary(int colIndex) const
Return true if variable is general integer.
Definition: CoinSnapshot.hpp:125
CoinSnapshot::rowActivity_
const double * rowActivity_
pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector)...
Definition: CoinSnapshot.hpp:530
CoinSnapshot::setRowUpper
void setRowUpper(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of row upper bounds.
CoinSnapshot::dualTolerance_
double dualTolerance_
dual tolerance
Definition: CoinSnapshot.hpp:473
CoinSnapshot::setNumElements
void setNumElements(int value)
Set number of nonzero elements.
Definition: CoinSnapshot.hpp:293
CoinSnapshot::colLower_
const double * colLower_
pointer to array[getNumCols()] of column lower bounds
Definition: CoinSnapshot.hpp:488
CoinSnapshot::setObjCoefficients
void setObjCoefficients(const double *array, bool copyIn=true)
Set pointer to array[getNumCols()] of objective function coefficients.
CoinSnapshot::setPrimalTolerance
void setPrimalTolerance(double value)
Set primal tolerance.
Definition: CoinSnapshot.hpp:402
CoinSnapshot::owned_
coinOwned owned_
Definition: CoinSnapshot.hpp:566
CoinSnapshot::setRowPrice
void setRowPrice(const double *array, bool copyIn=true)
Set pointer to array[getNumRows()] of dual variable values.
CoinSnapshot::numRows_
int numRows_
number of rows
Definition: CoinSnapshot.hpp:539
CoinSnapshot::integerLowerBound_
double integerLowerBound_
integer lower bound i.e. best possible solution * getObjSense
Definition: CoinSnapshot.hpp:485
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:89
CoinSnapshot::getReducedCost
const double * getReducedCost() const
Get a pointer to array[getNumCols()] of reduced costs.
Definition: CoinSnapshot.hpp:182