Skip to content

Dev to Main#35

Merged
bvweerd merged 12 commits intomainfrom
dev
Mar 25, 2026
Merged

Dev to Main#35
bvweerd merged 12 commits intomainfrom
dev

Conversation

@bvweerd
Copy link
Copy Markdown
Owner

@bvweerd bvweerd commented Mar 25, 2026

No description provided.

dependabot Bot and others added 12 commits March 23, 2026 19:48
Bumps [actions/labeler](https://github.com/actions/labeler) from 5 to 6.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](actions/labeler@v5...v6)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Some batteries (e.g. Marstek Venus A) reduce charge/discharge power near
SoC extremes. Adds four optional config fields per battery subentry:
- high_soc_charge_threshold_pct / high_soc_max_charge_kw
- low_soc_discharge_threshold_pct / low_soc_max_discharge_kw

The DP precomputes per-state power limits and skips actions that exceed
them, so backward induction naturally front-loads discharge before the
battery enters the derated zone. The zero-grid controller applies the
same limits in real time. Defaults disable derating for existing configs.

Synced to analyzer.js and simulate_diagnostics.py per CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- test_battery_model: max_charge_at_soc / max_discharge_at_soc boundary
  tests, from_subentry round-trip, and aggregate_battery_configs suite
- test_optimizer: new TestSocDependentDerating class — verifies derated
  power is not exceeded near extremes and full power is available at
  mid-SoC; regression test that unrelated configs are unaffected
- ALGORITHM.md: Section 2 battery config table, Section 3.2 action grid
  note, Section 6 backward pass pseudocode and derating explanation,
  Section 11 numerical considerations row

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/github-script-8

ci: bump actions/github-script from 7 to 8
…/labeler-6

ci: bump actions/labeler from 5 to 6
…slowly rising high priced-hours, instead of shadow price. shadow price stays for hybrid mode
@github-actions github-actions Bot added documentation Improvement or addition to documentation enhancement New feature or improvement labels Mar 25, 2026
@bvweerd bvweerd added the bug Something isn't working as expected label Mar 25, 2026
@bvweerd bvweerd merged commit 4189562 into main Mar 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected documentation Improvement or addition to documentation enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant