Skip to content

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

@brtietz

Description

@brtietz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions