Partial solution class If user knows a partial solution this tries to get an integer solution it uses hotstart information. More...
#include <CbcHeuristic.hpp>
Public Member Functions | |
CbcHeuristicPartial () | |
CbcHeuristicPartial (CbcModel &model, int fixPriority=10000, int numberNodes=200) | |
Constructor with model - assumed before cuts Fixes all variables with priority <= given and does given number of nodes. | |
CbcHeuristicPartial (const CbcHeuristicPartial &) | |
~CbcHeuristicPartial () | |
CbcHeuristicPartial & | operator= (const CbcHeuristicPartial &rhs) |
Assignment operator. | |
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 with better objective value than one passed in Sets solution values if good, sets objective value (only if good) This is called after cuts have been added - so can not add cuts | |
virtual void | validate () |
Validate model i.e. sets when_ to 0 if necessary (may be NULL). | |
void | setFixPriority (int value) |
Set priority level. | |
Protected Attributes | |
int | fixPriority_ |
Partial solution class If user knows a partial solution this tries to get an integer solution it uses hotstart information.
Definition at line 330 of file CbcHeuristic.hpp.
CbcHeuristicPartial::CbcHeuristicPartial | ( | ) |
CbcHeuristicPartial::CbcHeuristicPartial | ( | CbcModel & | model, | |
int | fixPriority = 10000 , |
|||
int | numberNodes = 200 | |||
) |
Constructor with model - assumed before cuts Fixes all variables with priority <= given and does given number of nodes.
CbcHeuristicPartial::CbcHeuristicPartial | ( | const CbcHeuristicPartial & | ) |
CbcHeuristicPartial::~CbcHeuristicPartial | ( | ) |
CbcHeuristicPartial& CbcHeuristicPartial::operator= | ( | const CbcHeuristicPartial & | rhs | ) |
Assignment operator.
Reimplemented from CbcHeuristic.
virtual CbcHeuristic* CbcHeuristicPartial::clone | ( | ) | const [virtual] |
Clone.
Implements CbcHeuristic.
virtual void CbcHeuristicPartial::generateCpp | ( | FILE * | fp | ) | [virtual] |
Create C++ lines to get to current state.
Reimplemented from CbcHeuristic.
virtual void CbcHeuristicPartial::resetModel | ( | CbcModel * | model | ) | [virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
virtual void CbcHeuristicPartial::setModel | ( | CbcModel * | model | ) | [virtual] |
update model (This is needed if cliques update matrix etc)
Reimplemented from CbcHeuristic.
virtual int CbcHeuristicPartial::solution | ( | double & | objectiveValue, | |
double * | newSolution | |||
) | [virtual] |
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets solution values if good, sets objective value (only if good) This is called after cuts have been added - so can not add cuts
Implements CbcHeuristic.
virtual void CbcHeuristicPartial::validate | ( | ) | [virtual] |
Validate model i.e. sets when_ to 0 if necessary (may be NULL).
Reimplemented from CbcHeuristic.
void CbcHeuristicPartial::setFixPriority | ( | int | value | ) | [inline] |
Set priority level.
Definition at line 375 of file CbcHeuristic.hpp.
int CbcHeuristicPartial::fixPriority_ [protected] |
Definition at line 382 of file CbcHeuristic.hpp.