No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DescentSolver.java 966B

1234567891011121314151617181920212223242526272829
  1. package jobshop.solvers;
  2. import jobshop.Instance;
  3. import jobshop.Result;
  4. import jobshop.encodings.ResourceOrder;
  5. import jobshop.solvers.neighborhood.Neighborhood;
  6. /** An empty shell to implement a descent solver. */
  7. public class DescentSolver implements Solver {
  8. final Neighborhood<ResourceOrder> neighborhood;
  9. final Solver baseSolver;
  10. /** Creates a new descent solver with a given neighborhood and a solver for the initial solution.
  11. *
  12. * @param neighborhood Neighborhood object that should be used to generates neighbor solutions to the current candidate.
  13. * @param baseSolver A solver to provide the initial solution.
  14. */
  15. public DescentSolver(Neighborhood<ResourceOrder> neighborhood, Solver baseSolver) {
  16. this.neighborhood = neighborhood;
  17. this.baseSolver = baseSolver;
  18. }
  19. @Override
  20. public Result solve(Instance instance, long deadline) {
  21. throw new UnsupportedOperationException();
  22. }
  23. }