30 #ifndef BlisConGenerator_h_ 31 #define BlisConGenerator_h_ 33 #include "OsiSolverInterface.hpp" 34 #include "OsiCuts.hpp" 40 class OsiRowCutDebugger;
133 {
name_ =
"UNKNOWN"; }
138 const char *
name = NULL,
143 bool infeasible =
false);
void addNoConsCalls(int n=1)
Increase the number of no cons called.
BlisModel * model_
The client model.
BlisCutStrategy strategy() const
Get the con generation interval.
int numConsUsed()
Get number of used cons.
CglCutGenerator * generator_
The CglCutGenerator object.
void addNumConsUsed(int n)
Increase the number of generated cons.
virtual ~BlisConGenerator()
Destructor.
int noConsCalls_
The times of calling this generator and no cons found.
int numConsGenerated_
Number of cons generated.
BlisConGenerator()
Default constructor.
int numConsGenerated()
Get number of generated cons.
BlisModel * getModel()
Set the client model.
bool normal() const
Get whether the con generator should be called in the normal place.
std::string name() const
return name of generator.
void setName(const char *str)
return name of generator.
int cutGenerationFreq() const
Get the con generation interval.
std::string name_
Name of generator.
int cutGenerationFrequency_
The frequency of calls to the cut generator.
bool normal_
Whether to call the generator in the normal place.
int numConsUsed_
Number of cons used.
bool atSolution_
Whether to call the generator when a new solution is found.
void refreshModel(BlisModel *model)
Refresh the model.
BlisConGenerator & operator=(const BlisConGenerator &rhs)
Assignment operator.
void addNumConsGenerated(int n)
Increase the number of generated cons.
double time_
Used CPU/User time.
void setNormal(bool value)
Set whether the con generator should be called in the normal place.
CglCutGenerator * generator() const
Get the CglCutGenerator bound to this BlisConGenerator.
BlisCutStrategy strategy_
When to call CglCutGenerator::generateCuts routine.
int calls_
The times of calling this generator.
void addTime(double t)
Increase Cpu time used.
void setCutGenerationFreq(int freq)
Set the con generation strategy.
void setStrategy(BlisCutStrategy value)
Set the con generation strategy.
int noConsCalls() const
Number called and no cons found.
double time() const
Cpu time used.
bool whenInfeasible() const
Get whether the con generator should be called when the subproblem is found to be infeasible.
void addCalls(int n=1)
Increase the number of called.
virtual bool generateConstraints(BcpsConstraintPool &conPool)
Generate cons for the client model.
int calls() const
Number called.
void setAtSolution(bool value)
Set whether the con generator should be called when a solution is found.
bool atSolution() const
Get whether the con generator should be called when a solution is found.
void setWhenInfeasible(bool value)
Set whether the con generator should be called when the subproblem is found to be infeasible.
Interface between Blis and Cut Generation Library.
bool whenInfeasible_
Whether to call generator when a subproblem is found to be infeasible.
void setModel(BlisModel *m)
Set the model.