diff --git a/mo/src/algo/moSA.h b/mo/src/algo/moSA.h index c126f31fc..5748f020a 100644 --- a/mo/src/algo/moSA.h +++ b/mo/src/algo/moSA.h @@ -79,6 +79,20 @@ class moSA: public moLocalSearch explorer(_neighborhood, _eval, defaultSolNeighborComp, _cool) {} + /** + * Constructor without cooling schedule, but with a continuator. + * + * @param _neighborhood the neighborhood + * @param _fullEval the full evaluation function + * @param _eval neighbor's evaluation function + * @param _cont an external continuator + */ + moSA(Neighborhood& _neighborhood, eoEvalFunc& _fullEval, moEval& _eval, moContinuator& _cont): + moLocalSearch(explorer, _cont, _fullEval), + defaultCool(0, 0, 0, 0), + explorer(_neighborhood, _eval, defaultSolNeighborComp, defaultCool) + {} + /** * General constructor for a simulated annealing * @param _neighborhood the neighborhood