Hello
Forgive me if my Q seems elementary but iam generating tasks to be handeled by alternative resources what im trying to do is to find some way ensure balance between this resources on other way the number of tasks handeled on the alternative resources should be cloth as possible.
any advice ?
Thanks
Topic
This topic has been locked.
1 reply
Latest Post
 20121220T09:05:34Z by SystemAdmin
ACCEPTED ANSWER
Pinned topic How to balance tasks between alternative resources?
20121219T18:16:54Z

Answered question
This question has been answered.
Unanswered question
This question has not been answered yet.
Updated on 20121220T09:05:34Z at 20121220T09:05:34Z by SystemAdmin

ACCEPTED ANSWER
Re: How to balance tasks between alternative resources?
20121220T09:05:34Z in response to UMQX_Olfat_ELMahiHello,
First, you can get the number of tasks handled by a given resource Rj by counting the number of present interval variables on the resource. If I assume the execution of a task i on a resource Rj is represented by an interval variable alt[i][j], you can do something like:
dexpr int nbTasks[j in 1..m] = sum(i in 1..n) presenceOf(alt[i][j]);
Then if you want to balance those numbers between the resources you can minimize the max or the sum of the squares of these numbers for instance or any other measure of deviation (mean deviation, standard deviation). So for instance for the minimization of the sum of squares:
minimize sum(j in 1..m) pow(nbTasks[j],2);
Philippe