util

Functions

collectAbstractComponents(model)

Returns all abstract constraints, objectives, variables, parameters, and sets.

partial(*args, **kwargs)

copy.deepcopy balks at copying anonymous functions.

process_canonical_repn(expr)

Returns a dictionary of {var_name_or_None: coef} values.