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 ?
This topic has been locked.
1 reply Latest Post - 2012-12-20T09:05:34Z by SystemAdmin
Pinned topic How to balance tasks between alternative resources?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-12-20T09:05:34Z at 2012-12-20T09:05:34Z by SystemAdmin
SystemAdmin 110000D4XK623 PostsACCEPTED ANSWER
Re: How to balance tasks between alternative resources?2012-12-20T09: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);