Class NearbyDistanceMatrix<Origin,Destination>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.nearby.NearbyDistanceMatrix<Origin,Destination>
- All Implemented Interfaces:
Supply
-
Constructor Summary
ConstructorDescriptionNearbyDistanceMatrix
(NearbyDistanceMeter<Origin, Destination> nearbyDistanceMeter, int originSize, Function<Origin, Iterator<Destination>> destinationIteratorProvider, ToIntFunction<Origin> destinationSizeFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllDestinations
(Origin origin) getDestination
(Origin origin, int nearbyIndex)
-
Constructor Details
-
NearbyDistanceMatrix
public NearbyDistanceMatrix(NearbyDistanceMeter<Origin, Destination> nearbyDistanceMeter, int originSize, Function<Origin, Iterator<Destination>> destinationIteratorProvider, ToIntFunction<Origin> destinationSizeFunction)
-
-
Method Details
-
addAllDestinations
-
getDestination
-