slack

open fun slack(inputs: Map<String, Double>): Double

The slack associated with the constraint based on the provided inputs. This is the difference between the right-hand side value and the left-hand side value.

Return

the difference between the right-hand side value and the left-hand side value.

Parameters

inputs

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.