Install pip install -r requirements.txt, run python server.py and open http://localhost:8080. Change the power cap to 2 kW or delay the first job by 24 hours to reproduce an impossible commitment. Run python gridshift.py for machine-readable results and python -m unittest for verification.
Nonpreemptive batches occupy fixed-duration intervals. CP-SAT minimizes energy cost subject to deadlines and a cumulative power limit. FCFS places each arriving job in its earliest feasible window, reporting unplaced jobs separately. Compare costs alongside deadline misses. Solver status distinguishes a feasible schedule from proven optimality. Prices and workloads are a fixed synthetic week; the model assumes constant job power.
On the committed synthetic week, both strategies completed all 21 jobs. FCFS cost $26.58; CP-SAT found a proven optimum of $23.16. The run output includes the hour of every start, peak power, deadline misses and elapsed time for each strategy. Reproduction environment.