#include <CouenneBranchingObject.hpp>
Inheritance diagram for CouenneBranchingObject:
Public Member Functions | |
CouenneBranchingObject (OsiSolverInterface *solver, const OsiObject *originalObject, JnlstPtr jnlst, expression *var, int way, CouNumber brpoint, bool doFBBT, bool doConvCuts) | |
Constructor. | |
CouenneBranchingObject (const CouenneBranchingObject &src) | |
Copy constructor. | |
virtual OsiBranchingObject * | clone () const |
cloning method | |
virtual double | branch (OsiSolverInterface *solver=NULL) |
Execute the actions required to branch, as specified by the current state of the branching object, and advance the object's state. | |
virtual bool | boundBranch () const |
does this branching object only change variable bounds? | |
void | setSimulate (bool s) |
set simulate_ field below | |
expression * | variable () |
return branching variable | |
Protected Attributes | |
expression * | variable_ |
The index of the variable this branching object refers to. | |
JnlstPtr | jnlst_ |
SmartPointer to the Journalist. | |
bool | doFBBT_ |
shall we do Feasibility based Bound Tightening (FBBT) at branching? | |
bool | doConvCuts_ |
shall we add convexification cuts at branching? | |
double | downEstimate_ |
down branch estimate (done at selectBranch with reduced costs) | |
double | upEstimate_ |
up branch estimate | |
bool | simulate_ |
are we currently in strong branching? |
Branching can also be performed on continuous variables.
Definition at line 32 of file CouenneBranchingObject.hpp.
CouenneBranchingObject::CouenneBranchingObject | ( | OsiSolverInterface * | solver, | |
const OsiObject * | originalObject, | |||
JnlstPtr | jnlst, | |||
expression * | var, | |||
int | way, | |||
CouNumber | brpoint, | |||
bool | doFBBT, | |||
bool | doConvCuts | |||
) |
Constructor.
Get a variable as an argument and set value_ through a call to operator () of that exprAux.
Definition at line 31 of file CouenneBranchingObject.cpp.
References closeToBounds, COUENNE_INFINITY, J_BRANCHING(), jnlst_, and variable_.
Referenced by clone().
CouenneBranchingObject::CouenneBranchingObject | ( | const CouenneBranchingObject & | src | ) | [inline] |
virtual OsiBranchingObject* CouenneBranchingObject::clone | ( | ) | const [inline, virtual] |
cloning method
Reimplemented in CouenneComplBranchingObject.
Definition at line 59 of file CouenneBranchingObject.hpp.
References CouenneBranchingObject().
double CouenneBranchingObject::branch | ( | OsiSolverInterface * | solver = NULL |
) | [virtual] |
Execute the actions required to branch, as specified by the current state of the branching object, and advance the object's state.
Returns change in guessed objective on next branch
Reimplemented in CouenneComplBranchingObject.
Definition at line 91 of file CouenneBranchingObject.cpp.
References t_chg_bounds::CHANGED, COUENNE_EPS, doConvCuts_, doFBBT_, isInteger(), J_BRANCHING(), jnlst_, t_chg_bounds::setLower(), t_chg_bounds::setUpper(), simulate_, sparse2dense(), and variable_.
virtual bool CouenneBranchingObject::boundBranch | ( | ) | const [inline, virtual] |
does this branching object only change variable bounds?
Definition at line 70 of file CouenneBranchingObject.hpp.
References doConvCuts_.
void CouenneBranchingObject::setSimulate | ( | bool | s | ) | [inline] |
set simulate_ field below
Definition at line 74 of file CouenneBranchingObject.hpp.
References simulate_.
expression* CouenneBranchingObject::variable | ( | ) | [inline] |
return branching variable
Definition at line 78 of file CouenneBranchingObject.hpp.
References variable_.
expression* CouenneBranchingObject::variable_ [protected] |
The index of the variable this branching object refers to.
If the corresponding CouenneObject was created on w=f(x,y), it is either x or y, chosen previously with a call to getFixVar() expression *reference_;
Definition at line 87 of file CouenneBranchingObject.hpp.
Referenced by CouenneComplBranchingObject::branch(), branch(), CouenneBranchingObject(), CouenneComplBranchingObject::CouenneComplBranchingObject(), and variable().
JnlstPtr CouenneBranchingObject::jnlst_ [protected] |
SmartPointer to the Journalist.
Definition at line 90 of file CouenneBranchingObject.hpp.
Referenced by CouenneComplBranchingObject::branch(), branch(), CouenneBranchingObject(), and CouenneComplBranchingObject::CouenneComplBranchingObject().
bool CouenneBranchingObject::doFBBT_ [protected] |
shall we do Feasibility based Bound Tightening (FBBT) at branching?
Definition at line 93 of file CouenneBranchingObject.hpp.
Referenced by CouenneComplBranchingObject::branch(), and branch().
bool CouenneBranchingObject::doConvCuts_ [protected] |
shall we add convexification cuts at branching?
Definition at line 96 of file CouenneBranchingObject.hpp.
Referenced by boundBranch(), CouenneComplBranchingObject::branch(), and branch().
double CouenneBranchingObject::downEstimate_ [protected] |
down branch estimate (done at selectBranch with reduced costs)
Definition at line 99 of file CouenneBranchingObject.hpp.
double CouenneBranchingObject::upEstimate_ [protected] |
bool CouenneBranchingObject::simulate_ [protected] |
are we currently in strong branching?
Definition at line 105 of file CouenneBranchingObject.hpp.
Referenced by CouenneComplBranchingObject::branch(), branch(), and setSimulate().