generateNeighbor

abstract fun generateNeighbor(inputMap: InputMap, solver: Solver, ensureFeasibility: Boolean): InputMap

Given input values for a problem, this function should generate a neighbor relative to the supplied input.

Return

a neighbor to the supplied input

Parameters

inputMap

the input to serve as the basis for determining a neighbor

solver

the solver requiring the generated neighbor

ensureFeasibility

indicates if the generation method should ensure the problem feasibility of the returned value