COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/akos/simann_demo.cc @ 968:1a7593db0eaa

Last change on this file since 968:1a7593db0eaa was 965:1e16b8dac159, checked in by Akos Ladanyi, 20 years ago

Moved the includes to simann.h.

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