responseConstraint

fun responseConstraint(name: String, rhsValue: Double, inequalityType: InequalityType = InequalityType.LESS_THAN, target: Double = 0.0, tolerance: Double = 0.0): ResponseConstraint(source)

Creates an ResponseConstraint based on the supplied response name and right-hand side value.

Return

the constructed response constraint

Parameters

name

the name of the response. Must be a pre-defined response name associated with the problem definition

rhsValue

the right-hand side of the constraint

inequalityType

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

target

the constraint's target. A parameter is often used by solver methods that behave as a cut-off point between desirable and unacceptable systems

tolerance

the constraint's tolerance. A parameter often used by solver methods that specifies how much we are willing to be off from the target. Similar to an indifference parameter.