Skip to content

common.cpp provides price information to FOM battery dispatch in $, not $/kWh #694

@brtietz

Description

@brtietz

I did a deep dive into the battery’s merchant plant code this morning and yes, the battery does not dispatch because the cleared capacity is zero:

image

The line in the for loop there is estimating the revenue as (cleared capacity) * (revenue / MWh) – so since all of the cleared capacity is zero all of the revenue is zero. This strikes me as a units error even if the value was non-zero, since this is being put into a $/kWh variable once this function returns to cmod_battery:

image

One possible solution would be to correct the units in common.cpp by just looking at mp_energy_market_revenue_mat.at(j, 1) and then deal with cleared capacity once we handle NatLabRockies/SAM#181 I’d be happy to file the pricing fix as a GitHub issue.

Metadata

Metadata

Assignees

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