|
Osi 0.108.12
|
Define a single integer class. More...
#include <OsiBranchingObject.hpp>
Public Member Functions | |
| OsiSimpleInteger () | |
| Default Constructor. | |
| OsiSimpleInteger (const OsiSolverInterface *solver, int iColumn) | |
| Useful constructor - passed solver index. | |
| OsiSimpleInteger (int iColumn, double lower, double upper) | |
| Useful constructor - passed solver index and original bounds. | |
| OsiSimpleInteger (const OsiSimpleInteger &) | |
| Copy constructor. | |
| virtual OsiObject * | clone () const |
| Clone. | |
| OsiSimpleInteger & | operator= (const OsiSimpleInteger &rhs) |
| Assignment operator. | |
| virtual | ~OsiSimpleInteger () |
| Destructor. | |
| virtual double | infeasibility (const OsiBranchingInformation *info, int &whichWay) const |
| Infeasibility - large is 0.5. | |
| virtual double | feasibleRegion (OsiSolverInterface *solver, const OsiBranchingInformation *info) const |
| Set bounds to fix the variable at the current (integer) value. | |
| virtual OsiBranchingObject * | createBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way) const |
| Creates a branching object. | |
| void | setColumnNumber (int value) |
| Set solver column number. | |
| virtual int | columnNumber () const |
| Column number if single column object -1 otherwise, so returns >= 0 Used by heuristics. | |
| double | originalLowerBound () const |
| Original bounds. | |
| void | setOriginalLowerBound (double value) |
| double | originalUpperBound () const |
| void | setOriginalUpperBound (double value) |
| virtual void | resetBounds (const OsiSolverInterface *solver) |
| Reset variable bounds to their original values. | |
| virtual void | resetSequenceEtc (int numberColumns, const int *originalColumns) |
| Change column numbers after preprocessing. | |
| virtual double | upEstimate () const |
| Return "up" estimate (default 1.0e-5). | |
| virtual double | downEstimate () const |
| Return "down" estimate (default 1.0e-5). | |
| virtual bool | canHandleShadowPrices () const |
| Return true if knows how to deal with Pseudo Shadow Prices. | |
| Public Member Functions inherited from OsiObject2 | |
| OsiObject2 () | |
| Default Constructor. | |
| OsiObject2 (const OsiObject2 &) | |
| Copy constructor. | |
| OsiObject2 & | operator= (const OsiObject2 &rhs) |
| Assignment operator. | |
| virtual | ~OsiObject2 () |
| Destructor. | |
| void | setPreferredWay (int value) |
| Set preferred way of branching - -1 off, 0 down, 1 up (for 2-way). | |
| virtual int | preferredWay () const |
| Get preferred way of branching - -1 off, 0 down, 1 up (for 2-way). | |
Protected Attributes | |
| double | originalLower_ |
| data Original lower bound | |
| double | originalUpper_ |
| Original upper bound. | |
| int | columnNumber_ |
| Column number in solver. | |
| Protected Attributes inherited from OsiObject2 | |
| int | preferredWay_ |
| Preferred way of branching - -1 off, 0 down, 1 up (for 2-way). | |
| double | otherInfeasibility_ |
| "Infeasibility" on other way | |
Define a single integer class.
Definition at line 558 of file OsiBranchingObject.hpp.
| OsiSimpleInteger::OsiSimpleInteger | ( | ) |
Default Constructor.
| OsiSimpleInteger::OsiSimpleInteger | ( | const OsiSolverInterface * | solver, |
| int | iColumn ) |
Useful constructor - passed solver index.
| OsiSimpleInteger::OsiSimpleInteger | ( | int | iColumn, |
| double | lower, | ||
| double | upper ) |
Useful constructor - passed solver index and original bounds.
| OsiSimpleInteger::OsiSimpleInteger | ( | const OsiSimpleInteger & | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Clone.
| OsiSimpleInteger & OsiSimpleInteger::operator= | ( | const OsiSimpleInteger & | rhs | ) |
Assignment operator.
|
virtual |
Infeasibility - large is 0.5.
|
virtual |
Set bounds to fix the variable at the current (integer) value.
Given an integer value, set the lower and upper bounds to fix the variable. Returns amount it had to move variable.
|
virtual |
Creates a branching object.
The preferred direction is set by way, 0 for down, 1 for up.
|
inline |
Set solver column number.
Definition at line 601 of file OsiBranchingObject.hpp.
|
virtual |
Column number if single column object -1 otherwise, so returns >= 0 Used by heuristics.
|
inline |
Original bounds.
Definition at line 613 of file OsiBranchingObject.hpp.
|
inline |
Definition at line 617 of file OsiBranchingObject.hpp.
|
inline |
Definition at line 621 of file OsiBranchingObject.hpp.
|
inline |
Definition at line 625 of file OsiBranchingObject.hpp.
|
virtual |
Reset variable bounds to their original values.
Bounds may be tightened, so it may be good to be able to reset them to their original values.
|
virtual |
Change column numbers after preprocessing.
|
virtual |
Return "up" estimate (default 1.0e-5).
|
virtual |
Return "down" estimate (default 1.0e-5).
|
inlinevirtual |
Return true if knows how to deal with Pseudo Shadow Prices.
Definition at line 643 of file OsiBranchingObject.hpp.
|
protected |
data Original lower bound
Definition at line 651 of file OsiBranchingObject.hpp.
|
protected |
Original upper bound.
Definition at line 653 of file OsiBranchingObject.hpp.
|
protected |
Column number in solver.
Definition at line 655 of file OsiBranchingObject.hpp.