Repository navigation
Add discrete-time simulation engine and classical scheduling baselines - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AdaptiveQueue now supports reproducible experiments comparing scheduling policies on a single non-preemptive worker. Policies receive
(waiting_jobs, current_time)with currently available jobs and the current integer simulation time; the episode continues until every job finishes. Baseline selection rules and seeded Random behavior are unchanged.The clock advances to completions or the next arrival instead of processing ticks with no decisions. Workloads and Random policies use separate local RNGs. The waiting-time 95th percentile uses linear interpolation; empty episodes have zero metrics.
Validation on Python 3.12: 39 pytest tests passed; Ruff lint and formatting checks, strict mypy targeting Python 3.10, and git diff whitespace checks passed. Both README example commands ran successfully.