如何根据代理的属性控制代理数量
1)我有以性别为属性的座席人口(男性和女性),我如何根据座席的性别将座席传递到输出框后的不同队列? 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您使用选项列表。右键单击您的项目名称并创建一个新选项列表。
然后,按照以下方式填写:

然后,在代理类型窗口中,添加一个
Gender
类型的变量,并根据您的模型设计为其分配一个值。在下图中,我随机分配一半为男性,一半为女性。现在,在主窗口中的选择输出条件中,写入以下内容:

这会将男性发送到第一个队列,将女性发送到第二个队列。
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.