util

Functions

assert_optimal_termination(results)

This function checks if the termination condition for the solver is 'optimal', 'locallyOptimal', or 'globallyOptimal', and the status is 'ok' and it raises a RuntimeError exception if this is not true.

check_optimal_termination(results)

This function returns True if the termination condition for the solver is 'optimal'.

collect_vars_and_named_exprs(expr)

get_objective(block)

Get current active objective on a block.