Hello Harry and thank you for the response
OK now,i found how the "indexOfMin" works but i'd like to ask something
I attach an example here (example1)
In the example we have 4 servers with their corresponding queues
by running the example the entities don't go to the next available server but to the next available queue starting with the 1st,then the 2nd etc.
In this way,for example,if the server 1 is working (containing an entity), the next entity will go to the queue1 instead of the server 2
Only if the queue 1 has one entity,the next entity will go to the server 2 (the same of course is happening with the next components,queue2-server3,queue3-server4)
Actually the priority is Server1>Queue1>Server2>Queue2>Server3>Queue3>Server4>Queue4 instead of Server1>Server2>Server3>Server4>Queue1>Queue2>Queue3>Queue4
Is there something we can do to fix it?
Thank you for your time,
Giorgio