Alps  2.0.2
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
AbcRounding Class Reference

Rounding class. More...

#include <AbcHeuristic.h>

+ Inheritance diagram for AbcRounding:
+ Collaboration diagram for AbcRounding:

Public Member Functions

 AbcRounding ()
 
 AbcRounding (AbcModel &model)
 
 AbcRounding (const AbcRounding &)
 
 ~AbcRounding ()
 
virtual AbcHeuristicclone () const
 Clone. More...
 
virtual void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
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 More...
 
void setSeed (int value)
 Set seed. More...
 
 AbcRounding ()
 
 AbcRounding (AbcModel &model)
 
 AbcRounding (const AbcRounding &)
 
 ~AbcRounding ()
 
virtual AbcHeuristicclone () const
 Clone. More...
 
virtual void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
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 More...
 
void setSeed (int value)
 Set seed. More...
 
 AbcRounding ()
 
 AbcRounding (AbcModel &model)
 
 AbcRounding (const AbcRounding &)
 
 ~AbcRounding ()
 
virtual AbcHeuristicclone () const
 Clone. More...
 
virtual void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
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 More...
 
void setSeed (int value)
 Set seed. More...
 
- Public Member Functions inherited from AbcHeuristic
 AbcHeuristic ()
 
 AbcHeuristic (AbcModel &model)
 
virtual ~AbcHeuristic ()
 
virtual int solution (double &objectiveValue, double *newSolution, OsiCuts &cs)
 returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing More...
 
 AbcHeuristic ()
 
 AbcHeuristic (AbcModel &model)
 
virtual ~AbcHeuristic ()
 
virtual int solution (double &objectiveValue, double *newSolution, OsiCuts &cs)
 returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing More...
 
 AbcHeuristic ()
 
 AbcHeuristic (AbcModel &model)
 
virtual ~AbcHeuristic ()
 
virtual int solution (double &objectiveValue, double *newSolution, OsiCuts &cs)
 returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing More...
 

Protected Attributes

CoinPackedMatrix matrix_
 
CoinPackedMatrix matrixByRow_
 
int seed_
 
- Protected Attributes inherited from AbcHeuristic
AbcModelmodel_
 Model. More...
 

Private Member Functions

AbcRoundingoperator= (const AbcRounding &rhs)
 Illegal Assignment operator. More...
 
AbcRoundingoperator= (const AbcRounding &rhs)
 Illegal Assignment operator. More...
 
AbcRoundingoperator= (const AbcRounding &rhs)
 Illegal Assignment operator. More...
 

Detailed Description

Rounding class.

Definition at line 94 of file AbcHeuristic.h.

Constructor & Destructor Documentation

◆ AbcRounding() [1/9]

AbcRounding::AbcRounding ( )

◆ AbcRounding() [2/9]

AbcRounding::AbcRounding ( AbcModel model)

◆ AbcRounding() [3/9]

AbcRounding::AbcRounding ( const AbcRounding )

◆ ~AbcRounding() [1/3]

AbcRounding::~AbcRounding ( )

◆ AbcRounding() [4/9]

AbcRounding::AbcRounding ( )

◆ AbcRounding() [5/9]

AbcRounding::AbcRounding ( AbcModel model)

◆ AbcRounding() [6/9]

AbcRounding::AbcRounding ( const AbcRounding )

◆ ~AbcRounding() [2/3]

AbcRounding::~AbcRounding ( )

◆ AbcRounding() [7/9]

AbcRounding::AbcRounding ( )

◆ AbcRounding() [8/9]

AbcRounding::AbcRounding ( AbcModel model)

◆ AbcRounding() [9/9]

AbcRounding::AbcRounding ( const AbcRounding )

◆ ~AbcRounding() [3/3]

AbcRounding::~AbcRounding ( )

Member Function Documentation

◆ clone() [1/3]

virtual AbcHeuristic* AbcRounding::clone ( ) const
virtual

Clone.

Implements AbcHeuristic.

◆ setModel() [1/3]

virtual void AbcRounding::setModel ( AbcModel model)
virtual

update model (This is needed if cliques update matrix etc)

Reimplemented from AbcHeuristic.

◆ solution() [1/3]

virtual int AbcRounding::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 AbcHeuristic.

◆ setSeed() [1/3]

void AbcRounding::setSeed ( int  value)
inline

Set seed.

Definition at line 125 of file AbcHeuristic.h.

◆ operator=() [1/3]

AbcRounding& AbcRounding::operator= ( const AbcRounding rhs)
private

Illegal Assignment operator.

◆ clone() [2/3]

virtual AbcHeuristic* AbcRounding::clone ( ) const
virtual

Clone.

Implements AbcHeuristic.

◆ setModel() [2/3]

virtual void AbcRounding::setModel ( AbcModel model)
virtual

update model (This is needed if cliques update matrix etc)

Reimplemented from AbcHeuristic.

◆ solution() [2/3]

virtual int AbcRounding::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 AbcHeuristic.

◆ setSeed() [2/3]

void AbcRounding::setSeed ( int  value)
inline

Set seed.

Definition at line 125 of file AbcHeuristic.h.

◆ operator=() [2/3]

AbcRounding& AbcRounding::operator= ( const AbcRounding rhs)
private

Illegal Assignment operator.

◆ clone() [3/3]

virtual AbcHeuristic* AbcRounding::clone ( ) const
virtual

Clone.

Implements AbcHeuristic.

◆ setModel() [3/3]

virtual void AbcRounding::setModel ( AbcModel model)
virtual

update model (This is needed if cliques update matrix etc)

Reimplemented from AbcHeuristic.

◆ solution() [3/3]

virtual int AbcRounding::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 AbcHeuristic.

◆ setSeed() [3/3]

void AbcRounding::setSeed ( int  value)
inline

Set seed.

Definition at line 125 of file AbcHeuristic.h.

◆ operator=() [3/3]

AbcRounding& AbcRounding::operator= ( const AbcRounding rhs)
private

Illegal Assignment operator.

Member Data Documentation

◆ matrix_

CoinPackedMatrix AbcRounding::matrix_
protected

Definition at line 132 of file AbcHeuristic.h.

◆ matrixByRow_

CoinPackedMatrix AbcRounding::matrixByRow_
protected

Definition at line 135 of file AbcHeuristic.h.

◆ seed_

int AbcRounding::seed_
protected

Definition at line 138 of file AbcHeuristic.h.


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