Closed jd-lara closed 5 years ago
yes, we can change this by redefining:
mutable struct ParametrizedAffExpr{C, V} <: JuMP.AbstractJuMPScalar
v::JuMP.GenericAffExpr{C,V}
p::JuMP.GenericAffExpr{C,Parameter}
end
Some other parts of the code will need minor modifications
solved by #45
Currently we use this container for
JuMP.AffineExpression
in order to hold expressions of any type of VariableRefHowever,
ParameterJuMP.ParametrizedAffExpr
only seems to take the type of the number and not the type of variables which leads to the defintionIs there a way to enable
AbstractVariableRef
parametrization inParametrizedAffExpr{Float64,V}
?