timnon / pyschedule

pyschedule - resource scheduling in python
Apache License 2.0
295 stars 61 forks source link

Help needed #34

Open fderyckel opened 6 years ago

fderyckel commented 6 years ago

I have 5 days, each days consists of 5 hours, 6 courses that each require 3 hours, but no 2hours can be on the same day Any idea on how to model this? Here is what I would start with:

s = Scenario('S_trial01', horizon=25) class = s.Resource('Class_6') courseA = s.Task('Course_A', 3) courseB = s.Task('Course_B', 3) courseC = s.Task('Course_C', 3) courseD = s.Task('Course_D', 3) courseE = s.Task('Course_E', 3) courseF = s.Task('Course_F', 3)

But then I am not sure how to add the constraints of not having twice the same course on one day.

Any suggestion?

timnon commented 6 years ago

Hi, sorry, i think i first missunderstood your question: