Skip to content

Pull request 792 broke the use case of capturing clipped energy with flat prices #840

@brtietz

Description

@brtietz

Describe the bug
Prior to https://github.com/NREL/ssc/pull/792/files#, users could simulate a battery that charged from clipped energy and then discharged it later. That pull request broke this behavior by inserting a few instances of > or <. Change these to >= or <=, assess the impact on merchant plant prices, and restore the clipped power behavior if so. If the impact is significant, discuss alternative dispatch code for this case.

To Reproduce
Steps to reproduce the behavior:

  1. Run the attached SAM file in 2021.12.02r1
  2. See that the battery discharges
  3. Run the file in 2021.12.02r2
  4. See that the battery only charges

clipped_energy_flat_price.zip

Expected behavior
Charging from clipped energy is a valid use case that we should continue to support in automated dispatch.

Metadata

Metadata

Assignees

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