Linear Constraint
Represents a linear-constraint for a ProblemDefinition.
Parameters
the variable name and the coefficient in the equation. The names of the input variables must not be blank.
the right-hand side value of the constraint. The default is 0.0.
the type of inequality, less-than or greater-than. The default is InequalityType.LESS_THAN
Constructors
Properties
The coefficients associated with each input variable name within the equation. These are adjusted for the direction of the inequality to ensure an A*x < b orientation.
The coefficients associated with each input variable name within the equation. These are not adjusted for the direction of the inequality.
Used to turn greater than inequalities to less than inequalities
The right-hand side of the constraint adjusted for the direction of the inequality to ensure a less-than constraint
Functions
Returns the coefficients associated with the left-hand side of the constraint based on the supplied input names. The coefficients are not adjusted for the direction of the inequality.
Computes the value of the left-hand side of the constraint based on the supplied values for each input variable in the equation. Assumes that the values are ordered in the same order as the input names. The returned value has been adjusted to ensure a less-than constraint orientation.
Computes the value of the left-hand side of the constraint based on the supplied values for each input variable in the equation. The returned value has been adjusted to ensure a less-than constraint orientation.
Computes the value of the left-hand side of the constraint based on the supplied values for each input variable in the equation and checks if the constraint is satisfied.
Computes the value of the left-hand side of the constraint based on the supplied inputs for each input variable in the equation and checks if the constraint is satisfied.