#include <lemon/simann.h>
Inherits ControllerBase.
Inheritance diagram for SimpleController:
Public Member Functions | |
SimpleController (long _max_iter=500000, long _max_no_impr=20000, double _temp=1000.0, double _ann_fact=0.9999) | |
Constructor. | |
void | acceptEvent () |
This is called when a neighbouring state gets accepted. | |
void | improveEvent () |
This is called when the accepted neighbouring state's cost is less than the best found one's. | |
void | rejectEvent () |
This is called when a neighbouring state gets rejected. | |
bool | next () |
Decides whether to continue the annealing process or not. Also decreases the temperature. | |
bool | accept () |
Decides whether to accept the current solution or not. | |
virtual | ~SimpleController () |
Destructor. |
|
|