timnon / pyschedule

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

Running README example returns different result #72

Closed kylecarbon closed 5 years ago

kylecarbon commented 5 years ago

I'm on pyschedule v0.2.31 and python v3.5.2. When I run the README example (from my terminal, I run python3, then copy+paste from the README), I get the following solution:

[(clean, Alice, 0, 3), (wash, Bob, 1, 3), (cook, Alice, 5, 6)]

image

This doesn't match what is listed on the homepage and I'm not sure where else to start. I'm sure I'm missing some other useful information, so let me know what else I can/should provide!

Also, sorry if this duplicates #2 but (i) I didn't want to comment on a closed issue and (ii) it's a different underlying issue.

timnon commented 5 years ago

Sorry for the late reply, the README was indeed not up-to-date, the completion time cost used to be automatically set to 1, but this was removed since this slighly decreases the performance in case it is not needed. But with the single line S.use_flowtime_objective() this can be set manually to ensure that all tasks are pushed to the "left". The README is not updated.

kylecarbon commented 5 years ago

Great, thanks, it works now :)

Is there documentation on use_flowtime_objective() and other similar options? I'm having trouble finding it :/