Alps  2.0.2
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
AbcHeuristic Class Referenceabstract

Heuristic base class. More...

#include <AbcHeuristic.h>

+ Inheritance diagram for AbcHeuristic:
+ Collaboration diagram for AbcHeuristic:

Public Member Functions

 AbcHeuristic ()
 
 AbcHeuristic (AbcModel &model)
 
virtual ~AbcHeuristic ()
 
virtual void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
virtual AbcHeuristicclone () const =0
 Clone. More...
 
virtual int solution (double &objectiveValue, double *newSolution)=0
 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 This is called after cuts have been added - so can not add cuts More...
 
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 void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
virtual AbcHeuristicclone () const =0
 Clone. More...
 
virtual int solution (double &objectiveValue, double *newSolution)=0
 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 This is called after cuts have been added - so can not add cuts More...
 
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 void setModel (AbcModel *model)
 update model (This is needed if cliques update matrix etc) More...
 
virtual AbcHeuristicclone () const =0
 Clone. More...
 
virtual int solution (double &objectiveValue, double *newSolution)=0
 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 This is called after cuts have been added - so can not add cuts More...
 
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

AbcModelmodel_
 Model. More...
 

Private Member Functions

AbcHeuristicoperator= (const AbcHeuristic &rhs)
 Illegal Assignment operator. More...
 
AbcHeuristicoperator= (const AbcHeuristic &rhs)
 Illegal Assignment operator. More...
 
AbcHeuristicoperator= (const AbcHeuristic &rhs)
 Illegal Assignment operator. More...
 

Detailed Description

Heuristic base class.

Definition at line 45 of file AbcHeuristic.h.

Constructor & Destructor Documentation

◆ AbcHeuristic() [1/6]

AbcHeuristic::AbcHeuristic ( )

◆ AbcHeuristic() [2/6]

AbcHeuristic::AbcHeuristic ( AbcModel model)

◆ ~AbcHeuristic() [1/3]

virtual AbcHeuristic::~AbcHeuristic ( )
virtual

◆ AbcHeuristic() [3/6]

AbcHeuristic::AbcHeuristic ( )

◆ AbcHeuristic() [4/6]

AbcHeuristic::AbcHeuristic ( AbcModel model)

◆ ~AbcHeuristic() [2/3]

virtual AbcHeuristic::~AbcHeuristic ( )
virtual

◆ AbcHeuristic() [5/6]

AbcHeuristic::AbcHeuristic ( )

◆ AbcHeuristic() [6/6]

AbcHeuristic::AbcHeuristic ( AbcModel model)

◆ ~AbcHeuristic() [3/3]

virtual AbcHeuristic::~AbcHeuristic ( )
virtual

Member Function Documentation

◆ setModel() [1/3]

virtual void AbcHeuristic::setModel ( AbcModel model)
virtual

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

Reimplemented in AbcRounding, AbcRounding, and AbcRounding.

◆ clone() [1/3]

virtual AbcHeuristic* AbcHeuristic::clone ( ) const
pure virtual

Clone.

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [1/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution 
)
pure 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 This is called after cuts have been added - so can not add cuts

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [2/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution,
OsiCuts &  cs 
)
inlinevirtual

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

Definition at line 76 of file AbcHeuristic.h.

◆ operator=() [1/3]

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

Illegal Assignment operator.

◆ setModel() [2/3]

virtual void AbcHeuristic::setModel ( AbcModel model)
virtual

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

Reimplemented in AbcRounding, AbcRounding, and AbcRounding.

◆ clone() [2/3]

virtual AbcHeuristic* AbcHeuristic::clone ( ) const
pure virtual

Clone.

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [3/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution 
)
pure 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 This is called after cuts have been added - so can not add cuts

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [4/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution,
OsiCuts &  cs 
)
inlinevirtual

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

Definition at line 76 of file AbcHeuristic.h.

◆ operator=() [2/3]

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

Illegal Assignment operator.

◆ setModel() [3/3]

virtual void AbcHeuristic::setModel ( AbcModel model)
virtual

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

Reimplemented in AbcRounding, AbcRounding, and AbcRounding.

◆ clone() [3/3]

virtual AbcHeuristic* AbcHeuristic::clone ( ) const
pure virtual

Clone.

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [5/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution 
)
pure 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 This is called after cuts have been added - so can not add cuts

Implemented in AbcRounding, AbcRounding, and AbcRounding.

◆ solution() [6/6]

virtual int AbcHeuristic::solution ( double &  objectiveValue,
double *  newSolution,
OsiCuts &  cs 
)
inlinevirtual

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

Definition at line 76 of file AbcHeuristic.h.

◆ operator=() [3/3]

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

Illegal Assignment operator.

Member Data Documentation

◆ model_

AbcModel * AbcHeuristic::model_
protected

Model.

Definition at line 83 of file AbcHeuristic.h.


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