COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/akos/simann_demo.cc @ 1133:9fd485470fee

Last change on this file since 1133:9fd485470fee was 1096:1cfb25ef14d2, checked in by Akos Ladanyi, 20 years ago

Various changes.

File size: 468 bytes
RevLine 
[960]1#include "simann.h"
2
3using namespace lemon;
4
5class MyEntity {
6public:
[1023]7  double getCost() { return 10.0; }
8  void mutate() {}
[960]9  void revert() {}
10};
11
12int main() {
[1096]13  /*
[960]14  SimAnn<MyEntity> simann;
15  SimpleController ctrl;
16  simann.setController(ctrl);
17  MyEntity ent;
18  simann.setEntity(ent);
19  simann.run();
[1096]20  */
[999]21
22  SimAnn<MyEntity> simann2;
[1096]23  AdvancedController ctrl2(10.0);
[999]24  simann2.setController(ctrl2);
25  MyEntity ent2;
26  simann2.setEntity(ent2);
27  simann2.run();
[960]28}
Note: See TracBrowser for help on using the repository browser.