pyomo icon indicating copy to clipboard operation
pyomo copied to clipboard

Add Configuration Option for NL Writer Presolve Tolerance

Open shermanjasonaf opened this issue 1 year ago • 0 comments

Summary

Move the NL writer presolve tolerance from a module-level constant to a configuration option.

Rationale

#3280 suggested that the hardcoded tolerance repn.plugins.nl_writer.TOL of the NL writer presolver may differ from the (feasibility) tolerance of an optimizer invoked on the NL writer output. This may lead to an unexpected InfeasibleConstraintException if, for example, the feasibility tolerance of the presolve is tighter than that of the optimizer. There may be cases in which the user may wish to adjust the NL writer tolerance according to the optimizer tolerance.

shermanjasonaf avatar Jul 01 '24 20:07 shermanjasonaf