EnergyModels.jl icon indicating copy to clipboard operation
EnergyModels.jl copied to clipboard

Add support for using ParameterJuMP

Open coroa opened this issue 6 years ago • 2 comments

ParameterJuMP allows defining variables as parameters and then compute dual values for them. Ie if one sets the capacity of a not-extendable generator or line as a parameter one can request the dual of the max generation constraint by querying the dual of the p_nom parameter.

coroa avatar May 28 '19 09:05 coroa

Probably as simple as replacing all occurrences of JuMP.Model with JuMP.AbstractModel, as is already happening in the new moi branch by the introduction of the ModelView layers.

coroa avatar Jun 03 '19 15:06 coroa

The question is: How would the user mark a data parameter as a ParameterJuMP-parameter? The parameter provision functions, i.e. get(::Element, ...) or get(::Data, ...), could maybe check whether something should be a parameter?

coroa avatar Jun 03 '19 15:06 coroa