QuadraticExpression.evaluate¶
- QuadraticExpression.evaluate(x)[source]¶
Evaluate the quadratic expression for given variables: x * Q * x.
- 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 quadratic expression given the variable values.