admin管理员组

文章数量:1026989

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).

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).

本文标签: What does the red quotoverfillquot warning of a delay block in anylogic meanStack Overflow