WARNING - Loading a SolverResults object with a warning status into model=unknown; message from solver=Ipopt 3.7.1\x3aConverged to a locally infeasible point. Problem may be infeasible.
Michel,
The warning is being tossed by Pyomo and not the solver, so setting the solver options will not suppress the warning. The solution is to tell pyomo itself to suppress warnings. The magic incantation is:
import logging
logging.getLogger('pyomo.core').setLevel(logging.ERROR)
That will suppress ALL warnings generated by Pyomo core components (technically, it suppresses everything with severity less than “ERROR”).
Now having said that, you pointed out a bug in Pyomo – that specific warning hadn’t been moved over to use the Python logging functionality and is a hard-coded print statement. I *just* changed it on master, so if you are feeling brave and want to live on the bleeding edge, you can check out the master branch from github. Otherwise, that will be available in the next release, which hopefully will be out “soon” (probably within a couple weeks).
john
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.