#include <CbcBranchLotsize.hpp>
Inheritance diagram for CbcLotsize:
Public Member Functions | |
CbcLotsize () | |
CbcLotsize (CbcModel *model, int iColumn, int numberPoints, const double *points, bool range=false) | |
CbcLotsize (const CbcLotsize &) | |
virtual CbcObject * | clone () const |
Clone. | |
CbcLotsize & | operator= (const CbcLotsize &rhs) |
~CbcLotsize () | |
virtual double | infeasibility (int &preferredWay) const |
Infeasibility - large is 0.5. | |
virtual void | feasibleRegion () |
Set bounds to contain the current solution. | |
virtual CbcBranchingObject * | createBranch (int way) |
Creates a branching object. | |
virtual CbcBranchingObject * | preferredNewFeasible () const |
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new feasible point in the good direction. | |
virtual CbcBranchingObject * | notPreferredNewFeasible () const |
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new feasible point in a bad direction. | |
virtual void | resetBounds () |
Reset original upper and lower bound values from the solver. | |
bool | findRange (double value) 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. | |
int | modelSequence () const |
Model 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. | |
double | originalUpperBound () const |
int | rangeType () const |
Type - 1 points, 2 ranges. | |
int | numberRanges () const |
Number of points. | |
double * | bound () const |
Ranges. | |
Private Member Functions | |
void | printLotsize (double value, bool condition, int type) const |
Just for debug (CBC_PRINT defined in CbcBranchLotsize.cpp). | |
Private Attributes | |
int | columnNumber_ |
data Column number in model | |
int | rangeType_ |
Type - 1 points, 2 ranges. | |
int | numberRanges_ |
Number of points. | |
double | largestGap_ |
double * | bound_ |
Ranges. | |
int | range_ |
Current range. |
Definition at line 11 of file CbcBranchLotsize.hpp.
|
|
|
|
|
|
|
|
|
Clone.
Implements CbcObject. |
|
|
|
Infeasibility - large is 0.5.
Implements CbcObject. |
|
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. Implements CbcObject. |
|
Creates a branching object.
Implements CbcObject. |
|
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new feasible point in the good direction. The preferred branching object will force the variable to be +/-1 from its current value, depending on the reduced cost and objective sense. If movement in the direction which improves the objective is impossible due to bounds on the variable, the branching object will move in the other direction. If no movement is possible, the method returns NULL. Only the bounds on this variable are considered when determining if the new point is feasible. Reimplemented from CbcObject. |
|
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new feasible point in a bad direction. As for preferredNewFeasible(), but the preferred branching object will force movement in a direction that degrades the objective. Reimplemented from CbcObject. |
|
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. Reimplemented from CbcObject. |
|
Finds range of interest so value is feasible in range range_ or infeasible between hi[range_] and lo[range_+1]. Returns true if feasible. |
|
Returns floor and ceiling.
Reimplemented from CbcObject. |
|
Model column number.
Definition at line 93 of file CbcBranchLotsize.hpp. |
|
Column number if single column object -1 otherwise, so returns >= 0 Used by heuristics.
Reimplemented from CbcObject. |
|
Original bounds.
Definition at line 102 of file CbcBranchLotsize.hpp. References bound_. |
|
Definition at line 104 of file CbcBranchLotsize.hpp. References bound_, numberRanges_, and rangeType_. |
|
Type - 1 points, 2 ranges.
Definition at line 107 of file CbcBranchLotsize.hpp. |
|
Number of points.
Definition at line 110 of file CbcBranchLotsize.hpp. |
|
Ranges.
Definition at line 113 of file CbcBranchLotsize.hpp. |
|
Just for debug (CBC_PRINT defined in CbcBranchLotsize.cpp).
|
|
data Column number in model
Definition at line 124 of file CbcBranchLotsize.hpp. |
|
Type - 1 points, 2 ranges.
Definition at line 126 of file CbcBranchLotsize.hpp. Referenced by originalUpperBound(). |
|
Number of points.
Definition at line 128 of file CbcBranchLotsize.hpp. Referenced by originalUpperBound(). |
|
Definition at line 130 of file CbcBranchLotsize.hpp. |
|
Ranges.
Definition at line 132 of file CbcBranchLotsize.hpp. Referenced by originalLowerBound(), and originalUpperBound(). |
|
Current range.
Definition at line 134 of file CbcBranchLotsize.hpp. |