Define an n-way class for variables. More...
#include <CbcBranchActual.hpp>


Public Member Functions | |
| CbcNWay () | |
| CbcNWay (CbcModel *model, int numberMembers, const int *which, int identifier) | |
| Useful constructor (which are matrix indices). | |
| CbcNWay (const CbcNWay &) | |
| virtual CbcObject * | clone () const |
| Clone. | |
| CbcNWay & | operator= (const CbcNWay &rhs) |
| Assignment operator. | |
| ~CbcNWay () | |
| Destructor. | |
| void | setConsequence (int iColumn, const CbcConsequence &consequence) |
| Set up a consequence for a single member. | |
| void | applyConsequence (int iSequence, int state) const |
| Applies a consequence for a single member. | |
| virtual double | infeasibility (int &preferredWay) const |
| Infeasibility - large is 0.5 (and 0.5 will give this). | |
| virtual void | feasibleRegion () |
| This looks at solution and sets bounds to contain solution. | |
| virtual CbcBranchingObject * | createBranch (int way) |
| Creates a branching object. | |
| int | numberMembers () const |
| Number of members. | |
| const int * | members () const |
| Members (indices in range 0 ... numberColumns-1). | |
| virtual void | redoSequenceEtc (CbcModel *model, int numberColumns, const int *originalColumns) |
| Redoes data when sequence numbers change. | |
Protected Attributes | |
| int | numberMembers_ |
| data Number of members | |
| int * | members_ |
| Members (indices in range 0 ... numberColumns-1). | |
| CbcConsequence ** | consequence_ |
| Consequences (normally NULL). | |
Define an n-way class for variables.
Only valid value is one at UB others at LB Normally 0-1
Definition at line 331 of file CbcBranchActual.hpp.
| CbcNWay::CbcNWay | ( | ) |
| CbcNWay::CbcNWay | ( | CbcModel * | model, | |
| int | numberMembers, | |||
| const int * | which, | |||
| int | identifier | |||
| ) |
Useful constructor (which are matrix indices).
| CbcNWay::CbcNWay | ( | const CbcNWay & | ) |
| CbcNWay::~CbcNWay | ( | ) |
Destructor.
Assignment operator.
Reimplemented from CbcObject.
| void CbcNWay::setConsequence | ( | int | iColumn, | |
| const CbcConsequence & | consequence | |||
| ) |
Set up a consequence for a single member.
| void CbcNWay::applyConsequence | ( | int | iSequence, | |
| int | state | |||
| ) | const |
Applies a consequence for a single member.
| virtual double CbcNWay::infeasibility | ( | int & | preferredWay | ) | const [virtual] |
Infeasibility - large is 0.5 (and 0.5 will give this).
Implements CbcObject.
| virtual void CbcNWay::feasibleRegion | ( | ) | [virtual] |
This looks at solution and sets bounds to contain solution.
Implements CbcObject.
| virtual CbcBranchingObject* CbcNWay::createBranch | ( | int | way | ) | [virtual] |
Creates a branching object.
Implements CbcObject.
| int CbcNWay::numberMembers | ( | ) | const [inline] |
Number of members.
Definition at line 374 of file CbcBranchActual.hpp.
| const int* CbcNWay::members | ( | ) | const [inline] |
Members (indices in range 0 ... numberColumns-1).
Definition at line 378 of file CbcBranchActual.hpp.
| virtual void CbcNWay::redoSequenceEtc | ( | CbcModel * | model, | |
| int | numberColumns, | |||
| const int * | originalColumns | |||
| ) | [virtual] |
Redoes data when sequence numbers change.
Reimplemented from CbcObject.
int CbcNWay::numberMembers_ [protected] |
data Number of members
Definition at line 386 of file CbcBranchActual.hpp.
int* CbcNWay::members_ [protected] |
Members (indices in range 0 ... numberColumns-1).
Definition at line 389 of file CbcBranchActual.hpp.
CbcConsequence** CbcNWay::consequence_ [protected] |
Consequences (normally NULL).
Definition at line 391 of file CbcBranchActual.hpp.
1.6.1