Fix the infeasibility we encounter when adding storage.
What the code is doing
Set the values during pypsa_to_grid conversion in a way that is consistent with TransformGrid. This fixes the underlying issue of initial storage (presumably) violating the JuMP constraint.
Also applied latest black formatting.
Testing
Ran a 2 month pcm with the custom 128 node network, and got storage results files.
Purpose
Fix the infeasibility we encounter when adding storage.
What the code is doing
Set the values during
pypsa_to_grid
conversion in a way that is consistent withTransformGrid
. This fixes the underlying issue of initial storage (presumably) violating the JuMP constraint.Also applied latest black formatting.
Testing
Ran a 2 month pcm with the custom 128 node network, and got storage results files.
Time estimate
10 min