IpCbcDummyHeuristic Class Reference

#include <IpCbcDummyHeuristic.hpp>

Inheritance diagram for IpCbcDummyHeuristic:

Inheritance graph
[legend]
Collaboration diagram for IpCbcDummyHeuristic:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IpCbcDummyHeuristic (IpoptInterface *si=NULL)
 Default constructor.
 IpCbcDummyHeuristic (CbcModel &model, IpoptInterface *si=NULL)
 Usefull constructor.
 IpCbcDummyHeuristic (const IpCbcDummyHeuristic &copy)
 Copy constructor.
void assignInterface (IpoptInterface *si)
 Assign an IpoptInterface.
virtual int solution (double &solutionValue, double *betterSolution)
 heuristic method
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 Attributes

IpoptInterfacenlp_
 Pointer to the Ipopt interface.
bool knowsSolution
 Do I have a solution?

Detailed Description

Definition at line 16 of file IpCbcDummyHeuristic.hpp.


Constructor & Destructor Documentation

IpCbcDummyHeuristic::IpCbcDummyHeuristic ( IpoptInterface si = NULL  ) 

Default constructor.

Referenced by clone().

IpCbcDummyHeuristic::IpCbcDummyHeuristic ( CbcModel model,
IpoptInterface si = NULL 
)

Usefull constructor.

IpCbcDummyHeuristic::IpCbcDummyHeuristic ( const IpCbcDummyHeuristic copy  )  [inline]

Copy constructor.

Definition at line 24 of file IpCbcDummyHeuristic.hpp.


Member Function Documentation

void IpCbcDummyHeuristic::assignInterface ( IpoptInterface si  ) 

Assign an IpoptInterface.

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

heuristic method

Implements CbcHeuristic.

Referenced by solution().

virtual int IpCbcDummyHeuristic::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 33 of file IpCbcDummyHeuristic.hpp.

References solution().

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

Clone.

Implements CbcHeuristic.

Definition at line 37 of file IpCbcDummyHeuristic.hpp.

References IpCbcDummyHeuristic().

virtual void IpCbcDummyHeuristic::resetModel ( CbcModel  )  [inline, virtual]

Resets stuff if model changes.

Implements CbcHeuristic.

Definition at line 41 of file IpCbcDummyHeuristic.hpp.


Member Data Documentation

IpoptInterface* IpCbcDummyHeuristic::nlp_ [private]

Pointer to the Ipopt interface.

Definition at line 45 of file IpCbcDummyHeuristic.hpp.

bool IpCbcDummyHeuristic::knowsSolution [private]

Do I have a solution?

Definition at line 47 of file IpCbcDummyHeuristic.hpp.


The documentation for this class was generated from the following file:
Generated on Fri May 16 21:15:05 2008 for Bonmin by  doxygen 1.4.7