Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1566 +/- ##
==========================================
- Coverage 90.88% 90.58% -0.31%
==========================================
Files 61 61
Lines 9121 9176 +55
Branches 9121 9176 +55
==========================================
+ Hits 8290 8312 +22
- Misses 509 542 +33
Partials 322 322 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
From a conversation with Claude: Some thoughts on refining this, from a discussion about how agents should ideally behave (see the new Keeping the overall commodity balance and adding share-ratio constraints between agents seems like a good approach. The dual of the overall balance is still a sensible market price: an extra unit of external demand has to be split between agents by share, so the dual is effectively the share-weighted average of the agents' marginal costs. Demand induced by other agents' assets is also handled automatically. There are three gaps compared with the intended behaviour:
A symmetric formulation that addresses all three: for each market and time-slice selection at the commodity's balance level, add a variable alongside the overall balance, with spill subtracted from supply. Then:
Spill could have zero cost, or a small one to keep the solution unique. Next step: population agentsThe same idea applied one level down would handle population agents, including those responsible for several commodities with fixed-ratio equipment (e.g. a boiler providing both space heating and hot water). Each asset belongs to a group of entities (e.g. a set of households). Equipment bought together as a bundle forms one group. For each group where
The main design choice is how
Consequences: assets need a group identifier, and population agents appraise whole bundles covering all of their commodities (e.g. a combined boiler versus each pairing of a space heater with a water heater). |
Description
Please include a summary of the change and which issue is fixed (if any). Please also
include relevant motivation and context. List any dependencies that are required for
this change.
Fixes # (issue)
Type of change
Key checklist
$ cargo test$ cargo docpresent in the previous release
Further checks