#include <CbcHeuristicRINS.hpp>
Inheritance diagram for CbcHeuristicRINS:


Public Member Functions | |
| CbcHeuristicRINS () | |
| CbcHeuristicRINS (CbcModel &model) | |
| CbcHeuristicRINS (const CbcHeuristicRINS &) | |
| ~CbcHeuristicRINS () | |
| virtual CbcHeuristic * | clone () const |
| Clone. | |
| CbcHeuristicRINS & | operator= (const CbcHeuristicRINS &rhs) |
| Assignment operator. | |
| virtual void | generateCpp (FILE *fp) |
| Create C++ lines to get to current state. | |
| virtual void | resetModel (CbcModel *model) |
| Resets stuff if model changes. | |
| virtual void | setModel (CbcModel *model) |
| update model (This is needed if cliques update matrix etc) | |
| virtual int | solution (double &objectiveValue, double *newSolution) |
| returns 0 if no solution, 1 if valid solution. | |
| int | solutionFix (double &objectiveValue, double *newSolution, const int *keep) |
| This version fixes stuff and does IP. | |
| void | setHowOften (int value) |
| Sets how often to do it. | |
| void | setDecayFactor (double value) |
| Sets decay factor (for howOften) on failure. | |
| char * | used () const |
| Used array so we can set. | |
Protected Attributes | |
| int | numberSolutions_ |
| Number of solutions so we can do something at solution. | |
| int | howOften_ |
| How often to do (code can change). | |
| double | decayFactor_ |
| How much to increase how often. | |
| int | numberSuccesses_ |
| Number of successes. | |
| int | numberTries_ |
| Number of tries. | |
| char * | used_ |
| Whether a variable has been in a solution. | |
Definition at line 10 of file CbcHeuristicRINS.hpp.
| CbcHeuristicRINS::CbcHeuristicRINS | ( | ) |
| CbcHeuristicRINS::CbcHeuristicRINS | ( | CbcModel & | model | ) |
| CbcHeuristicRINS::CbcHeuristicRINS | ( | const CbcHeuristicRINS & | ) |
| CbcHeuristicRINS::~CbcHeuristicRINS | ( | ) |
| virtual CbcHeuristic* CbcHeuristicRINS::clone | ( | ) | const [virtual] |
| CbcHeuristicRINS& CbcHeuristicRINS::operator= | ( | const CbcHeuristicRINS & | rhs | ) |
Assignment operator.
| virtual void CbcHeuristicRINS::generateCpp | ( | FILE * | fp | ) | [virtual] |
| virtual void CbcHeuristicRINS::resetModel | ( | CbcModel * | model | ) | [virtual] |
| virtual void CbcHeuristicRINS::setModel | ( | CbcModel * | model | ) | [virtual] |
| virtual int CbcHeuristicRINS::solution | ( | double & | objectiveValue, | |
| double * | newSolution | |||
| ) | [virtual] |
returns 0 if no solution, 1 if valid solution.
Sets solution values if good, sets objective value (only if good) This does Relaxation Induced Neighborhood Search
Implements CbcHeuristic.
| int CbcHeuristicRINS::solutionFix | ( | double & | objectiveValue, | |
| double * | newSolution, | |||
| const int * | keep | |||
| ) |
This version fixes stuff and does IP.
| void CbcHeuristicRINS::setHowOften | ( | int | value | ) | [inline] |
| void CbcHeuristicRINS::setDecayFactor | ( | double | value | ) | [inline] |
Sets decay factor (for howOften) on failure.
Definition at line 59 of file CbcHeuristicRINS.hpp.
References decayFactor_.
| char* CbcHeuristicRINS::used | ( | ) | const [inline] |
int CbcHeuristicRINS::numberSolutions_ [protected] |
Number of solutions so we can do something at solution.
Definition at line 69 of file CbcHeuristicRINS.hpp.
int CbcHeuristicRINS::howOften_ [protected] |
How often to do (code can change).
Reimplemented from CbcHeuristic.
Definition at line 71 of file CbcHeuristicRINS.hpp.
Referenced by setHowOften().
double CbcHeuristicRINS::decayFactor_ [protected] |
How much to increase how often.
Reimplemented from CbcHeuristic.
Definition at line 73 of file CbcHeuristicRINS.hpp.
Referenced by setDecayFactor().
int CbcHeuristicRINS::numberSuccesses_ [protected] |
int CbcHeuristicRINS::numberTries_ [protected] |
char* CbcHeuristicRINS::used_ [protected] |
Whether a variable has been in a solution.
Definition at line 79 of file CbcHeuristicRINS.hpp.
Referenced by used().
1.4.7