(function from pyomo.opt.results.solver)
pyomo.opt.results.solver
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. This is backwards and forwards compatible.
results (Pyomo Results object returned from solver.solve)