question

EK avatar image
0 Likes"
EK asked EK commented

Array index out of bounds in modified Kiva Model

When I insert the code in Dynamic Barriers from the Kiva Model tutorial, there is an array index out of bounds error. What did I did I miss here?

Sorry for uploading a complex model but when I tried to create a basic model, I got another different error before I was able to replicate this issueModified Kiva model 2.fsm

FlexSim 23.2.1
kiva model
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered EK commented

You have this test in your loop:

1<=slotItems.length  

it should be

i<=slotItems.length
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

EK avatar image EK commented ·
Thanks a bunch!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.