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.