This works on a fake solver i.e. invented rows. More...
#include <CglClique.hpp>
Public Member Functions | |
CglFakeClique (const CglFakeClique &rhs) | |
Copy constructor. | |
virtual CglCutGenerator * | clone () const |
Clone. | |
CglFakeClique & | operator= (const CglFakeClique &rhs) |
Assignment operator. | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const |
Generate cuts for the model data contained in si. | |
Constructors and destructors | |
| |
OsiSolverInterface * | fakeSolver_ |
fake solver to use | |
CglFakeClique (OsiSolverInterface *solver=NULL, bool setPacking=false) | |
Default constructor. | |
virtual | ~CglFakeClique () |
Destructor. | |
void | assignSolver (OsiSolverInterface *fakeSolver) |
Assign solver (generator takes over ownership). |
This works on a fake solver i.e. invented rows.
Definition at line 256 of file CglClique.hpp.
CglFakeClique::CglFakeClique | ( | const CglFakeClique & | rhs | ) |
Copy constructor.
CglFakeClique::CglFakeClique | ( | OsiSolverInterface * | solver = NULL , |
|
bool | setPacking = false | |||
) |
Default constructor.
If the setPacking argument is set to true then CglFakeClique will assume that the problem in the solverinterface passed to the generateCuts() method describes a set packing problem, i.e.,
Otherwise the user can use the considerRows() method to set the list of clique rows, that is,
If the user does not set the list of clique rows then CglFakeClique will start the generateCuts() methods by scanning the matrix for them.
virtual CglFakeClique::~CglFakeClique | ( | ) | [virtual] |
Destructor.
virtual CglCutGenerator* CglFakeClique::clone | ( | ) | const [virtual] |
Clone.
Reimplemented from CglClique.
CglFakeClique& CglFakeClique::operator= | ( | const CglFakeClique & | rhs | ) |
Assignment operator.
Reimplemented from CglClique.
virtual void CglFakeClique::generateCuts | ( | const OsiSolverInterface & | si, | |
OsiCuts & | cs, | |||
const CglTreeInfo | info = CglTreeInfo() | |||
) | const [virtual] |
Generate cuts for the model data contained in si.
The generated cuts are inserted into and returned in the collection of cuts cs.
Reimplemented from CglClique.
void CglFakeClique::assignSolver | ( | OsiSolverInterface * | fakeSolver | ) |
Assign solver (generator takes over ownership).
OsiSolverInterface* CglFakeClique::fakeSolver_ [mutable, protected] |
fake solver to use
Definition at line 297 of file CglClique.hpp.