Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SimAnnBase Class Reference
[Experimental]

#include <lemon/simann.h>

Inherited by SimAnn.

Inheritance diagram for SimAnnBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void setController (ControllerBase &_controller)
 Sets the controller class to use.
double getCurrCost () const
 Returns the cost of the current solution.
double getPrevCost () const
 Returns the cost of the previous solution.
double getBestCost () const
 Returns the cost of the best solution.
long getIter () const
 Returns the number of iterations.
long getLastImpr () const
 Returns the number of the last iteration when the solution was improved.
bool step ()
 Performs one iteration.
bool step (int n)
 Performs a given number of iterations.
void run ()
 Starts the annealing process.

Protected Member Functions

virtual double mutate ()=0
 Step to a neighbouring state.
virtual void revert ()=0
 Reverts the last mutate().
virtual void saveAsBest ()=0
 Saves the current solution as the best one.
virtual void init ()
 Does initializations before each run.

Member Function Documentation

bool step int  n  )  [inline]
 

Parameters:
n the number of iterations


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:16:11 2005 for LEMON by  doxygen 1.4.4