Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modular Assignment #12

Open
kqnguyen0000 opened this issue Jun 26, 2019 · 0 comments
Open

Modular Assignment #12

kqnguyen0000 opened this issue Jun 26, 2019 · 0 comments
Labels
Back End Documentation Used to track the documentation of a feature or bug Enhancement Verification Not Required For fixes validated by metrics.

Comments

@kqnguyen0000
Copy link
Collaborator

The simulator has been rewritten to allow for modular assignment. We can design new algorithms in the sim_assign.py file and import them by changing the assignType variable. This will let us develop and test new algorithms more easily.

The sim imports all of the algorithms in line 3:
from .sim_assign import assignMethods as updateRequests

The algorithm is selected with a sim variable:
assignType = "greedy"

The entire simulation loop now looks like this:
sublime_text_tAb9oMDTS0

At the bottom of the sim_assign.py file, the algorithms are packaged into a dictionary that is imported into the simulator:
assignMethods = {"greedy": updateRequests, "interval": updateRequests2}

@kqnguyen0000 kqnguyen0000 added Enhancement Documentation Used to track the documentation of a feature or bug Verification Not Required For fixes validated by metrics. Back End labels Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Back End Documentation Used to track the documentation of a feature or bug Enhancement Verification Not Required For fixes validated by metrics.
Projects
None yet
Development

No branches or pull requests

1 participant