Policy targets constraints - #42
Conversation
|
All functions can be called smoothly. But, I tried to set |
|
Coming back to this... All constraints including policy targets are actually able to be called and applied nicely. Just don't forget to solve the model first before defining a constraint then resolve it after defining a constraint. Please correct me here. I tried to run three IDN nodes because coal are super intensively used so the results with and without constraints are easily distinguished. I documented the results comparison here. ONe thing to be remembered is: The model is infeasible if it's heavily constrained. |
Policy targets are added as custom linopy constraints in a PyPSA model.
This was first done in the tza-apg repo and has now been brought into this repo and generalised.
The steps to add custom constraints are: