Define a branch class that branches so that it is only satsified if all members have different values So cut is x <= y-1 or x >= y+1. More...
#include <CbcBranchCut.hpp>
Public Member Functions | |
CbcBranchAllDifferent () | |
CbcBranchAllDifferent (CbcModel *model, int number, const int *which) | |
Useful constructor - passed set of integer variables which must all be different. | |
CbcBranchAllDifferent (const CbcBranchAllDifferent &) | |
virtual CbcObject * | clone () const |
Clone. | |
CbcBranchAllDifferent & | operator= (const CbcBranchAllDifferent &rhs) |
Assignment operator. | |
~CbcBranchAllDifferent () | |
virtual double | infeasibility (int &preferredWay) const |
Infeasibility - large is 0.5. | |
virtual CbcBranchingObject * | createBranch (int way) |
Creates a branching object. | |
Protected Attributes | |
int | numberInSet_ |
data | |
int * | which_ |
Which variables. |
Define a branch class that branches so that it is only satsified if all members have different values So cut is x <= y-1 or x >= y+1.
Definition at line 268 of file CbcBranchCut.hpp.
CbcBranchAllDifferent::CbcBranchAllDifferent | ( | ) |
CbcBranchAllDifferent::CbcBranchAllDifferent | ( | CbcModel * | model, | |
int | number, | |||
const int * | which | |||
) |
Useful constructor - passed set of integer variables which must all be different.
CbcBranchAllDifferent::CbcBranchAllDifferent | ( | const CbcBranchAllDifferent & | ) |
CbcBranchAllDifferent::~CbcBranchAllDifferent | ( | ) |
virtual CbcObject* CbcBranchAllDifferent::clone | ( | ) | const [virtual] |
Clone.
Reimplemented from CbcBranchCut.
CbcBranchAllDifferent& CbcBranchAllDifferent::operator= | ( | const CbcBranchAllDifferent & | rhs | ) |
Assignment operator.
Reimplemented from CbcBranchCut.
virtual double CbcBranchAllDifferent::infeasibility | ( | int & | preferredWay | ) | const [virtual] |
Infeasibility - large is 0.5.
Reimplemented from CbcBranchCut.
virtual CbcBranchingObject* CbcBranchAllDifferent::createBranch | ( | int | way | ) | [virtual] |
Creates a branching object.
Reimplemented from CbcBranchCut.
int CbcBranchAllDifferent::numberInSet_ [protected] |
int* CbcBranchAllDifferent::which_ [protected] |
Which variables.
Definition at line 306 of file CbcBranchCut.hpp.