Skip to content

Commit

Permalink
feat(moSA): adds a constructor without cool but with cont
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreo committed Sep 21, 2024
1 parent db24e61 commit 846006c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mo/src/algo/moSA.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ class moSA: public moLocalSearch<Neighbor>
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
* @param _neighborhood the neighborhood
Expand Down

0 comments on commit 846006c

Please sign in to comment.