New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Put requests for different anonymous resource coming frome same component #31
Comments
Could you include the code that demonstrates this behaviour and generates the trace? |
Hello, I tried to put a minimum example, and indeed the erroneous behavior is reproducible. Running the code below with salabim 22.0.2, the trace shows even both put requests fail, not only one. I am happy to join a 1:1 chat to improve the simulation model design if this helps to overcome the issue.
|
As far as I can see from the code above, I think this is intended behaviour.
with output:
I don't know why you think this is incorrect. If you want to chat about this, please contact me via e-mail on info@salabim.org . |
I observed today in the trace, that if a component triggers 2 one put-request to anonymous resources, one of them will always fail.
However, analyzing the code I could identify a check which prevents the successful behavior.
`
Maybe it is a numerical issue, but commenting the check
if -self._requests[r] > r._claimed_quantity + 1e-8
out fixes the issue.After that the trace will contain the following lines (R31 is the component, p31 and p32 are anonymous resources).
The text was updated successfully, but these errors were encountered: