Added case for non accepted order in dispatch plan for base unit#628
Added case for non accepted order in dispatch plan for base unit#628ChriKo97 wants to merge 1 commit intoassume-framework:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #628 +/- ##
==========================================
- Coverage 80.32% 80.31% -0.01%
==========================================
Files 53 53
Lines 7694 7696 +2
==========================================
+ Hits 6180 6181 +1
- Misses 1514 1515 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @ChriKo97, could you please explain what leads to that error? According to my current understanding, this should not happen, since even if the orders are rejected, they have an accepted price. |
|
Hi @kim-mskw, currently the accepted_price needs to be set in the clearing mechanism. @maurerle and I decided that it may be useful to allow to not set the accepted_price in the clearing mechanism, as it could be misleading (order is not accepted but has an accepted price). The proposed change in the pull request would allow new clearing mechanism to omit the "accepted_price" key in the returned orderbook |
I am hesitant with this change, as some of the capabilities in Assume, namely the learning, depend on the actual accepted price being set in the clearing , always, despite the non-acceptance of bids. So this would lead to some clearing algorithms not working with some bidding strategies; of course, they do not work with each other all the time. Still, the accepted volume is 0 if nothing is accepted, why the price then misleading? Rather, change the naming instead of making extra cases for different clearing algorithms? |
|
Yes true, this was the reasoning for it. I would still keep this PR open to eventually find a better solution, which conforms with learning. |
Pull Request
Description
Adds new case for not accepted orders preventing errors in set_dispatch_plan method of baseUnit
Changes Proposed
Testing
No testing
Checklist
Please check all applicable items:
docfolder updates)pyproject.tomldoc/release_notes.rstof the upcoming release is included