Overview
Cost-optimal depot charging schedule for an EV fleet: per vehicle and time slot the charging power under charger limits, arrival/departure times and a site power cap, priced with your time-of-use tariff, compared with uncontrolled charging. Builds a flow network source → vehicle (energy needed at the grid = battery energy / charging efficiency) → time slot (charger power × overlap with the presence window) → sink (site limit minus base load per slot).
Protocol
x402 (POST)
Price
$0.0050
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
ort
Indexed
2026-11-21 00:09:35
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"horizon_hours": 12,
"site_limit_kw": 50,
"start": "2026-10-05T18:00:00Z",
"tariff": [
{
"from": "2026-10-05T18:00:00Z",
"price_eur_per_kwh": 0.4
},
{
"from": "2026-10-05T22:00:00Z",
"price_eur_per_kwh": 0.2
}
],
"vehicles": [
{
"arrival": "2026-10-05T18:00:00Z",
"departure": "2026-10-06T06:00:00Z",
"energy_needed_kwh": 30,
"id": "E1",
"max_charge_kw": 11
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Linear model: constant power up to the charger limit, no charging curve taper ne…",
"Grid fees for peak demand are not priced; the site cap is a hard limit."
],
"result": {
"horizon": {
"from": "2026-10-05T18:00:00Z",
"slot_minutes": 15,
"slots": 48,
"to": "2026-10-06T06:00:00Z"
},
"method": "Minimum-cost maximum flow: slots opened in increasing price order with Dinic aug…",
"site_profile": [
{
"from": "2026-10-05T22:00:00Z",
"kw": 11,
"price_eur_per_kwh": 0.2
},
{
"from": "2026-10-05T22:15:00Z",
"kw": 11,
"price_eur_per_kwh": 0.2
},
{
"from": "2026-10-05T22:30:00Z",
"kw": 11,
"price_eur_per_kwh": 0.2
}
],
"totals": {
"all_complete": true,
"cost_eur": 6,
"grid_energy_kwh": 30,
"peak_kw": 11,
"saving_eur": 6,
"uncontrolled_cost_eur": 12,
"uncontrolled_grid_energy_kwh": 30,
"uncontrolled_peak_kw": 11
},
"vehicles": [
{
"battery_energy_kwh": 30,
"complete": true,
"cost_eur": 6,
"energy_needed_battery_kwh": 30,
"finished_at": "2026-10-06T00:45:00Z",
"grid_energy_kwh": 30,
"id": "E1",
"schedule": [
{
"from": "2026-10-05T22:00:00Z",
"kw": 11,
"to": "2026-10-06T00:30:00Z"
},
{
"from": "2026-10-06T00:30:00Z",
"kw": 10,
"to": "2026-10-06T00:45:00Z"
}
],
"shortfall_battery_kwh": 0
}
]
},
"service": "depot-charge-plan",
"status": "success"
},
"type": "json"
}