Minor changes.
authoralpar
Tue, 15 Feb 2005 15:00:31 +0000
changeset 1150c20bcf71efe3
parent 1149 9058f09cac26
child 1151 b217fc69f913
Minor changes.
src/work/akos/simann.h
     1.1 --- a/src/work/akos/simann.h	Tue Feb 15 14:59:16 2005 +0000
     1.2 +++ b/src/work/akos/simann.h	Tue Feb 15 15:00:31 2005 +0000
     1.3 @@ -35,11 +35,11 @@
     1.4      double prev_prev_cost;
     1.5  
     1.6      /*! \brief Step to a neighbouring state. */
     1.7 -    virtual void mutate() {}
     1.8 +    virtual void mutate() = 0;
     1.9      /*! \brief Reverts the last mutate(). */
    1.10 -    virtual void revert() {}
    1.11 +    virtual void revert() = 0;
    1.12      /*! \brief Saves the current solution as the best one. */
    1.13 -    virtual void saveAsBest() {}
    1.14 +    virtual void saveAsBest() = 0;
    1.15    public:
    1.16      /*! \brief Constructor. */
    1.17      SimAnnBase() {
    1.18 @@ -60,7 +60,7 @@
    1.19      void run() {
    1.20        controller->init();
    1.21        do {
    1.22 -        mutate();
    1.23 +        curr_cost=mutate();
    1.24          if (controller->accept()) {
    1.25            controller->acceptEvent();
    1.26            if (curr_cost < best_cost) {