minimumSolution

fun minimumSolution(first: Solution, second: Solution, comparator: <Error class: unknown class><Solution> = PenalizedObjectiveFunctionComparator): Solution(source)

Returns the smaller of the two solutions. Ties result in the first solution being returned. This function uses the supplied comparator.

Parameters

first

the first solution within the comparison

second

the second solution within the comparison

comparator

the comparator to use for the comparison. By default, the comparison is based on the values of the penalized objective function values.