Page 2 of 2

Re: warehouse simulation-modeling 55 codes

Posted: Monday 19 December, 2016 - 17:01
by vassilis94s
why if i add two more products it leads to an error?

Re: warehouse simulation-modeling 55 codes

Posted: Monday 19 December, 2016 - 17:17
by HarryBunnik
Sorry, my fault. The OnReset on the initialize must be unchecked.

An explanation for this behavior is:

When this is on, the initialize code is executed on reset and then all objects that are positioned in front of the Initialize atom (model tree order) is behaving correctly and for all the other atoms positioned later in the model tree, the CloseOutput is overruled. This because the OnReset is executed in the order that atoms are sorted in the model.

When unchecking the OnReset, the initialize code is executed directly after pressing the Run simulation button and then nothing can be overruled any longer.

Re: warehouse simulation-modeling 55 codes

Posted: Monday 19 December, 2016 - 17:26
by vassilis94s
ooooo that's works great thank you so much..:)

Re: warehouse simulation-modeling 55 codes

Posted: Tuesday 20 December, 2016 - 15:04
by vassilis94s
when i fill it with more products i have noticed that the table changes ellements?..why this is happenning?..i put my 55 codes and all the infos in the cells..and priority and source Nr..and when i run the siulation the row changes and each source produces different from the initially plan..:/

Re: warehouse simulation-modeling 55 codes

Posted: Tuesday 20 December, 2016 - 16:44
by HarryBunnik
I need to loop over the table, to know which next source must be opened. The easiest way to do so is when the is sorted already in the correct order. And it's sorter therefore on the priority column.

Also the Nr. of produced products is set back to 0 on Reset.

Cheers,

Harry