pyomo
pyomo copied to clipboard
Temporarily Adjust NL Writer Feasibility Tolerance within PyROS
Summary/Motivation:
Allow PyROS to temporarily adjust the NL writer feasibility tolerance before/after solving subproblems.
This change has been instituted to circumvent encounters with InfeasibleConstraintException arising from discrepancies between the Pyomo NL writer feasibility tolerance (pyomo.repn.plugins.nl_writer.tol) and the default feasibility tolerances for NL writer-based subsolvers, such as IPOPT, for which the default value of the (unscaled) feasibility tolerance is looser.
Changes proposed in this PR:
- Allow PyROS to temporarily adjust the Pyomo NL writer feasibility tolerance.
- Fix errors in PyROS restoration of IPOPT time limit specification for IPOPT >= 3.14.0.
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:
- I agree my contributions are submitted under the BSD license.
- I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.