|
Cbc 2.10.13
|
Simple branching object for an integer variable with pseudo costs. More...
#include <CbcBranchDynamic.hpp>
Public Member Functions | |
| CbcDynamicPseudoCostBranchingObject () | |
| Default constructor. | |
| CbcDynamicPseudoCostBranchingObject (CbcModel *model, int variable, int way, double value, CbcSimpleIntegerDynamicPseudoCost *object) | |
| Create a standard floor/ceiling branch object. | |
| virtual double | branch () |
| Create a degenerate branch object. | |
| virtual int | fillStrongInfo (CbcStrongInfo &info) |
| Some branchingObjects may claim to be able to skip strong branching. | |
| *Change in guessed double | changeInGuessed () const |
| *Set change in guessed void | setChangeInGuessed (double value) |
| *Return object CbcSimpleIntegerDynamicPseudoCost * | object () const |
| *Set object void | setObject (CbcSimpleIntegerDynamicPseudoCost *object) |
| virtual CbcBranchObjType | type () const |
Return the type (an integer identifier) of this. | |
| Public Member Functions inherited from CbcIntegerBranchingObject | |
| CbcIntegerBranchingObject () | |
| Default constructor. | |
| CbcIntegerBranchingObject (CbcModel *model, int variable, int way, double value) | |
| Create a standard floor/ceiling branch object. | |
| virtual void | fix (OsiSolverInterface *solver, double *lower, double *upper, int branchState) const |
| Update bounds in solver as in 'branch' and update given bounds. | |
| virtual bool | tighten (OsiSolverInterface *) |
| Change (tighten) bounds in object to reflect bounds in solver. | |
| virtual void | print () |
| Print something about branch - only if log level high. | |
| *Lower and upper bounds for down branch const double * | downBounds () const |
| *Lower and upper bounds for up branch const double * | upBounds () const |
| *Set lower and upper bounds for down branch void | setDownBounds (const double bounds[2]) |
| *Set lower and upper bounds for up branch void | setUpBounds (const double bounds[2]) |
| virtual CbcRangeCompare | compareBranchingObject (const CbcBranchingObject *brObj, const bool replaceIfOverlap=false) |
Compare the this with brObj. | |
| virtual void | print () const |
| Print something about branch - only if log level high. | |
| Public Member Functions inherited from CbcBranchingObject | |
| CbcBranchingObject () | |
| Default Constructor. | |
| CbcBranchingObject (CbcModel *model, int variable, int way, double value) | |
| Constructor. | |
| CbcBranchingObject (const CbcBranchingObject &) | |
| Copy constructor. | |
| CbcBranchingObject & | operator= (const CbcBranchingObject &rhs) |
| Assignment operator. | |
| virtual CbcBranchingObject * | clone () const =0 |
| Clone. | |
| virtual | ~CbcBranchingObject () |
| Destructor. | |
| void | resetNumberBranchesLeft () |
| Reset number of branches left to original. | |
| void | setNumberBranches (int value) |
| Set number of branches to do. | |
| virtual double | branch (OsiSolverInterface *) |
| Execute the actions required to branch, as specified by the current state of the branching object, and advance the object's state. | |
| virtual void | previousBranch () |
| Reset every information so that the branching object appears to point to the previous child. | |
| int | variable () const |
| Index identifying the associated CbcObject within its class. | |
| int | way () const |
| Get the state of the branching object. | |
| void | way (int way) |
| Set the state of the branching object. | |
| void | setModel (CbcModel *model) |
| update model | |
| CbcModel * | model () const |
| Return model. | |
| CbcObject * | object () const |
| Return pointer back to object which created. | |
| void | setOriginalObject (CbcObject *object) |
| Set pointer back to object which created. | |
| virtual int | compareOriginalObject (const CbcBranchingObject *brObj) const |
Compare the original object of this with the original object of brObj. | |
Protected Attributes | |
| *Change in guessed objective value for next branch double | changeInGuessed_ |
| *Pointer back to object CbcSimpleIntegerDynamicPseudoCost * | object_ |
| Protected Attributes inherited from CbcBranchingObject | |
| CbcModel * | model_ |
| The model that owns this branching object. | |
| CbcObject * | originalCbcObject_ |
| Pointer back to object which created. | |
| int | variable_ |
| Branching variable (0 is first integer). | |
| int | way_ |
| The state of the branching object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from CbcIntegerBranchingObject | |
| *Lower[0] and upper[1] bounds for the down | arm (way_=-1) double down_[2] |
| *Lower[0] and upper[1] bounds for the up | arm (way_=1) double up_[2] |
Simple branching object for an integer variable with pseudo costs.
This object can specify a two-way branch on an integer variable. For each arm of the branch, the upper and lower bounds on the variable can be independently specified.
Variable_ holds the index of the integer variable in the integerVariable_ array of the model.
Definition at line 110 of file CbcBranchDynamic.hpp.
| CbcDynamicPseudoCostBranchingObject::CbcDynamicPseudoCostBranchingObject | ( | ) |
Default constructor.
| CbcDynamicPseudoCostBranchingObject::CbcDynamicPseudoCostBranchingObject | ( | CbcModel * | model, |
| int | variable, | ||
| int | way, | ||
| double | value, | ||
| CbcSimpleIntegerDynamicPseudoCost * | object ) |
Create a standard floor/ceiling branch object.
Specifies a simple two-way branch. Let value = x*. One arm of the branch will be is lb <= x <= floor(x*), the other ceil(x*) <= x <= ub. Specify way = -1 to set the object state to perform the down arm first, way = 1 for the up arm.
|
virtual |
Create a degenerate branch object.
Specifies a `one-way branch'. Calling branch() for this object will always result in lowerValue <= x <= upperValue. Used to fix a variable when lowerValue = upperValue. */
Copy constructor CbcDynamicPseudoCostBranchingObject(const CbcDynamicPseudoCostBranchingObject &);
Assignment operator CbcDynamicPseudoCostBranchingObject &operator=(const CbcDynamicPseudoCostBranchingObject &rhs);
Clone virtual CbcBranchingObject *clone() const;
Destructor virtual ~CbcDynamicPseudoCostBranchingObject();
Does part of constructor void fillPart(int variable, int way, double value, CbcSimpleIntegerDynamicPseudoCost *object);
using CbcBranchingObject::branch; /** Sets the bounds for the variable according to the current arm of the branch and advances the object state to the next arm. This version also changes guessed objective value
Reimplemented from CbcIntegerBranchingObject.
|
virtual |
Some branchingObjects may claim to be able to skip strong branching.
If so they have to fill in CbcStrongInfo. The object mention in incoming CbcStrongInfo must match. Returns nonzero if skip is wanted
Reimplemented from CbcBranchingObject.
|
inline |
Definition at line 168 of file CbcBranchDynamic.hpp.
|
inline |
Definition at line 173 of file CbcBranchDynamic.hpp.
|
inline |
Definition at line 178 of file CbcBranchDynamic.hpp.
|
inline |
Definition at line 183 of file CbcBranchDynamic.hpp.
|
inlinevirtual |
Return the type (an integer identifier) of this.
Reimplemented from CbcIntegerBranchingObject.
Definition at line 189 of file CbcBranchDynamic.hpp.
|
protected |
Definition at line 202 of file CbcBranchDynamic.hpp.
|
protected |
Definition at line 204 of file CbcBranchDynamic.hpp.