we3lab / we3lab/flex-limits

Convex approximation of charge tiers leads to negative shadow costs

Open
#20 1 comment 0 reactions 2 assignees View on GitHub

@fletchapin is already working on this.

Since Jul 24, 2025.

bug
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Issue:
Right now, the charge tier is fixed at the beginning of the optimization problem, if the optimal solution violates this assumption then the actual cost (evaluated in post) may be different (usually higher). This can result in issues in calculating the shadow cost of emissions abatement, especially if the calculated cost-optimal cost is higher than the emissions-optimal cost.

Potential fix:
Two options:

  1. iteratively solve tariffs and re-build the costing equations by re-calculating the consumption dict. After a few iterations, this should make post-optimization cost evaluation = within optimization cost variable. No guarantees.
  2. implement charge tier constraints within the optimization problem (in electric-emission-cost).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.