feat(moSA): adds a constructor without cool but with cont

This commit is contained in:
Johann Dreo 2024-09-21 10:22:47 +02:00
commit 846006c613

View file

@ -79,6 +79,20 @@ public:
explorer(_neighborhood, _eval, defaultSolNeighborComp, _cool) 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<EOT>& _fullEval, moEval<Neighbor>& _eval, moContinuator<Neighbor>& _cont):
moLocalSearch<Neighbor>(explorer, _cont, _fullEval),
defaultCool(0, 0, 0, 0),
explorer(_neighborhood, _eval, defaultSolNeighborComp, defaultCool)
{}
/** /**
* General constructor for a simulated annealing * General constructor for a simulated annealing
* @param _neighborhood the neighborhood * @param _neighborhood the neighborhood