linear Constraint
fun linearConstraint(equation: Map<String, Double>, rhsValue: Double = 0.0, inequalityType: InequalityType = InequalityType.LESS_THAN): LinearConstraint(source)
Creates an LinearConstraint based on the supplied linear equation as specified by the map. The names in the map must be valid input names. If an input name does not exist in the map, then the coefficient for that variable is assumed to be 0.0.
Parameters
equation
the pair (name, value) represents the input name and the coefficient value in the linear constraint
rhs Value
the right-hand side of the constraint
inequality Type
the inequality type (less_than or greater_than)