GreedyAlgorithm.cs 336 B

123456789101112131415
  1. 
  2. namespace MetaheuristicsPCL
  3. {
  4. public abstract class GreedyAlgorithm : Algorithm
  5. {
  6. public override sealed void Solve(IProblem _pb, IHM _ihm)
  7. {
  8. base.Solve(_pb, _ihm);
  9. ConstructSolution();
  10. SendResult();
  11. }
  12. protected abstract void ConstructSolution();
  13. }
  14. }