How to structure Google OR-Tools MPSolver to assign multiple tasks per worker? #3130
Unanswered
michaeldouble07
asked this question in
Linear Solver questions
Replies: 1 comment
-
|
please provide a minimal runnable with some data. The question is too abstract as is. Furthermore, what is the objective exactly ? minimize the sum of worker times ? Assigning 0 or 2 tasks is trivial. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following the MPSolver java examples in an attempt to assign two tasks per worker. A worker must perform two tasks or no tasks, a task can be assigned to only one worker. A matrix indicates the tasks that a worker can perform. The goal is to maximize the number of worker-task combinations. Some workers and tasks may not get assigned. The examples cover single worker-task assignments, but I don't follow how to structure MPSolver constraints to associate two tasks per worker.
Subsequently, I need to minimize the amount of time each worker spends. The time worked is associated with individual workers.
link:https://stackoverflow.com/questions/71118139/how-to-structure-google-or-tools-mpsolver-to-assign-multiple-tasks-per-worker
Beta Was this translation helpful? Give feedback.
All reactions