assume-framework / assume

ASSUME - Agent-based Simulation for Studying and Understanding Market Evolution
https://assume.readthedocs.io
23 stars 7 forks source link

Redispatch v1 #279

Closed nick-harder closed 8 months ago

nick-harder commented 8 months ago

This commit brings redispatch model into ASSUME. Both cost based and market based redispatch are possible. And clearing can be done using bay as bid or pay as clear mechanisms. This module uses pypsa to model the network, check for congestions, and perform redispatch.

nick-harder commented 8 months ago

@maurerle we have finished the implementation, redispatch.py is now the working version. @rqussous will check again the logic behind the redispatch and network. @maurerle if you could take a look at the integration and meta data, that would be awesome! Thank you all!

codecov[bot] commented 8 months ago

Codecov Report

Attention: 118 lines in your changes are missing coverage. Please review.

Comparison is base (aa6cd9c) 83.86% compared to head (7b183db) 77.09%.

Files Patch % Lines
assume/markets/clearing_algorithms/redispatch.py 4.58% 104 Missing :warning:
assume/strategies/naive_strategies.py 18.75% 13 Missing :warning:
assume/markets/clearing_algorithms/__init__.py 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #279 +/- ## ========================================== - Coverage 83.86% 77.09% -6.77% ========================================== Files 40 41 +1 Lines 4549 4689 +140 ========================================== - Hits 3815 3615 -200 - Misses 734 1074 +340 ``` | [Flag](https://app.codecov.io/gh/assume-framework/assume/pull/279/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | Coverage Δ | | |---|---|---| | [pytest](https://app.codecov.io/gh/assume-framework/assume/pull/279/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | `77.09% <18.05%> (-6.77%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

nick-harder commented 8 months ago

should be reviewed and merged after #295