linopy.model.Model.remove_constraints

linopy.model.Model.remove_constraints#

Model.remove_constraints(name)#

Remove all constraints stored under reference name ‘name’ from the model.

Parameters:

name (str or list of str) – Reference name(s) of the constraints to remove. If a single name is provided, only that constraint will be removed. If a list of names is provided, all constraints with those names will be removed.

Returns:

None.