Bonmin::GuessHeuristic Class Reference

#include <BonGuessHeuristic.hpp>

Inheritance diagram for Bonmin::GuessHeuristic:

Inheritance graph
[legend]
Collaboration diagram for Bonmin::GuessHeuristic:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GuessHeuristic (CbcModel &model)
 Usefull constructor.
 GuessHeuristic (const GuessHeuristic &copy)
 Copy constructor.
virtual int solution (double &solutionValue, double *betterSolution)
 heuristic method providing guess, based on pseudo costs
virtual int solution (double &solutionValue, double *betterSolution, 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
virtual CbcHeuristicclone () const
 Clone.
virtual void resetModel (CbcModel *)
 Resets stuff if model changes.

Private Member Functions

 GuessHeuristic ()
 Default constructor.
GuessHeuristicoperator= (const GuessHeuristic &rhs)
 Assignment operator.

Detailed Description

Definition at line 16 of file BonGuessHeuristic.hpp.


Constructor & Destructor Documentation

Bonmin::GuessHeuristic::GuessHeuristic ( CbcModel model  ) 

Usefull constructor.

Bonmin::GuessHeuristic::GuessHeuristic ( const GuessHeuristic copy  )  [inline]

Copy constructor.

Definition at line 22 of file BonGuessHeuristic.hpp.

Bonmin::GuessHeuristic::GuessHeuristic (  )  [private]

Default constructor.

Referenced by clone().


Member Function Documentation

virtual int Bonmin::GuessHeuristic::solution ( double &  solutionValue,
double *  betterSolution 
) [virtual]

heuristic method providing guess, based on pseudo costs

Implements CbcHeuristic.

Referenced by solution().

virtual int Bonmin::GuessHeuristic::solution ( double &  solutionValue,
double *  betterSolution,
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

Reimplemented from CbcHeuristic.

Definition at line 28 of file BonGuessHeuristic.hpp.

References solution().

virtual CbcHeuristic* Bonmin::GuessHeuristic::clone (  )  const [inline, virtual]

Clone.

Implements CbcHeuristic.

Definition at line 32 of file BonGuessHeuristic.hpp.

References GuessHeuristic().

virtual void Bonmin::GuessHeuristic::resetModel ( CbcModel  )  [inline, virtual]

Resets stuff if model changes.

Implements CbcHeuristic.

Definition at line 36 of file BonGuessHeuristic.hpp.

GuessHeuristic& Bonmin::GuessHeuristic::operator= ( const GuessHeuristic rhs  )  [private]

Assignment operator.


The documentation for this class was generated from the following file:
Generated on Sat Jun 21 03:19:42 2008 for Bonmin by  doxygen 1.4.7