COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/akos/simann_test.cc @ 958:75f749682240

Last change on this file since 958:75f749682240 was 958:75f749682240, checked in by Akos Ladanyi, 16 years ago

Updated because of the recent changes in simann.h.

File size: 318 bytes
Line 
1#include <cstdlib>
2#include <cmath>
3#include "simann.h"
4
5using namespace lemon;
6
7class MyEntity {
8public:
9  double mutate() { return 10.0; }
10  void revert() {}
11};
12
13int main() {
14  SimAnn<MyEntity> simann;
15  SimpleController ctrl;
16  simann.setController(ctrl);
17  MyEntity ent;
18  simann.setEntity(ent);
19  simann.run();
20}
Note: See TracBrowser for help on using the repository browser.