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

Tiers without a maximum kWh greater than the kWh consumed give negative bill savings with net billing #1834

Open
brtietz opened this issue Aug 6, 2024 · 1 comment

Comments

@brtietz
Copy link
Collaborator

brtietz commented Aug 6, 2024

Describe the bug

Changing a max tier from 1e38 to 100 in the default commercial model leads to negative bill savings with net billing

To Reproduce

Steps to reproduce the behavior:

  1. Load a behind the meter model
  2. Set the compensation for distributed generation to net billing
  3. Set a maximum tier to 100 kWh (or something lower than the month's usage
  4. Run simulation
  5. The bill savings are negative

Expected behavior

The utility rates module should throw an error in this situation, as the maximum tier is unspecified.

Screenshots

Rate table that causes the error:
image

Bogus bill savings:
image

Operating System and Version

  • OS: Windows
  • Version: Patch candidate 2023.12.17r2

Additional context

I'm fine with deferring this to the release, as it falls more into the category of "better handling of user errors" and is not a bug with a valid utility rate

@brtietz
Copy link
Collaborator Author

brtietz commented Sep 25, 2024

From 9/25 SAM meeting: every period should have a tier with infinite usage. 1e38 comes from floats: possible need to switch to inf in the UI (separate issue).

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

No branches or pull requests

2 participants