Public Member Functions | Private Attributes | List of all members
Bonmin::BonNWayBranchingObject Class Reference

N way branching Object class. More...

#include <BonNWayObject.hpp>

Inheritance diagram for Bonmin::BonNWayBranchingObject:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::BonNWayBranchingObject:
Collaboration graph
[legend]

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 &)
 
BonNWayBranchingObjectoperator= (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 BonNWayObjectobject_
 Points back to object. More...
 
std::vector< intorder_
 order of branching More...
 
std::list< intskipped_
 Is only branching on a subset of variables (has to do a last branch with all variables in order set to 0) More...
 

Detailed Description

N way branching Object class.

Variable is number of set.

Definition at line 134 of file BonNWayObject.hpp.

Constructor & Destructor Documentation

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.

Bonmin::BonNWayBranchingObject::~BonNWayBranchingObject ( )
virtual

Definition at line 306 of file BonNWayObject.cpp.

Member Function Documentation

BonNWayBranchingObject & Bonmin::BonNWayBranchingObject::operator= ( const BonNWayBranchingObject rhs)

Definition at line 288 of file BonNWayObject.cpp.

OsiBranchingObject * Bonmin::BonNWayBranchingObject::clone ( ) const
virtual

Clone.

Definition at line 299 of file BonNWayObject.cpp.

double Bonmin::BonNWayBranchingObject::branch ( OsiSolverInterface *  solver)
virtual

Does next branch and updates state.

Definition at line 311 of file BonNWayObject.cpp.

double Bonmin::BonNWayBranchingObject::branch ( OsiSolverInterface *  solver,
int  state 
)
virtual

Branch on specified state.

Definition at line 322 of file BonNWayObject.cpp.

virtual int Bonmin::BonNWayBranchingObject::numberBranches ( ) const
inlinevirtual

The number of branch arms created for this branching object.

Definition at line 169 of file BonNWayObject.hpp.

virtual bool Bonmin::BonNWayBranchingObject::twoWay ( ) const
inlinevirtual

Is this a two way object (-1 down, +1 up)

Definition at line 173 of file BonNWayObject.hpp.

int Bonmin::BonNWayBranchingObject::var_branched_on ( )
inline

Definition at line 177 of file BonNWayObject.hpp.

int Bonmin::BonNWayBranchingObject::seq_branched_on ( )
inline

Definition at line 183 of file BonNWayObject.hpp.

int Bonmin::BonNWayBranchingObject::state_branched_on ( )
inline

Definition at line 189 of file BonNWayObject.hpp.

Member Data Documentation

const BonNWayObject* Bonmin::BonNWayBranchingObject::object_
private

Points back to object.

Definition at line 194 of file BonNWayObject.hpp.

std::vector<int> Bonmin::BonNWayBranchingObject::order_
private

order of branching

Definition at line 196 of file BonNWayObject.hpp.

std::list<int> Bonmin::BonNWayBranchingObject::skipped_
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.


The documentation for this class was generated from the following files: