LinearExpression.evaluate

LinearExpression.evaluate(x)[source]

Evaluate the linear expression for given variables.

Parameters

x (Union[ndarray, List, Dict[Union[int, str], float]]) – The values of the variables to be evaluated.

Return type

float

Returns

The value of the linear expression given the variable values.