I would like to fill my buffers using a table in the init method as the amount of MUs varys.
I got a model that works (see attached file), but it is almost as much work as using "for" multiple times.
Is there a simpler solution to my problem?
Solved! Go to Solution.
all data you need you will find in your table. You can use a nested loop the create the necessary amount of MUs in the buffers:
is i:integer; k:integer; do for i:=1 to tabelle.yDim loop for k:=1 to tabelle[2,i] loop .BEs.Fördergut.create(tabelle[3,i]); next; next; end;
|Steffen Bangsow |
freelance simulation specialist