[英]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 块的移动资源(我只有一个移动资源)发生的错误。
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)我试图增加延迟(但我认为这在运行时是不可能的,因为一旦从货架商店挑选了物品,我就找不到恢复旧延迟的方法)
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:棘手的一个,这是一种可能的方法:
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.