Rounding class. More...
#include <AbcHeuristic.h>
Public Member Functions | |
AbcRounding () | |
AbcRounding (AbcModel &model) | |
AbcRounding (const AbcRounding &) | |
~AbcRounding () | |
virtual AbcHeuristic * | clone () const |
Clone. More... | |
virtual void | setModel (AbcModel *model) |
update model (This is needed if cliques update matrix etc) More... | |
virtual int | solution (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... | |
![]() | |
AbcHeuristic () | |
AbcHeuristic (AbcModel &model) | |
virtual | ~AbcHeuristic () |
virtual int | solution (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... | |
Protected Attributes | |
CoinPackedMatrix | matrix_ |
CoinPackedMatrix | matrixByRow_ |
int | seed_ |
![]() | |
AbcModel * | model_ |
Model. More... | |
Private Member Functions | |
AbcRounding & | operator= (const AbcRounding &rhs) |
Illegal Assignment operator. More... | |
Rounding class.
Definition at line 90 of file AbcHeuristic.h.
AbcRounding::AbcRounding | ( | ) |
AbcRounding::AbcRounding | ( | AbcModel & | model | ) |
AbcRounding::AbcRounding | ( | const AbcRounding & | ) |
AbcRounding::~AbcRounding | ( | ) |
|
virtual |
Clone.
Implements AbcHeuristic.
update model (This is needed if cliques update matrix etc)
Reimplemented from AbcHeuristic.
|
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 AbcHeuristic.
|
inline |
Set seed.
Definition at line 121 of file AbcHeuristic.h.
|
private |
Illegal Assignment operator.
|
protected |
Definition at line 128 of file AbcHeuristic.h.
|
protected |
Definition at line 131 of file AbcHeuristic.h.
|
protected |
Definition at line 134 of file AbcHeuristic.h.