Skip to main content
. 2026 Mar 11;26(6):1780. doi: 10.3390/s26061780
Algorithm 3: Carbon-Aware Security Job Scheduling
  1. Job queue J, nodes N,

  2. Sforecast horizon H,

  3. Scheduling interval Δt

  4. Job-to-node-time assignments x

  5. Initialize carbon intensity forecasts γ^nt

  6. for all n∈N, t∈tnow,tnow+H

  7. Compute renewable energy forecasts ρ^nt for all nodes

  8. Update forecasts using LSTM model via (25)

  9. Sort jobs by priority: Jsorted←SortJ,ωj,Dj

  10. Identify feasible (node, time) pairs satisfying (22), (23)

  11. Compute carbon cost cj,n,t=Ej⋅γ^nt for feasible pairs

  12. Select n*,t*=argminn,tcj,n,t+ωj⋅t−tarrival,j

  13. Assign xj,n*,t*←1

  14. Update capacity constraints

  15. Execute scheduled jobs

  16. Collect actual carbon emissions for model refinement

  17. End if

  18. End for

  19. Assignment matrix

  20. Return x