Cgl trunk
CglAllDifferent Class Reference

AllDifferent Cut Generator Class This has a number of sets. More...

#include <CglAllDifferent.hpp>

Inheritance diagram for CglAllDifferent:
Collaboration diagram for CglAllDifferent:

List of all members.

Public Member Functions

Generate Cuts
virtual void generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const
 This fixes (or reduces bounds) on sets of all different variables.
Constructors and destructors
 CglAllDifferent ()
 Default constructor.
 CglAllDifferent (int numberSets, const int *starts, const int *which)
 Useful constructot.
 CglAllDifferent (const CglAllDifferent &)
 Copy constructor.
virtual CglCutGeneratorclone () const
 Clone.
CglAllDifferentoperator= (const CglAllDifferent &rhs)
 Assignment operator.
virtual ~CglAllDifferent ()
 Destructor.
virtual std::string generateCpp (FILE *fp)
 Create C++ lines to get to current state.
virtual void refreshSolver (OsiSolverInterface *solver)
 This can be used to refresh any inforamtion.
virtual bool mayGenerateRowCutsInTree () const
 Returns true if may generate Row cuts in tree (rather than root node).
Sets and Gets
void setLogLevel (int value)
 Set log level.
int getLogLevel () const
 Get log level.
void setMaxLook (int value)
 Set Maximum number of sets to look at at once.
int getMaxLook () const
 Get Maximum number of sets to look at at once.

Detailed Description

AllDifferent Cut Generator Class This has a number of sets.

All the members in each set are general integer variables which have to be different from all others in the set.

At present this only generates column cuts

At present it is very primitive compared to proper CSP implementations

Definition at line 20 of file CglAllDifferent.hpp.


Constructor & Destructor Documentation

CglAllDifferent::CglAllDifferent ( )

Default constructor.

CglAllDifferent::CglAllDifferent ( int  numberSets,
const int *  starts,
const int *  which 
)

Useful constructot.

CglAllDifferent::CglAllDifferent ( const CglAllDifferent )

Copy constructor.

virtual CglAllDifferent::~CglAllDifferent ( ) [virtual]

Destructor.


Member Function Documentation

virtual void CglAllDifferent::generateCuts ( const OsiSolverInterface &  si,
OsiCuts &  cs,
const CglTreeInfo  info = CglTreeInfo() 
) const [virtual]

This fixes (or reduces bounds) on sets of all different variables.

Implements CglCutGenerator.

virtual CglCutGenerator* CglAllDifferent::clone ( ) const [virtual]

Clone.

Implements CglCutGenerator.

CglAllDifferent& CglAllDifferent::operator= ( const CglAllDifferent rhs)

Assignment operator.

virtual std::string CglAllDifferent::generateCpp ( FILE *  fp) [virtual]

Create C++ lines to get to current state.

Reimplemented from CglCutGenerator.

virtual void CglAllDifferent::refreshSolver ( OsiSolverInterface *  solver) [virtual]

This can be used to refresh any inforamtion.

Reimplemented from CglCutGenerator.

virtual bool CglAllDifferent::mayGenerateRowCutsInTree ( ) const [inline, virtual]

Returns true if may generate Row cuts in tree (rather than root node).

Used so know if matrix will change in tree. Really meant so column cut generators can still be active without worrying code. Default is true

Reimplemented from CglCutGenerator.

Definition at line 69 of file CglAllDifferent.hpp.

void CglAllDifferent::setLogLevel ( int  value) [inline]

Set log level.

Definition at line 75 of file CglAllDifferent.hpp.

int CglAllDifferent::getLogLevel ( ) const [inline]

Get log level.

Definition at line 78 of file CglAllDifferent.hpp.

void CglAllDifferent::setMaxLook ( int  value) [inline]

Set Maximum number of sets to look at at once.

Definition at line 81 of file CglAllDifferent.hpp.

int CglAllDifferent::getMaxLook ( ) const [inline]

Get Maximum number of sets to look at at once.

Definition at line 84 of file CglAllDifferent.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines