Rounding class. More...
#include <CbcHeuristic.hpp>
Public Member Functions | |
CbcRounding () | |
CbcRounding (CbcModel &model) | |
CbcRounding (const CbcRounding &) | |
~CbcRounding () | |
CbcRounding & | operator= (const CbcRounding &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 int | solution (double &objectiveValue, double *newSolution, double solutionValue) |
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 Use solutionValue rather than solvers one | |
virtual void | validate () |
Validate model i.e. sets when_ to 0 if necessary (may be NULL). | |
void | setSeed (int value) |
Set seed. | |
Protected Attributes | |
CoinPackedMatrix | matrix_ |
CoinPackedMatrix | matrixByRow_ |
unsigned short * | down_ |
unsigned short * | up_ |
unsigned short * | equal_ |
int | seed_ |
Rounding class.
Definition at line 249 of file CbcHeuristic.hpp.
CbcRounding::CbcRounding | ( | ) |
CbcRounding::CbcRounding | ( | CbcModel & | model | ) |
CbcRounding::CbcRounding | ( | const CbcRounding & | ) |
CbcRounding::~CbcRounding | ( | ) |
CbcRounding& CbcRounding::operator= | ( | const CbcRounding & | rhs | ) |
Assignment operator.
Reimplemented from CbcHeuristic.
virtual CbcHeuristic* CbcRounding::clone | ( | ) | const [virtual] |
Clone.
Implements CbcHeuristic.
virtual void CbcRounding::generateCpp | ( | FILE * | fp | ) | [virtual] |
Create C++ lines to get to current state.
Reimplemented from CbcHeuristic.
virtual void CbcRounding::resetModel | ( | CbcModel * | model | ) | [virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
virtual void CbcRounding::setModel | ( | CbcModel * | model | ) | [virtual] |
update model (This is needed if cliques update matrix etc)
Reimplemented from CbcHeuristic.
virtual int CbcRounding::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 int CbcRounding::solution | ( | double & | objectiveValue, | |
double * | newSolution, | |||
double | solutionValue | |||
) | [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 Use solutionValue rather than solvers one
virtual void CbcRounding::validate | ( | ) | [virtual] |
Validate model i.e. sets when_ to 0 if necessary (may be NULL).
Reimplemented from CbcHeuristic.
void CbcRounding::setSeed | ( | int | value | ) | [inline] |
CoinPackedMatrix CbcRounding::matrix_ [protected] |
Definition at line 307 of file CbcHeuristic.hpp.
CoinPackedMatrix CbcRounding::matrixByRow_ [protected] |
Definition at line 310 of file CbcHeuristic.hpp.
unsigned short* CbcRounding::down_ [protected] |
Definition at line 313 of file CbcHeuristic.hpp.
unsigned short* CbcRounding::up_ [protected] |
Definition at line 316 of file CbcHeuristic.hpp.
unsigned short* CbcRounding::equal_ [protected] |
Definition at line 319 of file CbcHeuristic.hpp.
int CbcRounding::seed_ [protected] |
Definition at line 322 of file CbcHeuristic.hpp.