timnon / pyschedule

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

CAPSLICE with DoCloud #18

Open joncutting opened 7 years ago

joncutting commented 7 years ago

Hi,

Thanks for a very useful tool.

My scheduling problem has people resources and machine resources. Some tasks require people and machines, others only require machines. Since people are limited to working during certain hours of the day, I have added CAPSLICE constraints to ensure that the capacity of each people resource is 0 during the night. It seems to work on Pulp but not on DoCloud. It looks like DoCloud accepts CAPSLICE constraints over the entire project but doesn't do anything about CAPSLICE constraints with defined start and end time. Can you give a little more info on the limitations of DoCloud?

Thanks,

Jonathan

joncutting commented 7 years ago

Looks like on lines 161-170 of src/pyschedule/solvers/cpoptimizer.py there is a commented out section that was somehow broken...any idea what was the matter there?