lanl-ansi / PowerModels.jl

A Julia/JuMP Package for Power Network Optimization
https://lanl-ansi.github.io/PowerModels.jl/stable/
Other
399 stars 148 forks source link

Non-Standard Cost Terms Across Networks #425

Open ccoffrin opened 5 years ago

ccoffrin commented 5 years ago

Explore if a clever use of JuMP expressions can be used to build objective functions where the number of terms is not consistent across multiple networks.

For example when combining two networks, one with a linear and objective and the other with a quadratic objective.

jd-lara commented 5 years ago

We have stored the cost function as an anonymous function in PowerSystems and then just applied it to the JuMPVariable. This automatically generates the appropriate AffineExp, QuadExp or NLExp.