SpineOpt.jl
SpineOpt.jl copied to clipboard
Removing extra available variables
V_units_available is just V_units_invested_available plus existing capacity and is not necessary. Should be replaced with expression.
We should keep an eye out for others like this.
If I'm understanding it correctly, this constraint determines the value of units_available: constraint_units_available.jl
In that file, it says (simplified): units_available - units_invested_available <= number_of_units
But according to jkiviluo (Juha Kiviluoma) it should be an equality, and therefore can be replaced with an expression.
Which is correct? Or am I misunderstanding the model?
Looking at the formulation, units_available
will always be equal to units_on
in the optimal solution.
We have units_on <= units_available
in a constraint, but it always binds in the solution.
So we could remove units_available
for performance (and keep only units_on
). Will do that now.