1.1 --- a/src/work/akos/simann_demo.cc Sun Apr 17 18:57:22 2005 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,28 +0,0 @@
1.4 -#include "simann.h"
1.5 -
1.6 -using namespace lemon;
1.7 -
1.8 -class MyEntity {
1.9 -public:
1.10 - double getCost() { return 10.0; }
1.11 - void mutate() {}
1.12 - void revert() {}
1.13 -};
1.14 -
1.15 -int main() {
1.16 - /*
1.17 - SimAnn<MyEntity> simann;
1.18 - SimpleController ctrl;
1.19 - simann.setController(ctrl);
1.20 - MyEntity ent;
1.21 - simann.setEntity(ent);
1.22 - simann.run();
1.23 - */
1.24 -
1.25 - SimAnn<MyEntity> simann2;
1.26 - AdvancedController ctrl2(10.0);
1.27 - simann2.setController(ctrl2);
1.28 - MyEntity ent2;
1.29 - simann2.setEntity(ent2);
1.30 - simann2.run();
1.31 -}