Skip to content
DivuzkiPublic

About

Schedule batch jobs around hourly electricity prices and a site power cap. The fixed synthetic week cost $23.16 against a $26.58 baseline.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GridShift

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.

Decision record

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.

Recorded replay

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.

About

Schedule batch jobs around hourly electricity prices and a site power cap. The fixed synthetic week cost $23.16 against a $26.58 baseline.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages