Skip to content
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

Tariff eval fails with TOU tariff having identical hourly rates #1146

Open
jecollins opened this issue Dec 4, 2022 · 1 comment
Open

Tariff eval fails with TOU tariff having identical hourly rates #1146

jecollins opened this issue Dec 4, 2022 · 1 comment

Comments

@jecollins
Copy link
Member

In the 2022 qualifying round, we have seen ERROR messages in some of the server trace logs. This appears to be caused by a broker issuing a TOU tariff with identical rates for each hour. The broker issuing such a tarriff in at least a few of these games was Mertacor (see games 4 and 5, for example).

Analysis of the game logs indicates that the only impact of this error is that evaluation of the offending tariff by ColdStorage instances fails, but this does not appear to affect other tariffs or other brokers. I have not yet found a case of this with customer models other than ColdStorage, but it's possible. It's caused by computing the price range for the tariff, and then dividing by that value. This causes a divide-by-zero error, of course.

@jecollins
Copy link
Member Author

The problem in this case is in ColdStorage.heuristicTouProfile().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant