Public Member Functions | Protected Attributes

CbcBranchAllDifferent Class Reference

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 <CbcBranchAllDifferent.hpp>

Inheritance diagram for CbcBranchAllDifferent:
CbcBranchCut CbcBranchCut CbcObject CbcObject CbcObject CbcObject

List of all members.

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 CbcObjectclone () const
 Clone.
CbcBranchAllDifferentoperator= (const CbcBranchAllDifferent &rhs)
 ~CbcBranchAllDifferent ()
virtual double infeasibility (const OsiBranchingInformation *info, int &preferredWay) const
 Infeasibility - large is 0.5.
virtual CbcBranchingObjectcreateCbcBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
 Creates a branching object.
 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 CbcObjectclone () const
 Clone.
CbcBranchAllDifferentoperator= (const CbcBranchAllDifferent &rhs)
 ~CbcBranchAllDifferent ()
virtual double infeasibility (const OsiBranchingInformation *info, int &preferredWay) const
 Infeasibility - large is 0.5.
virtual CbcBranchingObjectcreateCbcBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
 Creates a branching object.

Protected Attributes

int numberInSet_
 data
int * which_
 Which variables.

Detailed Description

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 16 of file CbcBranchAllDifferent.hpp.


Constructor & Destructor Documentation

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 (  ) 
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 (  ) 

Member Function Documentation

virtual CbcObject* CbcBranchAllDifferent::clone (  )  const [virtual]

Clone.

Reimplemented from CbcBranchCut.

CbcBranchAllDifferent& CbcBranchAllDifferent::operator= ( const CbcBranchAllDifferent rhs  ) 
virtual double CbcBranchAllDifferent::infeasibility ( const OsiBranchingInformation *  info,
int &  preferredWay 
) const [virtual]

Infeasibility - large is 0.5.

Reimplemented from CbcBranchCut.

virtual CbcBranchingObject* CbcBranchAllDifferent::createCbcBranch ( OsiSolverInterface *  solver,
const OsiBranchingInformation *  info,
int  way 
) [virtual]

Creates a branching object.

Reimplemented from CbcBranchCut.

virtual CbcObject* CbcBranchAllDifferent::clone (  )  const [virtual]

Clone.

Reimplemented from CbcBranchCut.

CbcBranchAllDifferent& CbcBranchAllDifferent::operator= ( const CbcBranchAllDifferent rhs  ) 
virtual double CbcBranchAllDifferent::infeasibility ( const OsiBranchingInformation *  info,
int &  preferredWay 
) const [virtual]

Infeasibility - large is 0.5.

Reimplemented from CbcBranchCut.

virtual CbcBranchingObject* CbcBranchAllDifferent::createCbcBranch ( OsiSolverInterface *  solver,
const OsiBranchingInformation *  info,
int  way 
) [virtual]

Creates a branching object.

Reimplemented from CbcBranchCut.


Member Data Documentation

data

Number of entries

Definition at line 44 of file CbcBranchAllDifferent.hpp.

int * CbcBranchAllDifferent::which_ [protected]

Which variables.

Definition at line 46 of file CbcBranchAllDifferent.hpp.


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