#include <CbcHeuristicRINS.hpp>
Public Member Functions | |
CbcHeuristicDINS () | |
CbcHeuristicDINS (CbcModel &model) | |
CbcHeuristicDINS (const CbcHeuristicDINS &) | |
~CbcHeuristicDINS () | |
virtual CbcHeuristic * | clone () const |
Clone. | |
CbcHeuristicDINS & | operator= (const CbcHeuristicDINS &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. | |
void | setMaximumKeep (int value) |
Sets maximum number of solutions kept. | |
void | setConstraint (int value) |
Sets tightness of extra constraint. | |
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. | |
int | maximumKeepSolutions_ |
Maximum number of solutions to keep. | |
int | numberKeptSolutions_ |
Number of solutions kept. | |
int | numberIntegers_ |
Number of integer variables. | |
int | localSpace_ |
Local parameter. | |
int ** | values_ |
Values of integer variables. |
Definition at line 129 of file CbcHeuristicRINS.hpp.
CbcHeuristicDINS::CbcHeuristicDINS | ( | ) |
CbcHeuristicDINS::CbcHeuristicDINS | ( | CbcModel & | model | ) |
CbcHeuristicDINS::CbcHeuristicDINS | ( | const CbcHeuristicDINS & | ) |
CbcHeuristicDINS::~CbcHeuristicDINS | ( | ) |
virtual CbcHeuristic* CbcHeuristicDINS::clone | ( | ) | const [virtual] |
Clone.
Implements CbcHeuristic.
CbcHeuristicDINS& CbcHeuristicDINS::operator= | ( | const CbcHeuristicDINS & | rhs | ) |
Assignment operator.
Reimplemented from CbcHeuristic.
virtual void CbcHeuristicDINS::generateCpp | ( | FILE * | fp | ) | [virtual] |
Create C++ lines to get to current state.
Reimplemented from CbcHeuristic.
virtual void CbcHeuristicDINS::resetModel | ( | CbcModel * | model | ) | [virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
virtual void CbcHeuristicDINS::setModel | ( | CbcModel * | model | ) | [virtual] |
update model (This is needed if cliques update matrix etc)
Reimplemented from CbcHeuristic.
virtual int CbcHeuristicDINS::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 CbcHeuristicDINS::solutionFix | ( | double & | objectiveValue, | |
double * | newSolution, | |||
const int * | keep | |||
) |
This version fixes stuff and does IP.
void CbcHeuristicDINS::setHowOften | ( | int | value | ) | [inline] |
Sets how often to do it.
Definition at line 175 of file CbcHeuristicRINS.hpp.
void CbcHeuristicDINS::setDecayFactor | ( | double | value | ) | [inline] |
Sets decay factor (for howOften) on failure.
Definition at line 178 of file CbcHeuristicRINS.hpp.
void CbcHeuristicDINS::setMaximumKeep | ( | int | value | ) | [inline] |
Sets maximum number of solutions kept.
Definition at line 181 of file CbcHeuristicRINS.hpp.
void CbcHeuristicDINS::setConstraint | ( | int | value | ) | [inline] |
Sets tightness of extra constraint.
Definition at line 184 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::numberSolutions_ [protected] |
Number of solutions so we can do something at solution.
Definition at line 191 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::howOften_ [protected] |
How often to do (code can change).
Reimplemented from CbcHeuristic.
Definition at line 193 of file CbcHeuristicRINS.hpp.
double CbcHeuristicDINS::decayFactor_ [protected] |
How much to increase how often.
Reimplemented from CbcHeuristic.
Definition at line 195 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::numberSuccesses_ [protected] |
Number of successes.
Definition at line 197 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::numberTries_ [protected] |
Number of tries.
Definition at line 199 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::maximumKeepSolutions_ [protected] |
Maximum number of solutions to keep.
Definition at line 201 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::numberKeptSolutions_ [protected] |
Number of solutions kept.
Definition at line 203 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::numberIntegers_ [protected] |
Number of integer variables.
Definition at line 205 of file CbcHeuristicRINS.hpp.
int CbcHeuristicDINS::localSpace_ [protected] |
Local parameter.
Definition at line 207 of file CbcHeuristicRINS.hpp.
int** CbcHeuristicDINS::values_ [protected] |
Values of integer variables.
Definition at line 209 of file CbcHeuristicRINS.hpp.