QuadraticProgram.get_num_vars

QuadraticProgram.get_num_vars(vartype=None)[fuente]

Returns the total number of variables or the number of variables of the specified type.

Parámetros:

vartype (VarType | None) – The type to be filtered on. All variables are counted if None.

Devuelve:

The total number of variables.

Tipo del valor devuelto:

int