Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

SbbHeuristic Class Reference

#include <SbbHeuristic.hpp>

Inheritance diagram for SbbHeuristic:

SbbLocalSearch SbbRounding List of all members.

Public Member Functions

 SbbHeuristic (SbbModel &model)
virtual void setModel (SbbModel *model)
 update model (This is needed if cliques update matrix etc)

virtual SbbHeuristicclone () const=0
 Clone.

virtual int solution (double &objectiveValue, double *newSolution)=0
virtual int solution (double &objectiveValue, double *newSolution, OsiCuts &cs)

Protected Attributes

SbbModelmodel_
 Model.


Private Member Functions

SbbHeuristicoperator= (const SbbHeuristic &rhs)
 Illegal Assignment operator.


Detailed Description

Heuristic base class

Definition at line 18 of file SbbHeuristic.hpp.


Member Function Documentation

virtual int SbbHeuristic::solution double &  objectiveValue,
double *  newSolution,
OsiCuts cs
[inline, virtual]
 

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 49 of file SbbHeuristic.hpp.

00051                                      {return 0;};

virtual int SbbHeuristic::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 SbbRounding, and SbbLocalSearch.

Referenced by SbbModel::branchAndBound(), and SbbModel::integerPresolveThisModel().


The documentation for this class was generated from the following files:
Generated on Wed Dec 3 14:36:23 2003 for Sbb by doxygen 1.3.5