functionalConstraint

fun functionalConstraint(lhsFunc: ConstraintFunctionIfc, rhsValue: Double = 0.0, inequalityType: InequalityType = InequalityType.LESS_THAN): FunctionalConstraint(source)

Creates an FunctionalConstraint based on the supplied function.

Return

the constructed functional constraint

Parameters

lhsFunc

the function representing the left-hand side of the constraint

rhsValue

the right-hand side of the constraint

inequalityType

the inequality type (less_than or greater_than). The default is less than