Renamed simann_test.cc to simann_demo.cc.
authorladanyi
Thu, 04 Nov 2004 21:28:55 +0000
changeset 960908a1a6f0752
parent 959 c80ef5912903
child 961 289d80c33f04
Renamed simann_test.cc to simann_demo.cc.
src/work/akos/makefile
src/work/akos/simann_demo.cc
src/work/akos/simann_test.cc
     1.1 --- a/src/work/akos/makefile	Thu Nov 04 20:24:59 2004 +0000
     1.2 +++ b/src/work/akos/makefile	Thu Nov 04 21:28:55 2004 +0000
     1.3 @@ -3,7 +3,11 @@
     1.4  
     1.5  loader_demo: loader_demo.cc ../list_graph.hh ../bfs_iterator.hh loader.h
     1.6  	$(CXX) $(CXXFLAGS) -I. -I.. loader_demo.cc -o loader_demo 
     1.7 +
     1.8 +simann_test: simann_demo.cc simann.h
     1.9 +	$(CXX) $(CXXFLAGS) -I. -I.. loader_demo.cc -o loader_demo 
    1.10 +
    1.11  clean:
    1.12 -	$(RM) loader_demo
    1.13 +	$(RM) loader_demo simann_test
    1.14  
    1.15  .PHONY: clean
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/work/akos/simann_demo.cc	Thu Nov 04 21:28:55 2004 +0000
     2.3 @@ -0,0 +1,20 @@
     2.4 +#include <cstdlib>
     2.5 +#include <cmath>
     2.6 +#include "simann.h"
     2.7 +
     2.8 +using namespace lemon;
     2.9 +
    2.10 +class MyEntity {
    2.11 +public:
    2.12 +  double mutate() { return 10.0; }
    2.13 +  void revert() {}
    2.14 +};
    2.15 +
    2.16 +int main() {
    2.17 +  SimAnn<MyEntity> simann;
    2.18 +  SimpleController ctrl;
    2.19 +  simann.setController(ctrl);
    2.20 +  MyEntity ent;
    2.21 +  simann.setEntity(ent);
    2.22 +  simann.run();
    2.23 +}
     3.1 --- a/src/work/akos/simann_test.cc	Thu Nov 04 20:24:59 2004 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,20 +0,0 @@
     3.4 -#include <cstdlib>
     3.5 -#include <cmath>
     3.6 -#include "simann.h"
     3.7 -
     3.8 -using namespace lemon;
     3.9 -
    3.10 -class MyEntity {
    3.11 -public:
    3.12 -  double mutate() { return 10.0; }
    3.13 -  void revert() {}
    3.14 -};
    3.15 -
    3.16 -int main() {
    3.17 -  SimAnn<MyEntity> simann;
    3.18 -  SimpleController ctrl;
    3.19 -  simann.setController(ctrl);
    3.20 -  MyEntity ent;
    3.21 -  simann.setEntity(ent);
    3.22 -  simann.run();
    3.23 -}