Metaheuristiques-Lacroix-Le.../src/main/java/jobshop/solvers/DescentSolver.java
Raphaël LACROIX 9f341ba5f4 first commit
2023-03-17 09:53:18 +01:00

30 lines
948 B
Java

package jobshop.solvers;
import jobshop.Instance;
import jobshop.encodings.Schedule;
import jobshop.solvers.neighborhood.Neighborhood;
import java.util.Optional;
/** An empty shell to implement a descent solver. */
public class DescentSolver implements Solver {
final Neighborhood neighborhood;
final Solver baseSolver;
/** Creates a new descent solver with a given neighborhood and a solver for the initial solution.
*
* @param neighborhood Neighborhood object that should be used to generates neighbor solutions to the current candidate.
* @param baseSolver A solver to provide the initial solution.
*/
public DescentSolver(Neighborhood neighborhood, Solver baseSolver) {
this.neighborhood = neighborhood;
this.baseSolver = baseSolver;
}
@Override
public Optional<Schedule> solve(Instance instance, long deadline) {
throw new UnsupportedOperationException();
}
}