-2

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.

1 Answers1

0

I suggest you use an option list for that. Right-click on your project name and create a new option list.

enter image description here

Then, fill it in the following way: enter image description here

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.

enter image description here

Now, in your main window, in the select output condition, write the following: enter image description here

enter image description here

This will send males to the first queue and females to the second queue.

Emile Zankoul
  • 2,161
  • 2
  • 6
  • 18