#include <CbcHeuristicLocal.hpp>
Inheritance diagram for CbcHeuristicLocal:
Public Member Functions | |
CbcHeuristicLocal () | |
CbcHeuristicLocal (CbcModel &model) | |
CbcHeuristicLocal (const CbcHeuristicLocal &) | |
~CbcHeuristicLocal () | |
virtual CbcHeuristic * | clone () const |
Clone. | |
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 | setSearchType (int value) |
Sets type of search. | |
char * | used () const |
Used array so we can set. | |
Protected Attributes | |
CoinPackedMatrix | matrix_ |
int | numberSolutions_ |
int | swap_ |
char * | used_ |
Whether a variable has been in a solution. | |
Private Member Functions | |
CbcHeuristicLocal & | operator= (const CbcHeuristicLocal &rhs) |
Illegal Assignment operator. |
Definition at line 10 of file CbcHeuristicLocal.hpp.
|
|
|
|
|
|
|
|
|
Clone.
Implements CbcHeuristic. |
|
Create C++ lines to get to current state.
Reimplemented from CbcHeuristic. |
|
Resets stuff if model changes.
Implements CbcHeuristic. |
|
update model (This is needed if cliques update matrix etc)
Reimplemented from CbcHeuristic. |
|
returns 0 if no solution, 1 if valid solution. Sets solution values if good, sets objective value (only if good) This is called after cuts have been added - so can not add cuts First tries setting a variable to better value. If feasible then tries setting others. If not feasible then tries swaps This first version does not do LP's and does swaps of two integer variables. Later versions could do Lps. Implements CbcHeuristic. |
|
This version fixes stuff and does IP.
|
|
Sets type of search.
Definition at line 58 of file CbcHeuristicLocal.hpp. References swap_. |
|
Used array so we can set.
Definition at line 61 of file CbcHeuristicLocal.hpp. |
|
Illegal Assignment operator.
|
|
Definition at line 68 of file CbcHeuristicLocal.hpp. |
|
Definition at line 71 of file CbcHeuristicLocal.hpp. |
|
Definition at line 73 of file CbcHeuristicLocal.hpp. Referenced by setSearchType(). |
|
Whether a variable has been in a solution.
Definition at line 75 of file CbcHeuristicLocal.hpp. |