From f33552b07f3bc505b2996fda8933626bb8e75977 Mon Sep 17 00:00:00 2001 From: verel Date: Wed, 28 Jul 2010 13:45:08 +0000 Subject: [PATCH] Add one construction to moSA git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1900 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/algo/moSA.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/trunk/paradiseo-mo/src/algo/moSA.h b/trunk/paradiseo-mo/src/algo/moSA.h index 893bf41c6..c126f31fc 100644 --- a/trunk/paradiseo-mo/src/algo/moSA.h +++ b/trunk/paradiseo-mo/src/algo/moSA.h @@ -79,6 +79,20 @@ public: explorer(_neighborhood, _eval, defaultSolNeighborComp, _cool) {} + /** + * General constructor for a simulated annealing + * @param _neighborhood the neighborhood + * @param _fullEval the full evaluation function + * @param _eval neighbor's evaluation function + * @param _cool a cooling schedule + * @param _cont an external continuator + */ + moSA(Neighborhood& _neighborhood, eoEvalFunc& _fullEval, moEval& _eval, moCoolingSchedule& _cool, moContinuator& _cont): + moLocalSearch(explorer, _cont, _fullEval), + defaultCool(0, 0, 0, 0), + explorer(_neighborhood, _eval, defaultSolNeighborComp, _cool) + {} + /** * General constructor for a simulated annealing * @param _neighborhood the neighborhood