# HG changeset patch # User alpar # Date 1108479631 0 # Node ID c20bcf71efe3105b4660502c37c56ab505e1b873 # Parent 9058f09cac26c91b314e0038a196b4e2721c9e59 Minor changes. diff -r 9058f09cac26 -r c20bcf71efe3 src/work/akos/simann.h --- a/src/work/akos/simann.h Tue Feb 15 14:59:16 2005 +0000 +++ b/src/work/akos/simann.h Tue Feb 15 15:00:31 2005 +0000 @@ -35,11 +35,11 @@ double prev_prev_cost; /*! \brief Step to a neighbouring state. */ - virtual void mutate() {} + virtual void mutate() = 0; /*! \brief Reverts the last mutate(). */ - virtual void revert() {} + virtual void revert() = 0; /*! \brief Saves the current solution as the best one. */ - virtual void saveAsBest() {} + virtual void saveAsBest() = 0; public: /*! \brief Constructor. */ SimAnnBase() { @@ -60,7 +60,7 @@ void run() { controller->init(); do { - mutate(); + curr_cost=mutate(); if (controller->accept()) { controller->acceptEvent(); if (curr_cost < best_cost) {