简体   繁体   English

如何在 AnyLogic 中添加多个源?

[英]How to add more than one source in AnyLogic?

I'm new using AnyLogic, i want to simulate an operation of access control, but i have a problem, i need to put many sources in the system because there are a lot of types of vehicles that need access, but all of them wait in the same queue and pass through the same entrance, so, i think my system needs to look like this: AnyLogic Simulation The problem here is that each source has a different time of delay, and i don't know how to do that difference, i can't put different delays for each source because the person that would do that service is the same, so, everyone pass for the same delay (but with different times)我是AnyLogic新手,想模拟一个访问控制的操作,但是遇到一个问题,我需要在系统中放很多源,因为需要访问的车辆类型很多,但都在等待在同一个队列中并通过同一个入口,所以,我认为我的系统需要如下所示: AnyLogic Simulation这里的问题是每个源都有不同的延迟时间,我不知道如何做到这一点,我不能为每个来源设置不同的延迟,因为提供该服务的人是相同的,因此,每个人都通过相同的延迟(但时间不同)

I hope that someone understand my doubt and can help me :) Have a nice day.我希望有人理解我的疑问并能帮助我 :) 祝你有美好的一天。

first, you probably only need 1 source and 1 agent type.首先,您可能只需要 1 个来源和 1 个代理类型。

Each agent type will have 2 variables vehicleType, which identifies the vehicle type delayTime, which identifies the delay time每个代理类型都会有 2 个变量 VehicleType,标识车辆类型 delayTime,标识延迟时间

On the other hand, a source can be used as a population of sources if you go to advanced in the properties and click on "population of agents" and you use the index of the source in order to generate different things... but this would require a customized solution for you, that you probably don't need, because of what I said before.另一方面,如果您转到属性中的高级并单击“代理群体”,并且您使用源的索引来生成不同的东西,那么源可以用作源的总体……但是这需要为您定制的解决方案,您可能不需要,因为我之前说过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM