- Changes in doc (spell check).
- SmallGraph is a class instead of being a typedef. (For the sake of doxygen.)
8 class MyController : public SimAnnBase::Controller {
10 long iter, last_impr, max_iter, max_no_impr;
11 double temp, annealing_factor;
16 annealing_factor = 0.9999;
29 temp *= annealing_factor;
30 bool quit = (iter > max_iter) || (iter - last_impr > max_no_impr);
33 bool accept(double cost_diff) {
34 return (drand48() <= exp(cost_diff / temp));
40 double mutate() { return 10.0; }
44 SimAnn<MyEntity> simann;
46 simann.setController(ctrl);
48 simann.setEntity(ent);