N way branching Object class. More...
#include <BonNWayObject.hpp>
Public Member Functions | |
BonNWayBranchingObject () | |
BonNWayBranchingObject (OsiSolverInterface *solver, const BonNWayObject *nway, const std::vector< int > &order, const std::list< int > &skipped) | |
Useful constructor - order had matrix indices way_ -1 corresponds to setting first, +1 to second, +3 etc. More... | |
BonNWayBranchingObject (const BonNWayBranchingObject &) | |
BonNWayBranchingObject & | operator= (const BonNWayBranchingObject &rhs) |
virtual OsiBranchingObject * | clone () const |
Clone. More... | |
virtual | ~BonNWayBranchingObject () |
virtual double | branch (OsiSolverInterface *solver) |
Does next branch and updates state. More... | |
virtual double | branch (OsiSolverInterface *solver, int state) |
Branch on specified state. More... | |
virtual int | numberBranches () const |
The number of branch arms created for this branching object. More... | |
virtual bool | twoWay () const |
Is this a two way object (-1 down, +1 up) More... | |
int | var_branched_on () |
int | seq_branched_on () |
int | state_branched_on () |
Private Attributes | |
const BonNWayObject * | object_ |
Points back to object. More... | |
std::vector< int > | order_ |
order of branching More... | |
std::list< int > | skipped_ |
Is only branching on a subset of variables (has to do a last branch with all variables in order set to 0) More... | |
N way branching Object class.
Variable is number of set.
Definition at line 134 of file BonNWayObject.hpp.
Bonmin::BonNWayBranchingObject::BonNWayBranchingObject | ( | ) |
Definition at line 262 of file BonNWayObject.cpp.
Bonmin::BonNWayBranchingObject::BonNWayBranchingObject | ( | OsiSolverInterface * | solver, |
const BonNWayObject * | nway, | ||
const std::vector< int > & | order, | ||
const std::list< int > & | skipped | ||
) |
Useful constructor - order had matrix indices way_ -1 corresponds to setting first, +1 to second, +3 etc.
this is so -1 and +1 have similarity to normal
Definition at line 269 of file BonNWayObject.cpp.
Bonmin::BonNWayBranchingObject::BonNWayBranchingObject | ( | const BonNWayBranchingObject & | rhs | ) |
Definition at line 279 of file BonNWayObject.cpp.
|
virtual |
Definition at line 306 of file BonNWayObject.cpp.
BonNWayBranchingObject & Bonmin::BonNWayBranchingObject::operator= | ( | const BonNWayBranchingObject & | rhs | ) |
Definition at line 288 of file BonNWayObject.cpp.
|
virtual |
Clone.
Definition at line 299 of file BonNWayObject.cpp.
|
virtual |
Does next branch and updates state.
Definition at line 311 of file BonNWayObject.cpp.
|
virtual |
Branch on specified state.
Definition at line 322 of file BonNWayObject.cpp.
|
inlinevirtual |
The number of branch arms created for this branching object.
Definition at line 169 of file BonNWayObject.hpp.
|
inlinevirtual |
Is this a two way object (-1 down, +1 up)
Definition at line 173 of file BonNWayObject.hpp.
|
inline |
Definition at line 177 of file BonNWayObject.hpp.
|
inline |
Definition at line 183 of file BonNWayObject.hpp.
|
inline |
Definition at line 189 of file BonNWayObject.hpp.
|
private |
Points back to object.
Definition at line 194 of file BonNWayObject.hpp.
|
private |
order of branching
Definition at line 196 of file BonNWayObject.hpp.
|
private |
Is only branching on a subset of variables (has to do a last branch with all variables in order set to 0)
Definition at line 198 of file BonNWayObject.hpp.