evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Optimizer: Precondition / late charging support

Open vavo01 opened this issue 3 weeks ago β€’ 12 comments

Description

When the Optimizer is enabled, setting a duration for Late charging in the charging plan strategy has no effect on the calculated charging schedule. While this behavior is likely intentional because the Optimizer takes full control of scheduling the cheapest time slots, the UI still allows users to select and change the Late charging dropdown.

Expected behavior: Just like the Optimization dropdown, the Late charging dropdown should be disabled and greyed out when the Optimizer is active so users can clearly see that this setting is overridden and cannot be used.

​Actual behavior: The Late charging dropdown remains clickable and selectable, giving the impression that a portion of the charge will be shifted right before departure, even though the active plan ignores the setting.

Steps to Reproduce

  1. Enable the Optimizer in evcc. ​2. Open the Charging plans menu for a vehicle and expand the Strategy section. ​3. Observe that the Optimization dropdown is disabled and greyed out. ​4. Click on the Late charging dropdown and select a duration, for example 30 minutes.

evcc debug information

Version: v0.319.0 System: linux/amd64, CET +01:00

Configuration (YAML)

sponsortoken: *****
log: debug
levels:
  site: debug
  tariffs: trace
mqtt:
  broker: 192.168.1.78:1883
  topic: evcc
modbusproxy:
  - port: 5201
    uri: *****
hems:
  type: template
  template: fnn-eebus
  ski: *****
vehicles:
  - name: mini_cardata
    type: template
    template: cardata
    title: Mini Cooper SE
    vin: *****
    capacity: 49.8
    clientid: *****
site:
  title: Konrad

Configuration (UI)

