QuadraticProgram.get_linear_constraint

QuadraticProgram.get_linear_constraint(i)[fuente]

Returns a linear constraint for a given name or index.

Parámetros:

i (int | str) – the index or name of the constraint.

Devuelve:

The corresponding constraint.

Muestra:
  • IndexError – if the index is out of the list size

  • KeyError – if the name does not exist

Tipo del valor devuelto:

LinearConstraint