AI4OPT / OPFGenerator

Instance generator for OPF problems
MIT License
2 stars 3 forks source link

Ignore quadratic cost coefficients #32

Closed mtanneau closed 11 months ago

mtanneau commented 11 months ago

This technically breaks compatibility with PowerModels, but... in a lot of cases, the objective is linear. When that is the case, JuMP treats the objective as quadratic, which causes problems down the line (especially for conic solvers)

A warning is displayed when the original data does have quadratic coefficients.

ccoffrin commented 11 months ago

I can imagine some folks might object down the road if this tool only supports linear and not quadratic objectives. Is it really that hard to support the reformulation for conic solvers?

Even further, do you really need support conic solvers? They are not so reliable in my experience.

mtanneau commented 11 months ago

This is more of a hotfix, because I'm getting errors when grabbing the result. I'll open an issue in JuMP to track that --> upstream issue: https://github.com/jump-dev/MathOptInterface.jl/issues/2239

Supporting quadratic objectives down the line --> I know how we would do it, it's just that the corresponding dual variable is zero at the moment. All the test cases we currently consider have linear objective anyway 🙃