Skip to content

test: add feed-in cap recovery case for grid export limit#93

Merged
andig merged 1 commit into
mainfrom
feat/feed-in-cap-test
Jul 19, 2026
Merged

test: add feed-in cap recovery case for grid export limit#93
andig merged 1 commit into
mainfrom
feat/feed-in-cap-test

Conversation

@andig

@andig andig commented Jul 19, 2026

Copy link
Copy Markdown
Member

pairs with evcc-io/evcc#23042

A grid feed-in cap such as the German 70% rule limits export power at the grid connection point. The inverter curtails anything above it and that energy is lost unless a battery charges at that moment. The MILP already models p_max_exp as a soft cap, so this pins the behavior with a data-driven case.

  • New test_cases/022-feed-in-cap-recovery.json: a 6 kWh PV peak against a 2 kW export cap. The optimizer charges the battery with 4 kWh into the peak, exports the capped 2 kW, and curtails nothing (grid_export_overshoot all zero) while staying Optimal.

Covers the German 70% feed-in rule scenario from evcc-io/evcc#23042: with a
grid export cap the battery charges into the PV peak to recover energy that
would otherwise be curtailed, staying feasible.
@andig
andig merged commit b6c835a into main Jul 19, 2026
1 check passed
@andig
andig deleted the feat/feed-in-cap-test branch July 19, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant