Topic
• Latest Post - ‏2012-12-20T09:05:34Z by SystemAdmin
UMQX_Olfat_ELMahi
56 Posts

# Pinned topic How to balance tasks between alternative resources?

‏2012-12-19T18:16:54Z |
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.

Thanks
Updated on 2012-12-20T09:05:34Z at 2012-12-20T09:05:34Z by SystemAdmin
623 Posts

#### Re: How to balance tasks between alternative resources?

‏2012-12-20T09:05:34Z
Hello,
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:

``````