简体   繁体   English

如何在 Anylogic 中进行 rackPick 后模拟错误的条件?

[英]How to have a condition simulating an error after a rackPick in Anylogic?

I have a problem with anylogic because I am not able to simulate an error happening to the moving resource (I have only one moving resource) of the rackPick block.我对 anylogic 有疑问,因为我无法模拟 rackPick 块的移动资源(我只有一个移动资源)发生的错误。

  1. I tried to increase the delay (but I think this is not possible to do at runtime, because once the item has been picked from the rack store, I can find no way to restore the old delay)我试图增加延迟(但我认为这在运行时是不可能的,因为一旦从货架商店挑选了物品,我就找不到恢复旧延迟的方法)

  2. I tried to reduce the speed of the moving resource (accessing to the correspondent resource pool), but I have the same problem described in point 1.我试图降低移动资源的速度(访问对应的资源池),但我遇到了第 1 点中描述的相同问题。

How can I do that?我怎样才能做到这一点? I just need the moving resource to pause its job and resume programmatically.我只需要移动资源暂停其工作并以编程方式恢复。

Thanks a lot in advance.提前非常感谢。

Tricky one, here is one possible way:棘手的一个,这是一种可能的方法:

  1. make your RackRick/Store use a ResourcePool with custom agents让您的 RackRick/Store 使用带有自定义代理的 ResourcePool
  2. make the ResourcePool use a Downtime block使资源池使用停机时间块
  3. Setup the downtime block to resemble your failures.设置停机时间块以类似于您的故障。 Easiest if you have stochastic failure rates.如果您有随机故障率,则最简单。

Alternatively, you can experiment with priorities: have a very high-prior task that can preempt your RackPick/Store task.或者,您可以尝试优先级:拥有一个可以抢占 RackPick/Store 任务的高优先级任务。 Set the RackPick "Task preemption policy" to "Wait for original resource".将 RackPick 的“任务抢占策略”设置为“等待原始资源”。

(Will need some trial'n'error on your end:) ) (最终需要一些试验'n'error:))

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

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