linopy.model.Model.remove_expressions

linopy.model.Model.remove_expressions#

Model.remove_expressions(name)#

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

Parameters:

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

Returns:

None.