Convex approximation of charge tiers leads to negative shadow costs
Open
@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:
- 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.
- implement charge tier constraints within the optimization problem (in
electric-emission-cost).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.