Skip to content
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

Assign Task to any couple of Resources #105

Open
Kastakin opened this issue Aug 5, 2021 · 1 comment
Open

Assign Task to any couple of Resources #105

Kastakin opened this issue Aug 5, 2021 · 1 comment

Comments

@Kastakin
Copy link

Kastakin commented Aug 5, 2021

I'm trying to use pyschedule to plan an assembly-line worker (Resources) assignment to different jobs (Tasks).

Some Tasks can be completed by a single Resource but some require two Resources to be working at the Task at the same time. Is is possible to give such a constraint without having to decide first which of the two workers are bound to the task?

I've tried passing the possible combinations without repetition of available workers obtained from itertools.combination() as I would with single resources T += alt(list_of_possible_combinations) but I get an error telling me that it's not possible to have an or operator between two lists.

I've also thought about about giving the task a custom attribute of require_res while giving the constrain S += task.resources >= task["req_res]" but I'm pretty sure this would make the problem unsolvable due to the fact that you can't have all and at most the required number of workers working on the same task unless the number of required workers is equal to the number of total workers.

Am I doing something wrong or is a problem that can't be tackled with the current implementation of Pyschedule?

Thanks in advance for any tips I might receive

@tpaviot
Copy link
Contributor

tpaviot commented Aug 5, 2021

Hi @Kastakin , feel free to post to the ProcessScheduler issue tracker if ever you don't get any answer, that's something we could achieve. See https://github.com/tpaviot/ProcessScheduler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants