|
Osi 0.108.12
|
Lotsize class. More...
#include <OsiBranchingObject.hpp>
Public Member Functions | |
| OsiLotsize () | |
| OsiLotsize (const OsiSolverInterface *solver, int iColumn, int numberPoints, const double *points, bool range=false) | |
| OsiLotsize (const OsiLotsize &) | |
| virtual OsiObject * | clone () const |
| Clone. | |
| OsiLotsize & | operator= (const OsiLotsize &rhs) |
| virtual | ~OsiLotsize () |
| 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 contain the current solution. | |
| 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. | |
| virtual void | resetBounds (const OsiSolverInterface *solver) |
| Reset original upper and lower bound values from the solver. | |
| bool | findRange (double value, double integerTolerance) const |
| Finds range of interest so value is feasible in range range_ or infeasible between hi[range_] and lo[range_+1]. | |
| virtual void | floorCeiling (double &floorLotsize, double &ceilingLotsize, double value, double tolerance) const |
| Returns floor and ceiling. | |
| double | originalLowerBound () const |
| Original bounds. | |
| double | originalUpperBound () const |
| int | rangeType () const |
| Type - 1 points, 2 ranges. | |
| int | numberRanges () const |
| Number of points. | |
| double * | bound () const |
| Ranges. | |
| 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. | |
| virtual bool | canDoHeuristics () const |
| Return true if object can take part in normal heuristics. | |
| 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). | |
Private Attributes | |
| int | columnNumber_ |
| data | |
| int | rangeType_ |
| Type - 1 points, 2 ranges. | |
| int | numberRanges_ |
| Number of points. | |
| double | largestGap_ |
| double * | bound_ |
| Ranges. | |
| int | range_ |
| Current range. | |
Additional Inherited Members | |
| 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 | |
Lotsize class.
Definition at line 904 of file OsiBranchingObject.hpp.
| OsiLotsize::OsiLotsize | ( | ) |
| OsiLotsize::OsiLotsize | ( | const OsiSolverInterface * | solver, |
| int | iColumn, | ||
| int | numberPoints, | ||
| const double * | points, | ||
| bool | range = false ) |
| OsiLotsize::OsiLotsize | ( | const OsiLotsize & | ) |
|
virtual |
|
virtual |
Clone.
| OsiLotsize & OsiLotsize::operator= | ( | const OsiLotsize & | rhs | ) |
|
virtual |
Infeasibility - large is 0.5.
|
virtual |
Set bounds to contain the current solution.
More precisely, for the variable associated with this object, take the value given in the current solution, force it within the current bounds if required, then set the bounds to fix the variable at the integer nearest the solution value. 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 949 of file OsiBranchingObject.hpp.
|
virtual |
Column number if single column object -1 otherwise, so returns >= 0 Used by heuristics.
|
virtual |
Reset original upper and lower bound values from the solver.
Handy for updating bounds held in this object after bounds held in the solver have been tightened.
| bool OsiLotsize::findRange | ( | double | value, |
| double | integerTolerance ) const |
Finds range of interest so value is feasible in range range_ or infeasible between hi[range_] and lo[range_+1].
Returns true if feasible.
|
virtual |
Returns floor and ceiling.
|
inline |
Original bounds.
Definition at line 977 of file OsiBranchingObject.hpp.
|
inline |
Definition at line 981 of file OsiBranchingObject.hpp.
|
inline |
Type - 1 points, 2 ranges.
Definition at line 986 of file OsiBranchingObject.hpp.
|
inline |
Number of points.
Definition at line 991 of file OsiBranchingObject.hpp.
|
inline |
Ranges.
Definition at line 996 of file OsiBranchingObject.hpp.
|
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 1009 of file OsiBranchingObject.hpp.
|
inlinevirtual |
Return true if object can take part in normal heuristics.
Definition at line 1015 of file OsiBranchingObject.hpp.
|
private |
|
private |
Type - 1 points, 2 ranges.
Definition at line 1026 of file OsiBranchingObject.hpp.
|
private |
Number of points.
Definition at line 1028 of file OsiBranchingObject.hpp.
|
private |
Definition at line 1030 of file OsiBranchingObject.hpp.
|
private |
Ranges.
Definition at line 1032 of file OsiBranchingObject.hpp.
|
mutableprivate |
Current range.
Definition at line 1034 of file OsiBranchingObject.hpp.