最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

What does the red "overfill" warning of a delay block in anylogic mean? - Stack Overflow

matteradmin5PV0评论

I noticed a red "overfill" warning displayed on one of my delay blocks. What does this warning indicate, and how can I address it?

For context: The capacity of the delay block is determined dynamically based on a function result. The function is triggered by a cyclic event occurring each day.

What I tried: I set the initial capacity of the block to a large number (1000), because I thought maybe the problem is that the result of the function is larger than the initial capacity, but it did not solve the problem. Is there a time mismatch between the update of the capacity and the delay block processing agents - is that the reason?

I noticed a red "overfill" warning displayed on one of my delay blocks. What does this warning indicate, and how can I address it?

For context: The capacity of the delay block is determined dynamically based on a function result. The function is triggered by a cyclic event occurring each day.

What I tried: I set the initial capacity of the block to a large number (1000), because I thought maybe the problem is that the result of the function is larger than the initial capacity, but it did not solve the problem. Is there a time mismatch between the update of the capacity and the delay block processing agents - is that the reason?

Share Improve this question asked Nov 16, 2024 at 14:11 Charlotte FränkelCharlotte Fränkel 351 silver badge4 bronze badges 3
  • what is shown when you left-click the delay block at runtime? (the yellow popup)? – Benjamin Commented Nov 16, 2024 at 18:36
  • Sometimes the "capacity" is smaller then "contains" Is that due to a time mismatch in setting the capacity and the time it takes to process? capacity is set once per day with an event and delay time is also 1 day – Charlotte Fränkel Commented Nov 17, 2024 at 9:21
  • yes, as per Stuart's reply below – Benjamin Commented Nov 17, 2024 at 10:15
Add a comment  | 

1 Answer 1

Reset to default 4

It's almost certainly because you are dynamically changing the capacity to less than the current number of agents being processed (so the Delay block is 'overfull'). You have to decide whether this is 'allowed' (according to how the real-world system works) and what you want to happen to currently-being-processed agents. (The block will just finish processing the 'extra' agents as normal.)

Setting the initial capacity to 1000 doesn't help diagnose it because it's to do with the current number of agents being processed (not the block's capacity).

Post a comment

comment list (0)

  1. No comments so far