src/work/akos/simann_demo.cc
author hegyi
Fri, 01 Apr 2005 13:42:31 +0000
changeset 1290 082fc511c2b9
parent 1023 3268fef5d623
permissions -rw-r--r--
To run graph-displayer with sample input, type make run, but do not move the nodes, YET
     1 #include "simann.h"
     2 
     3 using namespace lemon;
     4 
     5 class MyEntity {
     6 public:
     7   double getCost() { return 10.0; }
     8   void mutate() {}
     9   void revert() {}
    10 };
    11 
    12 int main() {
    13   /*
    14   SimAnn<MyEntity> simann;
    15   SimpleController ctrl;
    16   simann.setController(ctrl);
    17   MyEntity ent;
    18   simann.setEntity(ent);
    19   simann.run();
    20   */
    21 
    22   SimAnn<MyEntity> simann2;
    23   AdvancedController ctrl2(10.0);
    24   simann2.setController(ctrl2);
    25   MyEntity ent2;
    26   simann2.setEntity(ent2);
    27   simann2.run();
    28 }