Would
Process = 1,2,3,4,5,6
Queue = Chosen number
and person would be in an
I want to make a formula that would assign the vacancy of 70 people, giving them 5 week choice, then, by seniority, it would assign them automatically the vacancy they chose, respecting the fact only 3 people can be on vacancy the same week & that the preferences each person selects is ranks from most preferred to least preferred week. then, would result in two weeks assigned to each of them
So far this is what i achieved
I believe
from multiprocessing import Process, Queuebe an option (im not quite sure what id actually do, im still testing it as i write those line ) where:
Process = 1,2,3,4,5,6
Queue = Chosen number
and person would be in an
OrderedDict
I want to make a formula that would assign the vacancy of 70 people, giving them 5 week choice, then, by seniority, it would assign them automatically the vacancy they chose, respecting the fact only 3 people can be on vacancy the same week & that the preferences each person selects is ranks from most preferred to least preferred week. then, would result in two weeks assigned to each of them
So far this is what i achieved
from collections import OrderedDict from multiprocessing import Process, Queue AvalableWeekPool = Process SelectedWeek = Queue od = OrderedDict() Process = [1,2,3,4,5] Queue = [] od['Jean'] = od['Claude'] = od['Van'] = od['Dam'] = print("\nVacancy Week schedule assigned:\n") for key ,value in od.items(): print(key ,value)
I believe
from collections import OrderedDict od = OrderedDict() WeekPool = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39, 40,41,42,43,44,45,46,47,48,49,50,51,52] od['Jean'] = [42,12,51,31,22] od['Claude'] = [11,11,49,23,51] od['Van'] = [32,15,1,2,5] od['Dam'] = [1,2,3,4,50]Would make more sense for now.