1)I have Population of agents having gender as Attribute (Male and female) how can i pass agents based on their gender to different Queues after Output Box? 2) or how to Access individual agents from Population so that their movement can be Controlled individually based on their Attributes.
Asked
Active
Viewed 67 times
-2
-
Please provide enough code so others can better understand or reproduce the problem. – Community Mar 02 '22 at 05:19
1 Answers
0
I suggest you use an option list for that. Right-click on your project name and create a new option list.
Then, fill it in the following way:
Then, in the agent type window, add a variable of type Gender
and depending on your model design assign a value to it. In the image below, I am randomly assigning half as Males and half as females.
Now, in your main window, in the select output condition, write the following:
This will send males to the first queue and females to the second queue.

Emile Zankoul
- 2,161
- 2
- 6
- 18