NeighborhoodIfc

fun interface NeighborhoodIfc

Defines a search neighborhood for the provided input with respect to the problem. The solver is supplied to allow potential access to its state/memory within the process to determine the neighborhood.

Functions

Link copied to clipboard
abstract fun neighborhood(inputMap: InputMap, solver: Solver): Set<InputMap>

Defines a search neighborhood for the provided input with respect to the problem. The function should guarantee that the returned set is not empty.