computeLHS

open override fun computeLHS(values: Map<String, Double>): Double

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.

Return

the total value representing the left-hand side of the linear equation

Parameters

values

the map containing the input variable name and the current value of the input variable as a pair. The names must be in the equation.


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.

Return

the total value representing the left-hand side of the linear equation

Parameters

values

the list containing the input variable value for each input variable name in the order in which the names are in the equation.