diff --git a/watertap/core/plugins/solvers.py b/watertap/core/plugins/solvers.py index dad04a7780..463c0af44a 100644 --- a/watertap/core/plugins/solvers.py +++ b/watertap/core/plugins/solvers.py @@ -158,7 +158,9 @@ def _scale_constraints(self, blk): self._cleanup() raise RuntimeError( "Error in AMPL evaluation.\n" - "Run ipopt with halt_on_ampl_error=yes and symbolic_solver_labels=True to see the affected function." + "Re-run ipopt with:\n" + '1. solver options = {"halt_on_ampl_error" : "yes", "nlp_scaling_method" : "gradient-based"\n' + "2. set keyword argument symbolic_solver_labels=True in the pyomo solve function call to see the affected function.\n" ) else: print("Error in constraint_autoscale_large_jac")