#include <lemon/simann.h>
Inherited by SimAnn.
Inheritance diagram for SimAnnBase:
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. |
|
|