sum_squares#

VarDictND.sum_squares(*pattern)[source]#

Sum squares of variables, or a subset based on wildcard pattern, in an expression.

Parameters:
*patternAny, optional

For subsets, the pattern requires one value for each dimension of the N-dim tuple key. The single-character string '*' (asterisk) can be used as a wildcard to represent all possible values for a dimension.

Raises:
NotImplementedError

This method is not implemented for highspy as it does not support quadratic expressions.