Response Constraint Spec
@Serializable
Serializable counterpart to ksl.simopt.problem.ProblemDefinition.responseConstraint.
A constraint on a response: the expected value of the named response is compared, via inequalityType, to rhsValue, augmented with optional target and tolerance parameters used by some solvers as soft cut-offs.
Domain invariants are enforced in init. Cross-reference checks (response-name resolution against the built model) remain the responsibility of OptimizationConfigurationValidator.
Constructors
Link copied to clipboard
constructor(name: String, rhsValue: Double, inequalityType: InequalityType = InequalityType.LESS_THAN, target: Double = 0.0, tolerance: Double = 0.0, penaltyFunction: PenaltyFunctionSpec? = null)