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

Removing extra available variables

Open jkiviluo opened this issue 1 year ago • 3 comments

V_units_available is just V_units_invested_available plus existing capacity and is not necessary. Should be replaced with expression.

jkiviluo avatar Apr 12 '23 08:04 jkiviluo

We should keep an eye out for others like this.

clizbe avatar Jan 04 '24 16:01 clizbe

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?

clizbe avatar Feb 23 '24 11:02 clizbe

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.

manuelma avatar Apr 18 '24 09:04 manuelma