Linear Constraint
constructor(equation: Map<String, Double>, rhsValue: Double = 0.0, inequalityType: InequalityType = InequalityType.LESS_THAN, penaltyFunction: PenaltyFunctionIfc? = null)(source)
Parameters
equation
the variable name and the coefficient in the equation. The names of the input variables must not be blank.
rhs Value
the right-hand side value of the constraint. The default is 0.0.
inequality Type
the type of inequality, less-than or greater-than. The default is InequalityType.LESS_THAN
penalty Function
optional per-constraint penalty function overriding the problem-level default for linear constraints. When null (the default), the constraint inherits ksl.simopt.problem.ProblemDefinition.defaultLinearPenalty.