computeLHS

abstract 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 calculation should take into account the direction of the inequality such that the inequality is interpreted as less than.

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.