|
Osi 0.108.9
|
Define a class to add a bit of complexity to OsiObject This assumes 2 way branching. More...
#include <OsiBranchingObject.hpp>
Inheritance diagram for OsiObject2:
Collaboration diagram for OsiObject2:Public Member Functions | |
| 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) | |
Public Member Functions inherited from OsiObject | |
| OsiObject () | |
| Default Constructor. | |
| OsiObject (const OsiObject &) | |
| Copy constructor. | |
| OsiObject & | operator= (const OsiObject &rhs) |
| Assignment operator. | |
| virtual OsiObject * | clone () const =0 |
| Clone. | |
| virtual | ~OsiObject () |
| Destructor. | |
| double | infeasibility (const OsiSolverInterface *solver, int &whichWay) const |
| Infeasibility of the object. | |
| virtual double | infeasibility (const OsiBranchingInformation *info, int &whichWay) const =0 |
| virtual double | checkInfeasibility (const OsiBranchingInformation *info) const |
| virtual double | feasibleRegion (OsiSolverInterface *solver) const |
| For the variable(s) referenced by the object, look at the current solution and set bounds to match the solution. | |
| virtual double | feasibleRegion (OsiSolverInterface *solver, const OsiBranchingInformation *info) const =0 |
| For the variable(s) referenced by the object, look at the current solution and set bounds to match the solution. | |
| virtual OsiBranchingObject * | createBranch (OsiSolverInterface *, const OsiBranchingInformation *, int) const |
| Create a branching object and indicate which way to branch first. | |
| virtual bool | canDoHeuristics () const |
| Return true if object can take part in normal heuristics. | |
| virtual bool | canMoveToNearest () const |
| Return true if object can take part in move to nearest heuristic. | |
| virtual int | columnNumber () const |
| Column number if single column object -1 otherwise, Used by heuristics. | |
| int | priority () const |
| Return Priority - note 1 is highest priority. | |
| void | setPriority (int priority) |
| Set priority. | |
| virtual bool | boundBranch () const |
| Return true if branch should only bound variables. | |
| virtual bool | canHandleShadowPrices () const |
| Return true if knows how to deal with Pseudo Shadow Prices. | |
| int | numberWays () const |
| Return maximum number of ways branch may have. | |
| void | setNumberWays (int numberWays) |
| Set maximum number of ways branch may have. | |
| void | setWhichWay (int way) |
| Return preferred way to branch. | |
| int | whichWay () const |
| Return current preferred way to branch. | |
| double | infeasibility () const |
| Return infeasibility. | |
| virtual double | upEstimate () const |
| Return "up" estimate (default 1.0e-5) | |
| virtual double | downEstimate () const |
| Return "down" estimate (default 1.0e-5) | |
| virtual void | resetBounds (const OsiSolverInterface *) |
| Reset variable bounds to their original values. | |
| virtual void | resetSequenceEtc (int, const int *) |
| Change column numbers after preprocessing. | |
| virtual void | updateBefore (const OsiObject *) |
| Updates stuff like pseudocosts before threads. | |
| virtual void | updateAfter (const OsiObject *, const OsiObject *) |
| Updates stuff like pseudocosts after threads finished. | |
Protected Attributes | |
| int | preferredWay_ |
| Preferred way of branching - -1 off, 0 down, 1 up (for 2-way) | |
| double | otherInfeasibility_ |
| "Infeasibility" on other way | |
Protected Attributes inherited from OsiObject | |
| double | infeasibility_ |
| data | |
| short | whichWay_ |
| Computed preferred way to branch. | |
| short | numberWays_ |
| Maximum number of ways on branch. | |
| int | priority_ |
| Priority. | |
Define a class to add a bit of complexity to OsiObject This assumes 2 way branching.
Definition at line 231 of file OsiBranchingObject.hpp.
| OsiObject2::OsiObject2 | ( | ) |
Default Constructor.
| OsiObject2::OsiObject2 | ( | const OsiObject2 & | ) |
Copy constructor.
|
virtual |
Destructor.
| OsiObject2 & OsiObject2::operator= | ( | const OsiObject2 & | rhs | ) |
Assignment operator.
|
inline |
Set preferred way of branching - -1 off, 0 down, 1 up (for 2-way)
Definition at line 247 of file OsiBranchingObject.hpp.
|
inlinevirtual |
Get preferred way of branching - -1 off, 0 down, 1 up (for 2-way)
Reimplemented from OsiObject.
Definition at line 253 of file OsiBranchingObject.hpp.
|
protected |
Preferred way of branching - -1 off, 0 down, 1 up (for 2-way)
Definition at line 260 of file OsiBranchingObject.hpp.
|
mutableprotected |
"Infeasibility" on other way
Definition at line 262 of file OsiBranchingObject.hpp.