hdavid16 / DisjunctiveProgramming.jl

A JuMP extension for Generalized Disjunctive Programming
MIT License
27 stars 3 forks source link

new constraints output for nonlinear models #49

Closed hdavid16 closed 1 year ago

hdavid16 commented 1 year ago

Since reformulations of nonlinear (or quadratic if using the hull reformulation) constraints requires deleting the original constraint and creating a new constraint, the section in reformulate_disjunction that creates the dictionary with new constraints errors because the disj has been modified.

https://github.com/hdavid16/DisjunctiveProgramming.jl/blob/a118804afb67ec1a9c896ebde01c3cc4e8e2dd60/src/reformulate.jl#L30-L32

hdavid16 commented 1 year ago

removed this output from the reformulation function. There is now no dictionary output.