#include <CbcBranchActual.hpp>
Inheritance diagram for CbcIntegerPseudoCostBranchingObject:
Public Member Functions | |
CbcIntegerPseudoCostBranchingObject () | |
Default constructor. | |
CbcIntegerPseudoCostBranchingObject (CbcModel *model, int variable, int way, double value) | |
Create a standard floor/ceiling branch object. | |
CbcIntegerPseudoCostBranchingObject (CbcModel *model, int variable, int way, double lowerValue, double upperValue) | |
Create a degenerate branch object. | |
CbcIntegerPseudoCostBranchingObject (const CbcIntegerPseudoCostBranchingObject &) | |
Copy constructor. | |
CbcIntegerPseudoCostBranchingObject & | operator= (const CbcIntegerPseudoCostBranchingObject &rhs) |
Assignment operator. | |
virtual CbcBranchingObject * | clone () const |
Clone. | |
virtual | ~CbcIntegerPseudoCostBranchingObject () |
Destructor. | |
virtual double | branch (bool normalBranch=false) |
Sets the bounds for the variable according to the current arm of the branch and advances the object state to the next arm. | |
double | changeInGuessed () const |
Change in guessed. | |
void | setChangeInGuessed (double value) |
Set change in guessed. | |
Protected Attributes | |
double | changeInGuessed_ |
Change in guessed objective value for next branch. |
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 532 of file CbcBranchActual.hpp.
CbcIntegerPseudoCostBranchingObject::CbcIntegerPseudoCostBranchingObject | ( | ) |
Default constructor.
CbcIntegerPseudoCostBranchingObject::CbcIntegerPseudoCostBranchingObject | ( | CbcModel * | model, | |
int | variable, | |||
int | way, | |||
double | value | |||
) |
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.
CbcIntegerPseudoCostBranchingObject::CbcIntegerPseudoCostBranchingObject | ( | CbcModel * | model, | |
int | variable, | |||
int | way, | |||
double | lowerValue, | |||
double | upperValue | |||
) |
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.
CbcIntegerPseudoCostBranchingObject::CbcIntegerPseudoCostBranchingObject | ( | const CbcIntegerPseudoCostBranchingObject & | ) |
Copy constructor.
virtual CbcIntegerPseudoCostBranchingObject::~CbcIntegerPseudoCostBranchingObject | ( | ) | [virtual] |
Destructor.
CbcIntegerPseudoCostBranchingObject& CbcIntegerPseudoCostBranchingObject::operator= | ( | const CbcIntegerPseudoCostBranchingObject & | rhs | ) |
Assignment operator.
virtual CbcBranchingObject* CbcIntegerPseudoCostBranchingObject::clone | ( | ) | const [virtual] |
virtual double CbcIntegerPseudoCostBranchingObject::branch | ( | bool | normalBranch = false |
) | [virtual] |
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.
double CbcIntegerPseudoCostBranchingObject::changeInGuessed | ( | ) | const [inline] |
void CbcIntegerPseudoCostBranchingObject::setChangeInGuessed | ( | double | value | ) | [inline] |
double CbcIntegerPseudoCostBranchingObject::changeInGuessed_ [protected] |
Change in guessed objective value for next branch.
Definition at line 582 of file CbcBranchActual.hpp.
Referenced by changeInGuessed().