CLOVER-energy / CLOVER

CLOVER minigrid simulation and optimisation for supporting rural electrification in developing countries
MIT License
17 stars 3 forks source link

:tada: Include optimisation and threshold criteria in outputs #161

Closed BenWinchester closed 1 year ago

BenWinchester commented 1 year ago

Description

This pull request is being opened to enhance the output files of CLOVER to include the optimisation criteria and threshold criteria used in the output files.

This introduces a small enhancement, rather than a feature, so will be introduced to the current beta release, v5.0.7b2.

The output files from optimisations now contain additional input information:

{
    "optimisation_inputs": {
        "clean_water_pvt_size_max": 0,
        "clean_water_pvt_size_min": 0,
        "clean_water_pvt_size_step": 1,
        ...
        "storage_size_max": 40,
        "storage_size_min": 10,
        "storage_size_step": 30
    },
+   "optimisation_criteria": {
+        "lcue": "minimise"
+    },
+   "threshold_criteria": {
+       "blackouts": 0.05
+    },
    ...

Linked Issues

This pull request:

Unit tests

This pull request does not affect any unit tests.