-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable length task? #61
Comments
Hi, nice to hear that pyschedule is used to brew beer! Regarding your problem, you could use some capacity constraint like setting: Ferment.block = 1 This would ensure that some bottle operation needs to take place before a new ferment is started. You probably also want to ensure that the fermenting and bottleling are happening at the same tank for one beer. This works like Bottle >= Ferment*Tank1 If you have a concrete example, i could try to fix it, i am always looking for real-life examples to showcast. |
Thank you for you quick answer! I've tried using the block strategy but I still experience 2 fermentations being scheduled one after the other then two bottling jobs. Weird! I already had added a "same tank" constraint, that works quite well! But I did that using: Give me a few days to clean up my mess and I'll send you a link to the code. I'll be quite happy if you can help me fix the latest "bugs" and of course, you can use it as a showcast :) Cheers! |
Maybe you should also constrain the number of bottle operations in a row by using |
I've created a gist for you to read my (very dirty) code. Sorry for the quality, it's really a poc: I hope it's clear enough, feel free to ask for informations where it's not understandable. Thank you very much! |
Had a quick look on my phone and spotted the following syntactic problem. You need to write
Otherwise, the constraint is created but not added to the scenario. Please check if that gives some progress. I will be able to run your code next sunday. |
My bad, I didn't know I had to add it. Now it works, in the expected order, thank you! Took about 50minutes but the result is good :) |
Excellent. If you have performance problems, check the option a “group“ interchangeable tasks, if you have any. I will have a look. |
Had a look at the gist above, some comments:
to color all tasks in one batch with the same color. You can then plot without text using
Looks like an awesome project, happy to see some newer version if available |
Hi,
First of all, thanks for this wonderful piece of code!
I've managed to modelize almost all my needs except one case. Is there a way to either:
To understand my scenario, here's the use case:
[Brew/R=brewhouse] <= [Ferment/R=Tank1] <..[variable length task/R=Tank1]..< [Bottle condition/R=Tank1+Capper]
The problem is that sometimes, we are busy or it's sunday and we want to wait a few days before bottle conditioning. How would you achieve that? Thank you!
The text was updated successfully, but these errors were encountered: