LocalSearch class. More...
#include <CbcHeuristicRINS.hpp>


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.   | |
LocalSearch class.
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] | 
        
Clone.
Implements CbcHeuristic.
| CbcHeuristicRINS& CbcHeuristicRINS::operator= | ( | const CbcHeuristicRINS & | rhs | ) | 
Assignment operator.
Reimplemented from CbcHeuristic.
| virtual void CbcHeuristicRINS::generateCpp | ( | FILE * | fp | ) |  [virtual] | 
        
Create C++ lines to get to current state.
Reimplemented from CbcHeuristic.
| virtual void CbcHeuristicRINS::resetModel | ( | CbcModel * | model | ) |  [virtual] | 
        
Resets stuff if model changes.
Implements CbcHeuristic.
| virtual void CbcHeuristicRINS::setModel | ( | CbcModel * | model | ) |  [virtual] | 
        
update model (This is needed if cliques update matrix etc)
Reimplemented from CbcHeuristic.
| 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] | 
        
Sets how often to do it.
Definition at line 56 of file CbcHeuristicRINS.hpp.
| void CbcHeuristicRINS::setDecayFactor | ( | double | value | ) |  [inline] | 
        
Sets decay factor (for howOften) on failure.
Definition at line 59 of file CbcHeuristicRINS.hpp.
| char* CbcHeuristicRINS::used | ( | ) |  const [inline] | 
        
Used array so we can set.
Definition at line 62 of file CbcHeuristicRINS.hpp.
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.
double CbcHeuristicRINS::decayFactor_ [protected] | 
        
How much to increase how often.
Reimplemented from CbcHeuristic.
Definition at line 73 of file CbcHeuristicRINS.hpp.
int CbcHeuristicRINS::numberSuccesses_ [protected] | 
        
Number of successes.
Definition at line 75 of file CbcHeuristicRINS.hpp.
int CbcHeuristicRINS::numberTries_ [protected] | 
        
Number of tries.
Definition at line 77 of file CbcHeuristicRINS.hpp.
char* CbcHeuristicRINS::used_ [protected] | 
        
Whether a variable has been in a solution.
Definition at line 79 of file CbcHeuristicRINS.hpp.
 1.6.1