Closed pulsipher closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.74%. Comparing base (
0961b36
) to head (3f84083
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This fixes a bug in the legacy NLP interface that is triggered when a nonlinear measure is in an affine/quadratic expression. Previously, this caused an error in the JuMP interface so InfiniteOpt used a try-catch hack to deal with detecting this case. Now with
GenericNonlinearExpr
JuMP no longer errors and actually allows mixing ofNonlinearExpression
andGenericNonlinearExpr
(see https://github.com/jump-dev/JuMP.jl/issues/3740).This PR fixes this bug and makes
v0.5
version of InfiniteOpt work with JuMP's legacy interface.Please note that the current master branch of InfiniteOpt uses JuMP's new nonlinear API and is more performant and less hacky. It will be released with
v0.6
once a few more breaking changes are finalized.