public class ExperimentalSchrimpfAcceptance extends Object implements SolutionAcceptor, IterationStartsListener, AlgorithmStartsListener
| Constructor and Description |
|---|
ExperimentalSchrimpfAcceptance(int solutionMemory,
double alpha,
int nOfWarmupIterations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptSolution(Collection<VehicleRoutingProblemSolution> solutions,
VehicleRoutingProblemSolution newSolution)
Accepts solution or not, and returns true if a new solution has been accepted.
|
void |
informAlgorithmStarts(VehicleRoutingProblem problem,
VehicleRoutingAlgorithm algorithm,
Collection<VehicleRoutingProblemSolution> solutions) |
void |
informIterationStarts(int i,
VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions) |
String |
toString() |
public ExperimentalSchrimpfAcceptance(int solutionMemory,
double alpha,
int nOfWarmupIterations)
public boolean acceptSolution(Collection<VehicleRoutingProblemSolution> solutions, VehicleRoutingProblemSolution newSolution)
SolutionAcceptor
If the solution is accepted, it is added to solutions, i.e. the solutions-collections is modified.
acceptSolution in interface SolutionAcceptorsolutions - collection of existing solutionsnewSolution - new solution to be evaluatedpublic void informAlgorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, Collection<VehicleRoutingProblemSolution> solutions)
informAlgorithmStarts in interface AlgorithmStartsListenerpublic void informIterationStarts(int i,
VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions)
informIterationStarts in interface IterationStartsListenerCopyright © 2013–2024. All rights reserved.