Rounding Heuristic. More...
#include <BlisHeurRound.h>
Public Member Functions | |
BlisHeurRound () | |
Default Constructor. More... | |
BlisHeurRound (BlisModel *model, const char *name, int strategy) | |
Constructor with model - assumed before cuts. More... | |
~BlisHeurRound () | |
Destructor. More... | |
BlisHeurRound (const BlisHeurRound &) | |
Copy constructor. More... | |
virtual BlisHeuristic * | clone () const |
Clone a rounding heuristic. More... | |
virtual void | setModel (BlisModel *model) |
update model (This is needed if cliques update matrix etc). More... | |
virtual bool | searchSolution (double &objectiveValue, double *newSolution) |
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets solution values if good, sets objective value (only if good) This is called after cuts have been added - so can not add cuts More... | |
void | setSeed (int value) |
Set seed. More... | |
![]() | |
BlisHeuristic () | |
Default Constructor. More... | |
BlisHeuristic (BlisModel *model, const char *name, int strategy) | |
Useful constructor. More... | |
virtual | ~BlisHeuristic () |
Distructor. More... | |
BlisHeuristic (const BlisHeuristic &rhs) | |
Copy constructor. More... | |
virtual void | setStrategy (int strategy) |
Get/set strategy. More... | |
virtual int | strategy () |
Get/set strategy. More... | |
virtual int | searchSolution (double &objectiveValue, double *newSolution, OsiCuts &cs) |
returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing More... | |
int | numSolutions () |
Number of solutions found. More... | |
double | time () |
Cpu time used. More... | |
int | calls () |
Cpu time used. More... | |
Protected Attributes | |
CoinPackedMatrix | matrix_ |
Column majored matrix. More... | |
CoinPackedMatrix | matrixByRow_ |
Row majored matrix. More... | |
int | seed_ |
Seed for random stuff. More... | |
![]() | |
BlisModel * | model_ |
Pointer to the model. More... | |
char * | name_ |
Heuristics name. More... | |
int | strategy_ |
When to call findSolution() routine. More... | |
int | numSolutions_ |
Number of solutions found. More... | |
double | time_ |
Used CPU/User time. More... | |
int | calls_ |
The times of calling this heuristic. More... | |
Private Member Functions | |
BlisHeurRound & | operator= (const BlisHeurRound &rhs) |
Illegal Assignment operator. More... | |
Rounding Heuristic.
Definition at line 44 of file BlisHeurRound.h.
|
inline |
Default Constructor.
Definition at line 61 of file BlisHeurRound.h.
|
inline |
Constructor with model - assumed before cuts.
Definition at line 64 of file BlisHeurRound.h.
|
inline |
Destructor.
Definition at line 72 of file BlisHeurRound.h.
BlisHeurRound::BlisHeurRound | ( | const BlisHeurRound & | ) |
Copy constructor.
|
private |
Illegal Assignment operator.
|
virtual |
Clone a rounding heuristic.
Implements BlisHeuristic.
update model (This is needed if cliques update matrix etc).
Reimplemented from BlisHeuristic.
|
virtual |
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets solution values if good, sets objective value (only if good) This is called after cuts have been added - so can not add cuts
Implements BlisHeuristic.
|
inline |
Set seed.
Definition at line 92 of file BlisHeurRound.h.
|
protected |
Column majored matrix.
Definition at line 51 of file BlisHeurRound.h.
|
protected |
Row majored matrix.
Definition at line 54 of file BlisHeurRound.h.
|
protected |
Seed for random stuff.
Definition at line 57 of file BlisHeurRound.h.