New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DowntownOffices model fails to subdivide consumption #1008
Comments
It seems the code that is supposed to adjust capacity for population was commented out for this model. In
But this statement appears in 'AdaptiveCapacityOriginator.useCapacity()', not commented out. This change was made as part of #863, apparently by me. Reasoning is not (yet) clear. |
Two models, WindmillCoOp and HextraChemical, are configured with bundles having count=1 and population>1, and INDIVIDUAL capacityStructures. The model setup for these cases should have created a CapacityOriginator for each member of the population, and was only creating one. A careful look at the WindmillCoOp test case should have shown the disconnect between the expected energy production for a population of 3 in the test case, and the distribution for per-instance production in the config. Apparently, the hack needed to make these cases work at all broke some of the POPULATION models, specifically those, like DowntownOffices, that don't use the AdaptiveCapacityOriginator. A proposed fix is committed on branch i1008. |
Examination of factored-customer config files shows that DowntownOffices is the only population model that would have been affected by this bug, and that is what we see in the 2018 tournament results. |
Updated configuration to handle the case of population > count for INDIVIDUAL models, restored correct distribution of capacity among subscriptions for non-INDIVIDUAL models, added new test case that failed with the original code, ran full system tests. Updates merged into master. |
When a multi-unit customer model subscribes to multiple tariffs, the subscriptions keep track of the population subscribed to a given tariff. The consumption and production numbers are supposed to be subdivided in some reasonably realistic way between the subscribed tariffs. In game 298 of the 2018 finals, DowntownOffices appears to get this wrong. Here's the relevant part of the log, filtered to include only TariffTransactions involving DowntownOffices, customer ID 3357:
Note that the kWh quantities are identical in the transactions for tariff 300768030 and 300769504. One represents a population of 1, while the other represents a population of 29.
This appears to be the cause of extreme capacity assessments in several games in the 2018 competition.
The text was updated successfully, but these errors were encountered: