#include <BonGuessHeuristic.hpp>
Inheritance diagram for Bonmin::GuessHeuristic:
Public Member Functions | |
GuessHeuristic (CbcModel &model) | |
Usefull constructor. | |
GuessHeuristic (const GuessHeuristic ©) | |
Copy constructor. | |
virtual int | solution (double &solutionValue, double *betterSolution) |
heuristic method providing guess, based on pseudo costs | |
virtual int | solution (double &solutionValue, double *betterSolution, 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 | |
virtual CbcHeuristic * | clone () const |
Clone. | |
virtual void | resetModel (CbcModel *) |
Resets stuff if model changes. | |
Private Member Functions | |
GuessHeuristic () | |
Default constructor. | |
GuessHeuristic & | operator= (const GuessHeuristic &rhs) |
Assignment operator. |
Definition at line 16 of file BonGuessHeuristic.hpp.
Bonmin::GuessHeuristic::GuessHeuristic | ( | CbcModel & | model | ) |
Usefull constructor.
Bonmin::GuessHeuristic::GuessHeuristic | ( | const GuessHeuristic & | copy | ) | [inline] |
Bonmin::GuessHeuristic::GuessHeuristic | ( | ) | [private] |
virtual int Bonmin::GuessHeuristic::solution | ( | double & | solutionValue, | |
double * | betterSolution | |||
) | [virtual] |
heuristic method providing guess, based on pseudo costs
Implements CbcHeuristic.
Referenced by solution().
virtual int Bonmin::GuessHeuristic::solution | ( | double & | solutionValue, | |
double * | betterSolution, | |||
OsiCuts & | cs | |||
) | [inline, virtual] |
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
Reimplemented from CbcHeuristic.
Definition at line 28 of file BonGuessHeuristic.hpp.
References solution().
virtual CbcHeuristic* Bonmin::GuessHeuristic::clone | ( | ) | const [inline, virtual] |
Clone.
Implements CbcHeuristic.
Definition at line 32 of file BonGuessHeuristic.hpp.
References GuessHeuristic().
virtual void Bonmin::GuessHeuristic::resetModel | ( | CbcModel * | ) | [inline, virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
Definition at line 36 of file BonGuessHeuristic.hpp.
GuessHeuristic& Bonmin::GuessHeuristic::operator= | ( | const GuessHeuristic & | rhs | ) | [private] |
Assignment operator.