Linear Constraint Spec
Serializable counterpart to ksl.simopt.problem.ProblemDefinition.linearConstraint.
A linear constraint over the decision variables: the dot product of the named coefficients with the corresponding decision-variable values is compared, via inequalityType, to rhsValue. Each key in coefficients must resolve to a declared OptimizationInputSpec in the enclosing problem; missing input names are treated as having coefficient 0 (matching engine semantics).
Domain invariants are enforced in init so that malformed constraints cannot be constructed. Cross-reference checks (coefficient keys must match declared decision-variable names) require the enclosing problem and remain the responsibility of OptimizationConfigurationValidator.
Constructors
Properties
linear coefficients keyed by decision-variable name; must be non-empty, every key non-blank, every value finite
direction of the inequality
optional per-constraint penalty function overriding the problem-level default; null (the default) inherits OptimizationProblemSpec.defaultLinearPenalty