Bonmin::BonNWayBranchingObject Class Reference

N way branching Object class. More...

#include <BonNWayObject.hpp>

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

List of all members.

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.
 BonNWayBranchingObject (const BonNWayBranchingObject &)
BonNWayBranchingObjectoperator= (const BonNWayBranchingObject &rhs)
virtual OsiBranchingObject * clone () const
 Clone.
virtual ~BonNWayBranchingObject ()
virtual double branch (OsiSolverInterface *solver)
 Does next branch and updates state.
virtual double branch (OsiSolverInterface *solver, int state)
 Branch on specified state.
virtual int numberBranches () const
 The number of branch arms created for this branching object.
virtual bool twoWay () const
 Is this a two way object (-1 down, +1 up).
int var_branched_on ()
int seq_branched_on ()
int state_branched_on ()

Private Attributes

const BonNWayObjectobject_
 Points back to object.
std::vector< int > order_
 order of branching
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).

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 [inline, virtual]

The number of branch arms created for this branching object.

Definition at line 169 of file BonNWayObject.hpp.

virtual bool Bonmin::BonNWayBranchingObject::twoWay (  )  const [inline, virtual]

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

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:

Generated on 15 Jul 2012 by  doxygen 1.6.1