algorithms.acceptors
Interface SolutionAcceptor

All Known Implementing Classes:
AcceptNewIfBetterThanWorst, AcceptNewRemoveFirst, SchrimpfAcceptance

public interface SolutionAcceptor

Acceptor that decides whether the newSolution is accepted or not.

Author:
stefan

Method Summary
 boolean acceptSolution(java.util.Collection<VehicleRoutingProblemSolution> solutions, VehicleRoutingProblemSolution newSolution)
          Accepts solution or not, and returns true if a new solution has been accepted.
 

Method Detail

acceptSolution

boolean acceptSolution(java.util.Collection<VehicleRoutingProblemSolution> solutions,
                       VehicleRoutingProblemSolution newSolution)
Accepts solution or not, and returns true if a new solution has been accepted.

If the solution is accepted, it is added to solutions, i.e. the solutions-collections is modified.

Parameters:
solutions -
newSolution -
Returns:
TODO