Modular Assignment #12
Labels
Back End
Documentation
Used to track the documentation of a feature or bug
Enhancement
Verification Not Required
For fixes validated by metrics.
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 theassignType
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:
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}
The text was updated successfully, but these errors were encountered: