Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的论文研究一个模型,该模型是关于 Anylogic 中游客的景点参观决策。我怎样才能给访客(代理)不同的最长等待时间。因此,如果一个景点的排队时间超过了这个等待时间,游客将不会去其最喜欢的景点,而是去其第二受欢迎的景点。
我不确定我是否正确理解了您的问题。但如果我这样做了,您可以在代理内部创建一个名为:MaxWaitTime 的参数,并使用工具 ChooseProbabilityDistribution 生成 MaxWaitTime 的值。然后,在排队时,您必须编写代码来检查当前等待时间是否 >= MaxWaitTime,如果是,代理将去另一个地方。