Required columns: request_id, arrival_min, duration_min,
energy_kwh, surge_mult. Times are minutes from midnight. Profit is
recalculated from station prices.
Explore your current schedule, or follow the eight-request report
example.
Inside the solver
Optimize a day to inspect its algorithm trace.
EXACT ALGORITHMS
∑
Follow the decision.
Load the report example for an eight-request DP walkthrough.
Small synthetic inputs include losses, overlapping intervals
and touching endpoints.
What is one more port worth?
Compare the current demand across one to eight identical
ports.
+
Explore your station’s potential.
Only port count changes. Requests and prices remain the same.
Fast, by design.
50–1,000 requests. Best of three CPU timings on seeded demand.
◷
Watch the complexity become concrete.
DP uses one port; flow and FCFS use four. Timings are measured
here.
Understand the model & complexity
Each request is a fixed interval [start, deadline). Deadline =
start + duration; touching endpoints do not overlap. Profit =
round(energy × (tariff × surge − energy cost)). Ports are
identical; all bookings are known in advance.
DP sorts by finish time and finds predecessors with binary
search: OPT(j) = max(OPT(j−1), profit(j) + OPT(pred(j))). Time
O(n log n), space O(n). DP supports one port.
Flow builds a node per distinct time, zero-cost idle arcs of
capacity k, and request arcs of capacity 1 and cost −profit. A
DAG pass initializes potentials; successive Dijkstra searches
route k units. Time O(k n log n), space O(n).
Greedy rules use first-fit port admission with minute bitsets. B
is the number of machine words spanning the 1,440-minute day;
time O(n log n + n k B), space O(n + k B). Interval coloring
assigns the chosen set to physical ports.
Subset enumeration takes O(2ⁿ n log n); branch and bound takes
O(2ⁿ (n + k log k)) in the worst case. The UI limits both to 14
requests. Flexible start windows, online arrivals, grid limits
and fairness constraints are outside this fixed-slot model.
A record of better decisions.
Your last 30 runs, saved locally with their original inputs.