enforce

open override fun enforce(x: DoubleArray, problemDefinition: ProblemDefinition): DoubleArray(source)

Enforces the input-range bounds on the supplied continuous position.

Return

a new position within the input ranges

Parameters

x

the continuous position (problem input order)

problemDefinition

the problem definition supplying per-input bounds