27#ifndef AbcCutGenerator_h_
28#define AbcCutGenerator_h_
30#include "OsiSolverInterface.hpp"
35class OsiRowCutDebugger;
100 int howOften=1,
const char * name=NULL,
102 bool infeasible=
false);
Interface between Abc and Cut Generation Library.
void refreshModel(AbcModel *model)
Set the client model.
bool normal_
Whether to call the generator in the normal place.
const char * cutGeneratorName() const
return name of generator
void setAtSolution(bool value)
Set whether the cut generator should be called when a solution is found.
void setHowOften(int value)
Set the cut generation interval.
~AbcCutGenerator()
Destructor.
bool atSolution_
Whether to call the generator when a new solution is found.
bool generateCuts(OsiCuts &cs, bool fullScan)
Generate cuts for the client model.
char * generatorName_
Name of generator.
int howOften() const
Get the cut generation interval.
void setNormal(bool value)
Set whether the cut generator should be called in the normal place.
AbcCutGenerator(const AbcCutGenerator &)
Copy constructor.
void setWhenInfeasible(bool value)
Set whether the cut generator should be called when the subproblem is found to be infeasible.
AbcModel * model_
The client model.
bool whenInfeasible_
Whether to call generator when a subproblem is found to be infeasible.
CglCutGenerator * generator() const
Get the CglCutGenerator bound to this AbcCutGenerator.
AbcCutGenerator()
Default constructor.
AbcCutGenerator(AbcModel *model, CglCutGenerator *generator, int howOften=1, const char *name=NULL, bool normal=true, bool atSolution=false, bool infeasible=false)
Normal constructor.
AbcCutGenerator & operator=(const AbcCutGenerator &rhs)
Assignment operator.
bool atSolution() const
Get whether the cut generator should be called when a solution is found.
bool whenInfeasible() const
Get whether the cut generator should be called when the subproblem is found to be infeasible.
CglCutGenerator * generator_
bool normal() const
Get whether the cut generator should be called in the normal place.
int whenCutGenerator_
Number of nodes between calls to the CglCutGenerator::generateCuts routine.
Model class for ALPS Branch and Cut.