{
  "charger": [
    {"id":16,"name":"db:16","type":"template","config":{"template":"ocpp-goe","chargingprofile":"TxDefaultProfile","connector":"1","connecttimeout":"5m","meterinterval":"10s","remotestart":false,"stationid":"***"},"deviceProduct":"go-e Charger Gemini 2.0 (OCPP)"}
  ],
  "circuit": [
    {"id":15,"name":"db:15","type":"template","config":{"template":"static","maxpower":30000,"meter":"db:3","parent":""},"deviceProduct":"Statischer Stromkreis","deviceTitle":"Hausanschluss"}
  ],
  "country": "",
  "currency": "EUR",
  "eebus": {"config":{"certificate":{"private":"***","public":"***"},"port":4712,"shipid":"***6436"},"status":{"qr":"***","ski":"***587f"}},
  "experimental": true,
  "gridExportLimit": 0,
  "influx": {"database":"","insecure":false,"org":"","password":"","token":"","url":"","user":""},
  "interval": 30,
  "loadpoints": [
    {"id":17,"name":"db:17","alwaysCharge":"off","batteryBoostLimit":100,"charger":"db:16","circuit":"db:15","defaultMode":"off","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"minSoc":0,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"estimate":true,"poll":{"interval":3600000000000,"mode":"charging"}},"solarShare":1,"thresholds":{"disable":{"delay":180000000000,"threshold":0},"enable":{"delay":60000000000,"threshold":0}},"title":"Garage","ui":{"maxTemp":100,"minTemp":0}}
  ],
  "meter": [
    {"id":3,"name":"db:3","type":"template","config":{"id":1,"template":"solaredge-hybrid","host":"192.168.1.13","maxacpower":"0","maxdischargepower":"5000","modbus":"tcpip","port":"502","usage":"grid","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter"},
    {"id":1,"name":"db:1","type":"template","config":{"id":1,"template":"solaredge-hybrid","baudrate":9600,"comset":"8N1","host":"192.168.1.13","maxacpower":4100,"maxdischargepower":"5000","modbus":"tcpip","port":"502","usage":"pv","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SE5000E"},
    {"id":4,"name":"db:4","type":"template","config":{"id":1,"template":"solaredge-hybrid","baudrate":9600,"capacity":10,"comset":"8N1","host":"192.168.1.13","maxacpower":"0","maxchargepower":5000,"maxdischargepower":"5000","maxsoc":"100","minsoc":10,"modbus":"tcpip","port":"502","usage":"battery","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"Battery"}
  ],
  "modbusproxy": [{"port":5201,"settings":{"uri":"192.168.1.13:502"}}],
  "mqtt": {"broker":"192.168.1.78:1883","caCert":"","clientCert":"","clientID":"","clientKey":"","insecure":false,"password":"","topic":"evcc","user":""},
  "ocpp": {"config":{"port":8887},"status":{"stations":[{"id":"403216","status":"connected"}]}},
  "ocppforwarder": {"config":[],"status":[]},
  "optimizer": true,
  "optimizerChargingStrategy": "charge_before_export",
  "remote": {"enabled":true},
  "residualPower": 0,
  "shm": {"deviceId":"","deviceSerial":"","vendorId":""},
  "site": {"aux":null,"battery":["db:4"],"consumer":null,"curtail":null,"ext":null,"grid":"db:3","pv":["db:1"],"title":"Konrad"},
  "tariff": [
    {"id":18,"name":"db:18","type":"template","config":{"template":"fixed","price":0.10800000000000001},"deviceProduct":"Fester Preis"},
    {"id":19,"name":"db:19","type":"template","config":{"template":"solcast","interval":"5h","site":"a7e9-1f35-76ba-535e","token":"***"},"deviceProduct":"Solcast","deviceTitle":"SΓΌd-Ost"},
    {"id":20,"name":"db:20","type":"template","config":{"template":"solcast","interval":"5h","site":"8b90-c9c5-2139-8246","token":"***"},"deviceProduct":"Solcast","deviceTitle":"Nord-West"},
    {"id":22,"name":"db:22","type":"template","config":{"template":"energypriceforecast","apikey":"***","average":true,"charges":0.16399999999999998,"chargesZones":[],"currency":"EUR","horizon":120,"region":"DE","tax":0.19},"deviceProduct":"Energy Price Forecast EU Predicted spot prices"}
  ],
  "tariffRefs": {"co2":"","feedIn":"db:18","grid":"db:22","planner":"","solar":["db:19","db:20"],"temperature":""},
  "vehicle": [
    {"id":13,"name":"db:13","type":"template","config":{"template":"tibber","autodetectdisabled":false,"cache":"15m","capacity":77,"clientid":"*****","clientsecret":"***","climaterdisabled":false,"icon":"car","priority":0,"redirecturi":"http://192.168.1.78:7070/providerauth/callback","title":"Buzzi-tibber","wakeupdisabled":false,"welcomecharge":false},"deviceProduct":"Tibber"}
  ]
}

Version

v0.319.0

System

linux/amd64, CET +01:00

vavo01 avatar Nov 12 '26 22:11 vavo01

Thanks for the suggestion. As far as I can see in the code, the Late charging setting is not ignored when the optimizer is active: applyPrecondition in core/site_optimizer_request.go forces max power during the last precondition window before the plan time (smart mode with an active plan). Only "Optimization" (continuous vs. cheapest) is locked in assets/js/components/ChargingPlans/PlanStrategy.vue, because the optimizer doesn't know "continuous".

So disabling the dropdown would remove a working setting. Could you tell us what you observed after selecting 30 minutes, e.g. whether the planned schedule shows no change at all? A screenshot of the plan preview before and after, plus the log with site: debug for that moment, would help.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Nov 12 '26 22:11 github-actions[bot]

So, if it's intended, I do not see any effect on the plan in the UI as you can see on the screenshots.

Screenshot_20261112-225513.png

Screenshot_20261112-233123.png

vavo01 avatar Nov 12 '26 22:11 vavo01

Thanks for the screenshots. They show the plan preview, but they don't show whether the setting reaches the optimizer. From the code, the precondition is only applied by applyPrecondition in core/site_optimizer_request.go when the loadpoint is in smart mode with an active plan. It is added to the optimizer request, so the displayed optimizer plan (EffectivePlan in core/loadpoint_plan.go) can only change after the optimizer has run again.

Your config shows a flat fixed tariff next to Solcast. With a constant price, a late-charging window of 30 minutes may not move the slots visibly. I can't confirm that from the screenshots alone.

Could you check:

  • Which charge mode was active on the loadpoint, and was the plan active (plan time set)?
  • Does the plan change after the next optimizer cycle, a few minutes after saving?
  • Can you attach a log covering that time with site: debug (you already have this set), together with the optimizer request/response lines?

Until we know the setting is really ignored, I wouldn't disable the dropdown.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Nov 12 '26 22:11 github-actions[bot]

Change mode: smart Plan: active

Even after several refreshes of the optimizer no effect

[site ] DEBUG 2026/11/12 23:30:12 grid power: 2607W
[site ] DEBUG 2026/11/12 23:30:12 grid powers: [2318 155 133]W
[site ] DEBUG 2026/11/12 23:30:12 grid currents: [9.8 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:30:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:30:12 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:30:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:30:12 site power: 2707W
[site ] DEBUG 2026/11/12 23:30:42 ----
[site ] DEBUG 2026/11/12 23:30:42 grid power: 2652W
[site ] DEBUG 2026/11/12 23:30:42 grid powers: [2372 146 133]W
[site ] DEBUG 2026/11/12 23:30:42 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:30:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:30:42 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:30:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:30:42 site power: 2752W
[site ] DEBUG 2026/11/12 23:31:06 ----
[site ] DEBUG 2026/11/12 23:31:07 grid power: 2672W
[site ] DEBUG 2026/11/12 23:31:07 grid powers: [2381 154 136]W
[site ] DEBUG 2026/11/12 23:31:07 grid currents: [10.1 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:31:07 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:31:07 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:31:07 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:31:07 site power: 2772W
[site ] DEBUG 2026/11/12 23:31:12 ----
[site ] DEBUG 2026/11/12 23:31:12 grid power: 2657W
[site ] DEBUG 2026/11/12 23:31:12 grid powers: [2376 145 134]W
[site ] DEBUG 2026/11/12 23:31:12 grid currents: [10.1 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:31:13 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:31:13 pv 1 power: -36W
[site ] DEBUG 2026/11/12 23:31:13 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:31:13 site power: 2757W
[site ] DEBUG 2026/11/12 23:31:42 ----
[site ] DEBUG 2026/11/12 23:31:42 grid power: 2647W
[site ] DEBUG 2026/11/12 23:31:42 grid powers: [2366 145 135]W
[site ] DEBUG 2026/11/12 23:31:42 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:31:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:31:42 pv 1 power: -32W
[site ] DEBUG 2026/11/12 23:31:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:31:42 site power: 2747W
[site ] DEBUG 2026/11/12 23:32:12 ----
[site ] DEBUG 2026/11/12 23:32:12 optimizer: optimizing 386 slots until 2026-11-17 00:00:00 +0100 CET: grid=386, feedIn=578, solar=386, first slot: 12m47s
[site ] DEBUG 2026/11/12 23:32:12 optimizer: home slots updated with measured 688Wh: [226 223 177 183] -> [688 571 432 309]
[site ] DEBUG 2026/11/12 23:32:12 grid power: 2643W
[site ] DEBUG 2026/11/12 23:32:12 grid powers: [2349 160 134]W
[site ] DEBUG 2026/11/12 23:32:12 grid currents: [9.9 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:32:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:32:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:32:12 pv 1 power: -31W
[site ] DEBUG 2026/11/12 23:32:12 site power: 2743W
[site ] DEBUG 2026/11/12 23:32:42 ----
[site ] DEBUG 2026/11/12 23:32:42 grid power: 2644W
[site ] DEBUG 2026/11/12 23:32:42 grid powers: [2360 149 134]W
[site ] DEBUG 2026/11/12 23:32:42 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:32:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:32:43 pv 1 power: -34W
[site ] DEBUG 2026/11/12 23:32:44 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:32:44 site power: 2744W
[site ] DEBUG 2026/11/12 23:33:12 ----
[site ] DEBUG 2026/11/12 23:33:12 grid power: 2637W
[site ] DEBUG 2026/11/12 23:33:12 grid powers: [2357 142 137]W
[site ] DEBUG 2026/11/12 23:33:12 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:33:12 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:33:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:33:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:33:12 site power: 2737W
[site ] DEBUG 2026/11/12 23:33:42 ----
[site ] DEBUG 2026/11/12 23:33:42 grid power: 2633W
[site ] DEBUG 2026/11/12 23:33:42 grid powers: [2355 143 135]W
[site ] DEBUG 2026/11/12 23:33:42 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:33:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:33:42 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:33:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:33:42 site power: 2733W
[site ] DEBUG 2026/11/12 23:34:12 ----
[site ] DEBUG 2026/11/12 23:34:12 grid power: 2620W
[site ] DEBUG 2026/11/12 23:34:12 grid powers: [2343 145 131]W
[site ] DEBUG 2026/11/12 23:34:12 grid currents: [10 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:34:12 pv 1 power: -30W
[site ] DEBUG 2026/11/12 23:34:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:34:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:34:12 site power: 2720W
[site ] DEBUG 2026/11/12 23:34:42 ----
[site ] DEBUG 2026/11/12 23:34:42 grid power: 2650W
[site ] DEBUG 2026/11/12 23:34:42 grid powers: [2359 159 131]W
[site ] DEBUG 2026/11/12 23:34:42 grid currents: [10.1 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:34:43 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:34:43 pv 1 power: -32W
[site ] DEBUG 2026/11/12 23:34:43 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:34:43 site power: 2750W
[site ] DEBUG 2026/11/12 23:35:12 ----
[site ] DEBUG 2026/11/12 23:35:12 grid power: 2631W
[site ] DEBUG 2026/11/12 23:35:12 grid powers: [2353 145 133]W
[site ] DEBUG 2026/11/12 23:35:12 grid currents: [10 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:35:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:35:12 pv 1 power: -29W
[site ] DEBUG 2026/11/12 23:35:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:35:12 site power: 2731W
[site ] DEBUG 2026/11/12 23:35:42 ----
[site ] DEBUG 2026/11/12 23:35:42 grid power: 2639W
[site ] DEBUG 2026/11/12 23:35:42 grid powers: [2359 144 134]W
[site ] DEBUG 2026/11/12 23:35:42 grid currents: [10 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:35:42 pv 1 power: -32W
[site ] DEBUG 2026/11/12 23:35:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:35:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:35:42 site power: 2739W
[site ] DEBUG 2026/11/12 23:36:12 ----
[site ] DEBUG 2026/11/12 23:36:12 grid power: 2629W
[site ] DEBUG 2026/11/12 23:36:12 grid powers: [2353 141 134]W
[site ] DEBUG 2026/11/12 23:36:12 grid currents: [10.1 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:36:13 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:36:13 pv 1 power: -29W
[site ] DEBUG 2026/11/12 23:36:14 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:36:14 site power: 2729W
[site ] DEBUG 2026/11/12 23:36:35 optimizer: optimizing 386 slots until 2026-11-17 00:00:00 +0100 CET: grid=386, feedIn=578, solar=386, first slot: 8m24s
[site ] DEBUG 2026/11/12 23:36:35 optimizer: home slots updated with measured 688Wh: [226 223 177 183] -> [688 571 432 309]
[site ] DEBUG 2026/11/12 23:36:42 ----
[site ] DEBUG 2026/11/12 23:36:42 grid power: 2655W
[site ] DEBUG 2026/11/12 23:36:42 grid powers: [2366 154 134]W
[site ] DEBUG 2026/11/12 23:36:42 grid currents: [10.1 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:36:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:36:42 pv 1 power: -29W
[site ] DEBUG 2026/11/12 23:36:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:36:42 site power: 2755W
[site ] DEBUG 2026/11/12 23:37:12 ----
[site ] DEBUG 2026/11/12 23:37:12 grid power: 2650W
[site ] DEBUG 2026/11/12 23:37:12 grid powers: [2359 151 139]W
[site ] DEBUG 2026/11/12 23:37:12 grid currents: [10.1 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:37:12 pv 1 power: -32W
[site ] DEBUG 2026/11/12 23:37:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:37:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:37:12 site power: 2750W
[site ] DEBUG 2026/11/12 23:37:42 ----
[site ] DEBUG 2026/11/12 23:37:42 grid power: 2639W
[site ] DEBUG 2026/11/12 23:37:42 grid powers: [2358 149 131]W
[site ] DEBUG 2026/11/12 23:37:42 grid currents: [10.1 0.8 1.2]A
[site ] DEBUG 2026/11/12 23:37:42 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:37:42 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:37:42 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:37:42 site power: 2739W
[site ] DEBUG 2026/11/12 23:38:12 ----
[site ] DEBUG 2026/11/12 23:38:12 grid power: 2672W
[site ] DEBUG 2026/11/12 23:38:12 grid powers: [2385 153 133]W
[site ] DEBUG 2026/11/12 23:38:12 grid currents: [10.2 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:38:12 pv 1 power: -30W
[site ] DEBUG 2026/11/12 23:38:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:38:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:38:12 site power: 2772W
[site ] DEBUG 2026/11/12 23:38:42 ----
[site ] DEBUG 2026/11/12 23:38:42 grid power: 2662W
[site ] DEBUG 2026/11/12 23:38:42 grid powers: [2372 158 131]W
[site ] DEBUG 2026/11/12 23:38:42 grid currents: [10.2 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:38:43 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:38:43 pv 1 power: -32W
[site ] DEBUG 2026/11/12 23:38:45 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:38:45 site power: 2762W
[site ] DEBUG 2026/11/12 23:39:12 ----
[site ] DEBUG 2026/11/12 23:39:12 grid power: 2666W
[site ] DEBUG 2026/11/12 23:39:12 grid powers: [2381 154 130]W
[site ] DEBUG 2026/11/12 23:39:12 grid currents: [10.2 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:39:12 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:39:12 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:39:12 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:39:12 site power: 2766W
[site ] DEBUG 2026/11/12 23:39:42 ----
[site ] DEBUG 2026/11/12 23:39:42 grid power: 2654W
[site ] DEBUG 2026/11/12 23:39:42 grid powers: [2374 147 132]W
[site ] DEBUG 2026/11/12 23:39:42 grid currents: [10.2 0.9 1.2]A
[site ] DEBUG 2026/11/12 23:39:43 battery 1 power: -0W
[site ] DEBUG 2026/11/12 23:39:43 pv 1 power: -33W
[site ] DEBUG 2026/11/12 23:39:43 battery 1 soc: 12%
[site ] DEBUG 2026/11/12 23:39:43 site power: 2754W

vavo01 avatar Nov 12 '26 22:11 vavo01

Thanks for the log. It only contains site lines, and the optimizer lines don't show the loadpoint demand, so it doesn't tell whether late charging reaches the optimizer.

What the code does: applyPrecondition in core/site_optimizer_request.go is only called for a loadpoint in smart mode that is automatic (see site.AutomaticLoadpoints()). It forces max power into the slots of the last late-charging window before the plan time, and the UI plan preview (server/http_loadpoint_handler.go) shows the optimizer's result via EffectivePlan. With a flat fixed tariff and a small battery at 12%, the optimizer may legitimately place those slots where they already are, so no visible change is possible. I can't confirm a defect from this data.

Could you provide:

  • A log with loadpoint: debug in addition to site: debug, covering saving the plan with late charging at 30 min and the next optimizer run (lines starting with plan: / optimizer:).
  • The plan time and target (SoC or energy), and whether the plan preview shows the same charging slots with late charging set to "No" vs 30 min, ideally with a plan time a few hours away and a tariff with varying prices.

Until then the dropdown stays as is, since the setting is evaluated by the optimizer.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Nov 12 '26 22:11 github-actions[bot]

Optimizer request

{
  "batteries": [
    {
      "c_max": 11040,
      "c_min": 1380,
      "charge_from_grid": true,
      "d_max": 0,
      "p_a": 0.00022128677,
      "p_demand": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2153.4407, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 606.5595, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "s_goal": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "s_initial": 20500.434,
      "s_max": 49800,
      "s_min": 0
    },
    {
      "c_max": 5000,
      "c_min": 0,
      "charge_from_grid": true,
      "d_max": 5000,
      "p_a": 0.00022128677,
      "s_capacity": 10000,
      "s_initial": 1199.9109,
      "s_max": 10000,
      "s_min": 1000
    }
  ],
  "eta_c": 0.9,
  "eta_d": 0.9,
  "grid": {
    "p_max_imp": 30000
  },
  "strategy": {
    "charging_strategy": "charge_before_export",
    "discharging_strategy": "discharge_before_import"
  },
  "time_series": {
    "dt": [197, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600],
    "ft": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8.729201, 26.187603, 43.646004, 61.10441, 93.91234, 142.06981, 190.22726, 238.38474, 274.30313, 297.98245, 321.66177, 345.3411, 361.3518, 369.69388, 378.03598, 386.37805, 386.5243, 378.4747, 370.4251, 362.37552, 348.04846, 327.44397, 306.83948, 286.23495, 264.76898, 242.44148, 220.114, 197.78651, 175.73431, 153.9574, 132.18048, 110.403564, 90.60402, 72.781845, 54.95968, 37.13751, 24.73376, 17.748434, 10.763106, 3.7777789, 0.24947597, 0.17819712, 0.106918275, 0.035639424, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4.9428196, 14.828458, 24.714098, 34.599735, 63.446777, 111.25522, 159.06366, 206.87212, 243.7884, 269.81256, 295.8367, 321.86087, 339.8219, 349.71985, 359.61777, 369.5157, 373.36475, 371.16495, 368.96512, 366.76532, 360.23224, 349.3659, 338.49957, 327.63324, 311.30667, 289.51993, 267.7332, 245.94644, 220.66087, 191.87651, 163.09215, 134.30779, 109.51012, 88.69915, 67.88818, 47.07722, 32.124638, 23.030441, 13.936244, 4.842046, 0.25807858, 0.18434185, 0.110605106, 0.03686837, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19.328857, 159.36967, 437.5833, 698.69, 780.11505, 622.3577, 374.16974, 196.31671, 86.91103, 21.373821, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13.823181, 92.14143, 223.01923, 447.7295, 635.3944, 541.60126, 402.20932, 273.39618, 94.245384, 13.823181, 0, 0, 0, 0, 0, 0, 0],
    "gt": [150.5133, 571.4668, 432.35672, 308.9915, 183.7332, 230.05385, 198.59865, 147.2308, 143.9392, 150.48563, 165.55647, 185.203, 184.72041, 174.82591, 211.00145, 221.4672, 222.64275, 217.65431, 167.35855, 165.18692, 161.73172, 141.32846, 165.78789, 248.11604, 332.7224, 330.7841, 306.6314, 269.45035, 252.88878, 242.12846, 219.21439, 189.11224, 169.37029, 178.15071, 168.23975, 189.5032, 222.46687, 201.28009, 218.16798, 251.02187, 206.9499, 201.2793, 262.07318, 300.8013, 277.35535, 232.93831, 254.07568, 263.79788, 270.65845, 247.81659, 369.49838, 364.18762, 349.9164, 364.394, 465.15326, 407.73825, 333.5181, 277.83054, 249.1842, 232.74057, 206.671, 221.24084, 197.83934, 205.9378, 187.4281, 172.2269, 181.33458, 189.44254, 222.02353, 239.66139, 235.73659, 238.4562, 238.03058, 248.15453, 259.57315, 310.57764, 370.47266, 335.78735, 354.20877, 307.65927, 276.3787, 237.94783, 203.6688, 223.60184, 244.8539, 241.67323, 225.64037, 223.78415, 334.65594, 416.57367, 289.2606, 273.7713, 267.49567, 268.48602, 264.31485, 249.29185, 226.13495, 222.99449, 177.08917, 182.78058, 183.7332, 230.05385, 198.59865, 147.2308, 143.9392, 150.48563, 165.55647, 185.203, 184.72041, 174.82591, 211.00145, 221.4672, 222.64275, 217.65431, 167.35855, 165.18692, 161.73172, 141.32846, 165.78789, 248.11604, 332.7224, 330.7841, 306.6314, 269.45035, 252.88878, 242.12846, 219.21439, 189.11224, 169.37029, 178.15071, 168.23975, 189.5032, 222.46687, 201.28009, 218.16798, 251.02187, 206.9499, 201.2793, 262.07318, 300.8013, 277.35535, 232.93831, 254.07568, 263.79788, 270.65845, 247.81659, 369.49838, 364.18762, 349.9164, 364.394, 465.15326, 407.73825, 333.5181, 277.83054, 249.1842, 232.74057, 206.671, 221.24084, 197.83934, 205.9378, 187.4281, 172.2269, 181.33458, 189.44254, 222.02353, 239.66139, 235.73659, 238.4562, 238.03058, 248.15453, 259.57315, 310.57764, 370.47266, 335.78735, 354.20877, 307.65927, 276.3787, 237.94783, 203.6688, 223.60184, 244.8539, 241.67323, 225.64037, 223.78415, 334.65594, 416.57367, 289.2606, 273.7713, 267.49567, 268.48602, 264.31485, 249.29185, 226.13495, 222.99449, 773.6568, 640.2543, 710.3058, 872.7657, 635.60565, 1077.4104, 1071.099, 755.8476, 781.4899, 877.41907, 1073.1682, 1036.3486, 1447.9965, 1484.2401, 909.8366, 763.4321, 832.46204, 960.3779, 1276.4108, 1176.1946, 913.7977, 1200.654, 1099.0135, 962.73615, 773.6568, 640.2543, 710.3058, 872.7657, 635.60565, 1077.4104, 1071.099, 755.8476, 781.4899, 877.41907, 1073.1682, 1036.3486, 1447.9965, 1484.2401, 909.8366, 763.4321, 832.46204, 960.3779, 1276.4108, 1176.1946, 913.7977, 1200.654, 1099.0135, 962.73615],
    "p_E": [0.00010800001, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108, 0.000108],
    "p_N": [0.00036206108, 0.0003620611, 0.0003670793, 0.0003670793, 0.0003670793, 0.0003670793, 0.00036654618, 0.00036654618, 0.00036654618, 0.00036654618, 0.00035886234, 0.00035886234, 0.00035886234, 0.00035886234, 0.0003570536, 0.0003570536, 0.0003570536, 0.0003570536, 0.0003579163, 0.0003579163, 0.0003579163, 0.0003579163, 0.00036717093, 0.00036717093, 0.00036717093, 0.00036717093, 0.00039840842, 0.00039840842, 0.00039840842, 0.00039840842, 0.00043452613, 0.00043452613, 0.00043452613, 0.00043452613, 0.00043573874, 0.00043573874, 0.00043573874, 0.00043573874, 0.00037414432, 0.00037414432, 0.00037414432, 0.00037414432, 0.0003312484, 0.0003312484, 0.0003312484, 0.0003312484, 0.00030639526, 0.00030639526, 0.00030639526, 0.00030639526, 0.00030286095, 0.00030286095, 0.00030286095, 0.00030286095, 0.00031439206, 0.00031439206, 0.00031439206, 0.00031439206, 0.00034485606, 0.00034485606, 0.00034485606, 0.00034485606, 0.0003903557, 0.0003903557, 0.0003903557, 0.0003903557, 0.0004411806, 0.0004411806, 0.0004411806, 0.0004411806, 0.000464338, 0.000464338, 0.000464338, 0.000464338, 0.00045702548, 0.00045702548, 0.00045702548, 0.00045702548, 0.00045137294, 0.00045137294, 0.00045137294, 0.00045137294, 0.00043417388, 0.00043417388, 0.00043417388, 0.00043417388, 0.0004001137, 0.0004001137, 0.0004001137, 0.0004001137, 0.0004360041, 0.0004360041, 0.0004360041, 0.0004360041, 0.0004112188, 0.0004112188, 0.0004112188, 0.0004112188, 0.000406529, 0.000406529, 0.000406529, 0.000406529, 0.00040555437, 0.00040555437, 0.00040555437, 0.00040555437, 0.00039871427, 0.00039871427, 0.00039871427, 0.00039871427, 0.00040056946, 0.00040056946, 0.00040056946, 0.00040056946, 0.0003988416, 0.0003988416, 0.0003988416, 0.0003988416, 0.0004041145, 0.0004041145, 0.0004041145, 0.0004041145, 0.0004115127, 0.0004115127, 0.0004115127, 0.0004115127, 0.00042219652, 0.00042219652, 0.00042219652, 0.00042219652, 0.00043978472, 0.00043978472, 0.00043978472, 0.00043978472, 0.00042352692, 0.00042352692, 0.00042352692, 0.00042352692, 0.0003975326, 0.0003975326, 0.0003975326, 0.0003975326, 0.00038647512, 0.00038647512, 0.00038647512, 0.00038647512, 0.0003734827, 0.0003734827, 0.0003734827, 0.0003734827, 0.00034765492, 0.00034765492, 0.00034765492, 0.00034765492, 0.00037954337, 0.00037954337, 0.00037954337, 0.00037954337, 0.0004110974, 0.0004110974, 0.0004110974, 0.0004110974, 0.00046401197, 0.00046401197, 0.00046401197, 0.00046401197, 0.00049401424, 0.00049401424, 0.00049401424, 0.00049401424, 0.00049264455, 0.00049264455, 0.00049264455, 0.00049264455, 0.00048220347, 0.00048220347, 0.00048220347, 0.00048220347, 0.000457699, 0.000457699, 0.000457699, 0.000457699, 0.00042412075, 0.00042412075, 0.00042412075, 0.00042412075, 0.00041409736, 0.00041409736, 0.00041409736, 0.00041409736, 0.00039814546, 0.00039814546, 0.00039814546, 0.00039814546, 0.00038458657, 0.0003757449, 0.00037330182, 0.000361165, 0.00035054545, 0.00035501985, 0.00036170287, 0.00035892898, 0.0003608306, 0.00034988142, 0.00031324013, 0.00027406175, 0.00025604278, 0.00024835777, 0.00026063857, 0.00029197126, 0.00034380762, 0.00037314472, 0.000375658, 0.0003760876, 0.00035875168, 0.0003322861, 0.00032621948, 0.00032406795, 0.00029118225, 0.00029110967, 0.00028854288, 0.00028627948, 0.0003100545, 0.00035270647, 0.00039667104, 0.0004253774, 0.0004380973, 0.0004276729, 0.00042336274, 0.00041686057, 0.00041376895, 0.00041421043, 0.00041938337, 0.0004276134, 0.0004426693, 0.0004611738, 0.0004723324, 0.0004665621, 0.00044680096, 0.0004192715, 0.00041125686, 0.0003917218]
  }
}

Optimizer response

{
  "batteries": [
    {
      "charging_power": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2195.0732, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 2760, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "discharging_power": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "state_of_charge": [20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 20500.434, 22476, 24960, 27444, 29928, 32412, 34896, 37380, 39864, 42348, 44832, 47316, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800, 49800]
    },
    {
      "charging_power": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37.10465, 56.13515, 46.96058, 114.71187, 144.0618, 99.27862, 68.89258, 100.68063, 153.43974, 428.73438, 1250, 1250, 1250, 1250, 1250, 1250, 1250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5.59203, 25.62042, 18.79069, 88.8868, 120.58157, 77.74872, 48.91855, 82.26242, 136.5774, 119.28907, 107.36707, 98.30667, 118.94873, 0, 0, 0, 0, 0, 687.9338, 1250, 1250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5000, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 341.70493, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "discharging_power": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25.9194, 0, 0, 0, 74.32741, 47.43339, 32.23961, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156.60081, 171.6941, 211.26042, 235.8836, 235.4871, 238.278, 237.92366, 248.1189, 259.57315, 310.57764, 370.47266, 335.78735, 354.20877, 307.65927, 276.3787, 237.94783, 203.6688, 223.60184, 244.8539, 241.67323, 0, 0, 0, 0, 289.2606, 273.7713, 267.49567, 268.48602, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104.79297, 78.24798, 63.40321, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149.20995, 166.4121, 208.0873, 234.81934, 235.47852, 238.27187, 237.91997, 248.11766, 259.57315, 310.57764, 370.47266, 335.78735, 354.20877, 307.65927, 276.3787, 237.94783, 203.6688, 223.60184, 244.8539, 241.67323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 960.3779, 1276.4108, 1176.1946, 913.7977, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 742.0244, 689.34845, 654.39984, 199.6207, 0, 0, 0, 0, 669.1867, 818.63885, 960.3779, 1276.4108, 1176.1946, 913.7977, 0, 0, 0],
      "state_of_charge": [1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1199.9109, 1171.1116, 1171.1116, 1171.1116, 1171.1116, 1088.5256, 1035.8218, 1000, 1033.3942, 1083.9158, 1126.1803, 1229.421, 1359.0767, 1448.4274, 1510.4307, 1601.0433, 1739.1392, 2125, 3250, 4375, 5500, 6625, 7750, 8875, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 9825.999, 9635.228, 9400.494, 9138.401, 8876.749, 8611.995, 8347.636, 8071.948, 7783.5337, 7438.4473, 7026.811, 6653.714, 6260.149, 5918.305, 5611.218, 5346.831, 5120.532, 4872.086, 4600.026, 4331.5005, 4331.5005, 4331.5005, 4331.5005, 4331.5005, 4010.0996, 3705.9092, 3408.692, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 3110.374, 2993.9375, 2906.995, 2836.547, 2841.58, 2864.6384, 2881.55, 2961.548, 3070.0715, 3140.0454, 3184.072, 3258.1084, 3381.0278, 3488.3882, 3585.0186, 3673.4944, 3780.5483, 3780.5483, 3780.5483, 3780.5483, 3780.5483, 3780.5483, 4399.6885, 5524.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6649.6885, 6483.9, 6298.9976, 6067.7896, 5806.879, 5545.2363, 5280.4897, 5016.1343, 4740.4478, 4452.033, 4106.9473, 3695.3108, 3322.2136, 2928.6484, 2586.8047, 2279.7173, 2015.3309, 1789.0322, 1540.5857, 1268.5258, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 5500, 10000, 10000, 10000, 10000, 8932.913, 7514.679, 6207.7964, 5192.466, 5192.466, 5192.466, 5192.466, 5192.466, 5192.466, 5500, 10000, 10000, 10000, 10000, 9175.528, 8409.586, 7682.4746, 7460.674, 7460.674, 7460.674, 7460.674, 7460.674, 6717.1333, 5807.534, 4740.4478, 3322.2136, 2015.3308, 1000, 1000, 1000, 1000]
    }
  ],
  "flow_direction": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "grid_export": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "grid_import": [150.5133, 571.4668, 432.35672, 308.9915, 183.7332, 230.05385, 198.59865, 147.2308, 143.9392, 150.48563, 2360.63, 2945.203, 2944.7205, 2934.826, 2971.0015, 2981.4673, 2982.6426, 2977.6543, 2927.3584, 2925.187, 2921.7317, 2901.3286, 165.78789, 248.11604, 332.7224, 330.7841, 306.6314, 269.45035, 252.88878, 242.12846, 184.5658, 162.92464, 125.72429, 117.0463, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 296.28577, 1135.3232, 1150.2333, 1135.441, 1271.45, 1286.7437, 1293.0769, 1328.159, 200.38428, 165.29677, 113.4041, 80.04403, 73.44989, 78.78317, 74.49052, 110.83728, 107.23532, 133.15596, 132.46841, 135.08939, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225.64037, 223.78415, 334.65594, 416.57367, 0, 0, 0, 0, 264.31485, 249.29185, 226.13495, 222.99449, 177.08917, 182.78058, 183.7332, 230.05385, 198.59865, 147.2308, 143.9392, 150.48563, 165.55647, 185.203, 184.72041, 174.82591, 211.00145, 221.4672, 222.64275, 217.65431, 167.35855, 165.18692, 161.73172, 141.32846, 165.78789, 248.11604, 332.7224, 330.7841, 306.6314, 269.45035, 252.88878, 242.12846, 214.27158, 174.28378, 144.65619, 143.55096, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.26614, 14.82172, 11.41683, 36.76076, 153.84659, 806.1521, 1315.7849, 1281.8842, 28.52333, 40.86406, 43.57885, 86.93305, 88.32922, 117.23865, 119.53992, 125.14968, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225.64037, 223.78415, 334.65594, 416.57367, 289.2606, 273.7713, 267.49567, 268.48602, 264.31485, 249.29185, 226.13495, 222.99449, 773.6568, 640.2543, 710.3058, 872.7657, 635.60565, 1077.4104, 1071.099, 736.51874, 622.12024, 439.8358, 374.4782, 256.23355, 5825.6387, 6110.0703, 713.5199, 676.52106, 811.0882, 0, 0, 0, 0, 1200.654, 1099.0135, 962.73615, 773.6568, 640.2543, 1052.0107, 5872.7656, 635.60565, 1077.4104, 1071.099, 0, 0, 0, 425.818, 400.9542, 906.39526, 1082.0308, 636.4404, 0, 0, 0, 0, 0, 0, 1200.654, 1099.0135, 962.73615],
  "grid_import_overshoot": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "limit_violations": {},
  "objective_value": -31.426004,
  "status": "Optimal"
}

vavo01 avatar Nov 12 '26 22:11 vavo01

Thanks for the request/response. They show the setting does reach the optimizer: p_demand of the vehicle battery is non-zero for slots 22 to 30, ending at the slot with s_goal (the plan time). That is what applyPrecondition in core/site_optimizer_request.go produces. In the response the vehicle is charged earlier (slots 10 to 21, until full) and nothing is charged in 22 to 30, so the optimizer is free to ignore the demand window when the energy is delivered before the plan time. That would explain why the displayed plan does not change, so I would not call the dropdown a no-op or disable it.

One thing I can't reconcile: 30 minutes of late charging should cover about 2 slots, but the demand spans about 9 slots (roughly 2h). Could you confirm which value was saved when this request was captured, and post the loadpoint: debug log (plan: lines) for the same moment?

πŸ€– Generated with Claude Code

github-actions[bot] avatar Nov 12 '26 22:11 github-actions[bot]

It was set for 2h.

My expection is, that charging stopps before reaching the target soc. Then finalize it within selected time span of late charging.

vavo01 avatar Nov 12 '26 22:11 vavo01

Thanks, that clarifies the expectation. With the 2h value the request matches the code: applyPrecondition in core/site_optimizer_request.go writes max-power p_demand into the last 2h before the plan time, so the setting reaches the optimizer and the dropdown is not a no-op.

What you expect (charging stops early, the rest is finished inside the late-charging window) is different from what is implemented. The window is only passed as demand to the optimizer, there is no hard constraint that charging must happen inside it. If the optimizer reaches the target SoC earlier (here: slots 10 to 21 with a flat tariff), the window stays unused, so the plan preview does not change. I can't see anything in the request that points to a defect, so this reads as a limitation of how late charging is combined with the optimizer, i.e. a feature request, rather than a bug. Disabling the dropdown would not help, since it does take effect in other situations.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Nov 12 '26 22:11 github-actions[bot]

The note for Late charging suggests a hard constraint so that the battery is warm shortly before departure. However, the optimizer apparently treats it as a soft condition. There seems to be a contradiction here.

vavo01 avatar Nov 12 '26 23:11 vavo01

I was able to reproduce this. The optimizer seems to ignore precondition setting if he's able to fill the slots with cheaper energy first. We only disabled "strategy" on optimizer since "late charging" was assumed to be supported. See https://github.com/evcc-io/evcc/issues/35210

@andig you've added precondition support with https://github.com/evcc-io/evcc/pull/32872 to the optimizer, but it doesn't seem to work right now.

\cc @ekkea @iseeberg79

naltatis avatar Nov 16 '26 11:11 naltatis

Analysis of why late charging is skipped. Data from my instance (0.320.0-dev.1794708712): 68 kWh vehicle at 49 %, plan 80 % at 07:00, late charging 2 h, limit 100 %.

Slots Price p_demand Planned charging Level after
01:15 to 05:00 19.4 ct none full power 68.0 kWh (100 %)
05:00 to 07:00 31.3 ct 2750 Wh per slot 0 68.0 kWh

Cause

  • applyPrecondition sends the late window as p_demand. The setting does reach the optimizer.
  • p_demand means "charge at least this much in this slot, unless the battery is at s_max" (z_s_max_reached). That fits fast mode, minimum charging and the price limit, which it was built for.
  • Late charging needs something else: keep energy out of the vehicle until the window. p_demand says nothing about the slots before the window.
  • So the solver fills the vehicle to s_max in the cheap slots, here even beyond the 80 % goal, and the window demand is dropped without penalty.

It only works when charging early is not cheaper (flat prices), which is probably why it went unnoticed.

Possible fix

A per-slot upper bound on the charge level: before the window, the level may not exceed the goal minus the energy reserved for the window. evcc can only send one scalar s_max today, so this needs an optimizer API addition.

I prototyped this locally (one optional field, one linear constraint, no extra binaries) and replayed the request below. Result: charging 04:45 to 07:00, level at plan time 54.4 kWh (the 80 % goal). With the cap the window p_demand becomes redundant. Tested with HiGHS only, not CBC.

Optimizer request
{"batteries":[{"c_max":11000,"c_min":1380,"charge_from_grid":true,"d_max":0,"p_a":0.000172854,"p_demand":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2062.897,2750,2750,2750,2750,2750,2750,2750,687.1031,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"s_goal":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54400,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"s_initial":33320,"s_max":68000,"s_min":0},{"c_max":9500,"c_min":0,"charge_from_grid":true,"d_max":9500,"p_a":0.000172854,"s_capacity":22400,"s_initial":14380.8,"s_max":22400,"s_min":0}],"eta_c":0.9,"eta_d":0.9,"grid":{},"strategy":{"charging_strategy":"charge_before_export","discharging_strategy":"discharge_before_import"},"time_series":{"dt":[224,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,3600,3600,3600,3600,3600,3600,3600,3600,3600,3600,3600],"ft":[99.76923,510.04044,523.0838,454.4937,359.36713,288.8655,282.90604,254.45801,149.77379,171.3628,306.85635,300.10977,180.69554,89.392006,43.965126,22.938328,10.232293,2.8110695,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.1244278,5.734582,12.14382,16.866417,21.8139,27.998253,32.383522,35.419476,40.704285,47.563297,53.41032,58.24536,62.180855,64.54215,65.21681,64.879486,64.31727,64.54215,65.55414,66.2288,69.264755,79.83437,96.13857,111.543236,118.51469,111.43079,94.9017,77.0233,60.831543,47.001083,34.969704,23.612984,13.155806,5.172368,1.0119851,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.5622139,5.8470244,20.352142,43.6278,76.34865,119.076904,165.51578,208.6938,247.03679,282.3438,315.402,345.19934,372.86026,400.97095,429.1941,454.83105,477.43204,498.45883,516.8995,530.505,533.0912,1847.7722,1201.3386,510.26532,29.797337,0,0,0,0,0,0,0],"gt":[29.009104,180.46182,337.71802,469.38678,408.5749,230.15225,198.03838,178.63606,215.97456,232.07239,226.30911,243.33801,270.21057,257.93732,250.56012,233.21156,232.21156,236.16519,180.21042,176.50487,205.50378,214.11134,223.31654,237.26381,250.16151,262.83447,259.9803,268.46994,310.31375,262.97427,269.59604,249.68456,255.76053,228.08508,234.63889,231.1126,238.00705,251.77946,211.99536,204.56526,172.6972,157.72127,142.28488,159.19492,156.1976,124.96195,123.163994,111.129585,102.820694,107.54648,99.488075,102.37999,94.45277,98.48047,94.910225,91.62343,91.47528,92.11966,90.64206,89.310936,94.712685,87.717384,89.451965,92.454865,101.287704,101.987785,110.63601,116.428696,107.15523,114.72215,106.6555,118.11048,138.05232,133.57372,160.1954,248.46527,239.13994,231.27301,219.71544,240.7771,316.5964,271.13998,331.05948,264.15878,281.02747,215.993,186.0502,213.32585,182.61156,233.93465,276.38712,247.59756,224.87248,252.69313,252.2005,234.37865,244.34917,372.184,558.8816,586.99756,408.5749,230.15225,198.03838,178.63606,215.97456,232.07239,226.30911,243.33801,270.21057,257.93732,250.56012,233.21156,232.21156,236.16519,180.21042,176.50487,205.50378,214.11134,223.31654,237.26381,250.16151,262.83447,259.9803,268.46994,310.31375,262.97427,269.59604,249.68456,255.76053,228.08508,234.63889,231.1126,238.00705,251.77946,211.99536,204.56526,172.6972,157.72127,142.28488,159.19492,156.1976,124.96195,123.163994,111.129585,102.820694,107.54648,99.488075,102.37999,94.45277,98.48047,94.910225,91.62343,91.47528,92.11966,90.64206,89.310936,94.712685,87.717384,89.451965,92.454865,101.287704,101.987785,110.63601,116.428696,107.15523,114.72215,106.6555,118.11048,138.05232,133.57372,160.1954,248.46527,239.13994,231.27301,219.71544,240.7771,316.5964,271.13998,331.05948,264.15878,281.02747,215.993,186.0502,213.32585,182.61156,233.93465,276.38712,247.59756,224.87248,252.69313,252.2005,234.37865,244.34917,372.184,558.8816,586.99756,1015.4016,917.6941,1011.91956,825.09204,880.19543,1041.4462,1092.5686,949.5971,906.3471,631.89825,515.4531],"p_E":[0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011,0.00011],"p_N":[0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.000194,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133,0.0003133]},"uncertainty":{"budget":8,"ft_dev":0.3,"gt_dev":0.5}}
Optimizer response
{"batteries":[{"charging_power":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,2438.3333,2750,2750,2750,2750,2750,2750,2750,2750,2750,2750,2750,2750,2750,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"discharging_power":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"state_of_charge":[33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33320,33630.5,35825,38300,40775,43250,45725,48200,50675,53150,55625,58100,60575,63050,65525,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000,68000]},{"charging_power":[70.760124,329.5786,185.36578,0,0,58.71325,84.86766,75.82195,0,0,80.54724,56.77176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2267.0205,2375,2375,2375,2375,2375,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292.81277,2375,2375,2375,2375,2375,2375,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22.6436,33.71094,99.73224,81.46735,68.81222,125.2627,176.09846,176.50098,202.63055,243.05339,254.10966,144.7155,0,0,832.3706,283.6445,0,0,0,0,0,0,0,0,0],"discharging_power":[0,0,0,14.89308,49.20777,0,0,0,66.20077,60.70959,0,0,89.51503,168.5453,206.59499,210.27322,221.97926,233.35413,180.21042,176.50487,205.50378,214.11134,223.31654,237.26381,250.16151,262.83447,259.9803,268.46994,310.31375,262.97427,269.59604,249.68456,255.76053,228.08508,234.63889,231.1126,238.00705,251.77946,211.99536,204.56526,172.6972,157.72127,142.28488,159.19492,156.1976,124.96195,123.16399,111.12959,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,107.15523,114.72215,106.6555,118.11048,138.05232,133.57372,160.1954,248.46527,239.13994,231.27301,219.71544,239.65266,310.86182,258.99615,314.19305,242.34488,253.02922,183.60948,150.63072,172.62157,135.04826,180.52432,218.14175,185.41672,160.33034,187.47632,187.32101,170.06139,179.80702,306.62985,492.6528,517.7328,328.74054,134.01369,86.49515,60.12137,104.54377,137.17068,149.28581,182.50647,223.20949,222.96762,226.94714,220.05576,227.03918,235.1532,180.21042,176.50487,205.50378,214.11134,223.31654,237.26381,250.16151,262.83447,259.9803,268.46994,310.31375,262.97427,269.59604,249.68456,255.76053,228.08508,234.63889,231.1126,238.00705,251.77946,211.99536,204.56526,172.6972,157.72127,142.28488,159.19492,156.1976,124.96195,123.16399,111.12959,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,107.15523,114.72215,106.6555,118.11048,138.05232,133.57372,160.1954,248.46527,239.13994,231.27301,219.71544,240.21489,310.7494,250.78784,287.43167,187.81013,161.95058,50.47722,0,0,0,0,0,0,0,0,0,0,0,0,28.3766,53.90636,0,0,501.65424,795.2947,880.19543,1041.4462,1092.5686,949.5971,906.3471,631.89825,515.4531],"state_of_charge":[14444.484,14741.105,14907.934,14891.386,14836.711,14889.553,14965.934,15034.173,14960.617,14893.162,14965.654,15016.749,14917.288,14730.015,14500.465,14266.828,14020.185,13760.902,13560.669,13364.552,13136.215,12898.313,12650.184,12386.557,12108.6,11816.562,11527.695,11229.395,10884.602,10592.408,10292.857,10015.43,9731.251,9477.823,9217.113,8960.321,8695.869,8416.114,8180.564,7953.2695,7761.3833,7586.1377,7428.0435,7251.16,7077.6074,6938.7607,6801.9116,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,6678.4346,8718.753,10856.253,12993.753,15131.253,17268.754,19406.254,19287.191,19159.723,19041.217,18909.982,18756.592,18608.176,18430.182,18154.107,17888.396,17631.428,17387.299,17121.018,16775.615,16487.844,16138.739,15869.467,15588.324,15384.313,15216.946,15025.144,14875.09,14674.508,14432.128,14226.109,14047.965,13839.658,13631.523,13442.566,13242.781,12902.081,12354.689,11779.43,11414.163,11265.259,11169.153,11102.351,10986.192,10833.78,10667.907,10465.122,10217.111,9969.369,9717.206,9472.699,9220.434,8959.152,8758.919,8562.802,8334.465,8096.563,7848.4336,7584.807,7306.85,7014.8115,6725.945,6427.6445,6082.8516,5790.658,5491.107,5213.6797,4929.501,4676.073,4415.3633,4158.572,3894.1194,3614.3645,3378.814,3151.5193,2959.6335,2784.3877,2626.2932,2449.4102,2275.8572,2137.0105,2000.1617,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,1876.6844,2140.2158,4277.716,6415.216,8552.716,10690.216,12827.716,14965.216,14846.154,14718.685,14600.179,14468.945,14315.554,14167.139,13989.144,13713.071,13447.36,13190.39,12946.262,12679.357,12334.079,12055.426,11736.058,11527.38,11347.435,11291.349,11311.728,11342.068,11431.827,11505.148,11567.079,11679.815,11838.304,11997.155,12179.522,12398.27,12626.969,12757.213,12725.683,12665.787,13414.921,13670.201,13112.807,12229.147,11251.152,10093.989,8880.024,7824.916,6817.864,6115.755,5543.029]}],"flow_direction":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"grid_export":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"grid_import":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102.82069,107.54648,99.488075,102.37999,94.45277,443.48047,2533.2437,2841.6233,2841.4753,2842.1196,2840.642,2839.3108,2844.7126,2837.7173,5106.4727,5217.455,5226.2876,5226.988,5235.636,5241.4287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102.82069,107.54648,99.488075,102.37999,94.45277,98.48047,94.910225,91.62343,91.47528,92.11966,90.64206,89.310936,94.712685,380.53015,2464.452,2467.4548,2476.2876,2476.9878,2485.636,2491.4287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"limit_violations":{},"objective_value":-9.329964,"status":"Optimal"}
Screenshot 2026-11-16 at 12 15 32

πŸ€– Generated with Claude Code

naltatis avatar Nov 16 '26 11:11 naltatis