CbcRounding Class Reference

Rounding class. More...

#include <CbcHeuristic.hpp>

Inheritance diagram for CbcRounding:
Inheritance graph
[legend]
Collaboration diagram for CbcRounding:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CbcRounding ()
 CbcRounding (CbcModel &model)
 CbcRounding (const CbcRounding &)
 ~CbcRounding ()
CbcRoundingoperator= (const CbcRounding &rhs)
 Assignment operator.
virtual CbcHeuristicclone () 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_

Detailed Description

Rounding class.

Definition at line 249 of file CbcHeuristic.hpp.


Constructor & Destructor Documentation

CbcRounding::CbcRounding (  ) 
CbcRounding::CbcRounding ( CbcModel model  ) 
CbcRounding::CbcRounding ( const CbcRounding  ) 
CbcRounding::~CbcRounding (  ) 

Member Function Documentation

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]

Set seed.

Reimplemented from CbcHeuristic.

Definition at line 300 of file CbcHeuristic.hpp.


Member Data Documentation

Definition at line 307 of file CbcHeuristic.hpp.

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.


The documentation for this class was generated from the following file:

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1