Can ALPypeRL affect model logic in a process flowchart? #7
-
Hello, I have everything set up in terms of MDP in the model and in theory it should run properly. Say we have 2 processes with the following blocks, and the last block in Process 1 frees a specific agent from Wait1 in Process 2. When that agent enters the Wait2 block, the ---
title: Process 1
---
flowchart LR
A((Source)) --> B[Wait] --> C[Seize] -->
D["Free agent from
Wait1 in Process 2"]
style D fill:#7f7d9c
---
title: Process 2
---
flowchart LR
A((Source)) -->B[Wait1] --> C[Wait2] -->
D[Seize]
style B fill:#7f7d9c
style C fill:#dd9499
Of course, this diagram is just a simplification. As far as I know, the My question is can ALPypeRL interfere with how the agents are freed from Wait blocks? Does it simply pause and resume the model engine when Does anyone know if this is indeed the case here or if the problem lies somewhere else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @cosmin-aron! Thanks for sharing your question here. I think I understand the problem you are trying to solve, but I do not really grasp the issue you are facing. In any case, let me share how events unfold in ALPypeRL (I hope it can help clarify your questions):
All of the above happens at In your case, it seems that the problem might come from AnyLogic directly, not ALPypeRL. I don't think you can free an agent (let it enter As you rightly point out, when you free an agent by calling Sorry if my answer is a bit cumbersome. I'm just making my own assumptions. Let me know if I helped. |
Beta Was this translation helpful? Give feedback.
Hi @cosmin-aron! Thanks for sharing your question here. I think I understand the problem you are trying to solve, but I do not really grasp the issue you are facing.
In any case, let me share how events unfold in ALPypeRL (I hope it can help clarify your questions):
requestAction()
is called from your simulation side.takeAction(RLAction action)
function.All of the above happens at
t=t
. Or, in other words, there's no gap in between. This is instantaneous.In your case, it seems that the problem might come from AnyLogic directly, not ALPypeRL. I don't think yo…