calliope-project / calliope-pathways

Pathway optimisation implementation built on top of Calliope v0.7
MIT License
1 stars 2 forks source link

Feature static model #9

Closed irm-codebase closed 7 months ago

irm-codebase commented 7 months ago

Added a test model based on Calliope Italy.

Purpose: to enable testing of pathway features in the most absolute sense. No demand increase, no variable prices. Just decommission and some capacity limits for hydro, waste and geothermal.

Model characteristics:

Additional goodies:

brynpickering commented 7 months ago

The example notebook needs to be cleaned up so it runs successfully in the docs. Also, does the repo requirements file contain the requirements for your pre-processing script?

irm-codebase commented 7 months ago

The example notebook needs to be cleaned up so it runs successfully in the docs. Also, does the repo requirements file contain the requirements for your pre-processing script?

Cleaned, checks work now. As for the requirements: do you use a tool to generate them, or do you add them by hand? I am using pipreqs, but it gives equality requirements, not ranges...

brynpickering commented 7 months ago

Couple of things on model inputs:

  1. I'm seeing some very small numbers in the availability matrix, e.g. 1.976263e-323. You should set number less than a certain value to zero to avoid potential for numerical issues. E.g., 1e-3? (0.01%).
  2. I would switch off new capacity of fossil fuels so that only use of initial capacity is possible. At least then it'll make a more interesting set of new technologies being installed.
irm-codebase commented 7 months ago

Couple of things on model inputs:

1. I'm seeing some very small numbers in the availability matrix, e.g. `1.976263e-323`. You should set number less than a certain value to zero to avoid potential for numerical issues. E.g., 1e-3? (0.01%).

2. I would switch off _new_ capacity of fossil fuels so that only use of initial capacity is possible. At least then it'll make a more interesting set of new technologies being installed.
  1. Nice catch! I added a minimum before zero value to the weibull function.
  2. I would add this as a scenario later. The baseline should be as little constrained as possible. We can also toy around with the prices (oil is likely too low).

The trend is ugly now, but once the initial capacity is fixed the growth will be more interesting. Another interesting limit would be setting a cap on investment that is equal for all technologies.

irm-codebase commented 7 months ago

Hello @brynpickering

I think all the comments have been resolved now... Let me know if there is anything else left to fix. Otherwise, we can integrate this into the main project :)