public class AcceptNewRemoveFirst extends Object implements SolutionAcceptor
| Constructor and Description |
|---|
AcceptNewRemoveFirst(int solutionMemory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptSolution(Collection<VehicleRoutingProblemSolution> solutions,
VehicleRoutingProblemSolution newSolution)
Accepts every solution if solution memory allows.
|
String |
toString() |
public boolean acceptSolution(Collection<VehicleRoutingProblemSolution> solutions, VehicleRoutingProblemSolution newSolution)
Note that this modifies Collection
acceptSolution in interface SolutionAcceptorsolutions - collection of existing solutionsnewSolution - new solution to be evaluatedCopyright © 2013–2024. All rights reserved.