Modeling with wieght

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Ronald
Posts: 2
Joined: Friday 21 March, 2014 - 13:26

Modeling with wieght

Post by Ronald »

Hello,

I need to make a simulation of a factory where they unload trucks with different kind of loads, there can only be one forklifter used per truck.

the arrival time is a neg exp of 2 hr.
there are three different cycle times with a chance:
A has a chance of 0.4 with a unload speed of 8tons per hour
B has a chance of 0.35 with a unload speed of 7tons per hour
C has a chance of 0.25 with a unload speed of 5tons per hour

the weight of the load is set on a norm with a mean of 30 tons with a standard deviation of 4 tons

sofar i have set one source with a NegExp (7200) and setlabel([Weight],uniform[30000,4000],i)

Can somebody help me how i need to proceed.

Greetings, Ronald
Nick
Posts: 48
Joined: Saturday 15 February, 2014 - 01:52

Re: Modeling with wieght

Post by Nick »

Hi Ronald,

First of all, the parameters for the Uniform distribution function are lower boundary and upper boundary. Your function therefore should say:

Code: Select all

uniform(26000, 34000)
- To model the cycle time the empirical distribution atom can be used. (Available under 8 TOOLS)
- Your cycle time can then be determined by dividing the weight by the unloading speed.

Regards, Nick
Ronald
Posts: 2
Joined: Friday 21 March, 2014 - 13:26

Re: Modeling with wieght

Post by Ronald »

Hello Nick,

First of all thank you for your reaction, i have modified my model with your feedback. I still have so issues with making this model.
I wanted to give the products colours so I can see if the products really are differed but whatever I tried (by set color to a label and three different colors) it wouldn’t work.
I still have problems with how to set the unloading speed. I think the weight is set right in the Empirical and the cycle time in the server.
I hope you can give me some more tips.
Greetings, Ronald
Attachments
2014-03-28 Model warehouse.mod
(22.45 KiB) Downloaded 317 times
Nick
Posts: 48
Joined: Saturday 15 February, 2014 - 01:52

Re: Modeling with wieght

Post by Nick »

Hi Ronald,

Some suggestions:
- The emperical table input percentage has to be cumulative (40, 75, 100).

Cycletime
- The unloading speed from 'Goederen' is set to the label ULspeed.
- The label is saved on the product. This way it can be used for changing the icon based on the UL speed.
- The weight is divided by the unloading speed, resulting in the cycletime (in seconds, so x 3600)

Code: Select all

Do(
  Label([ULspeed],last(c)):= Goederen,
  (Label([Weight],last(c))/Label([ULspeed],last(c)))*3600
)
Change icon color
- Use label ULspeed

Code: Select all

Case(
WhichIsTrue(
Label([ULspeed],i) = 8000,
Label([ULspeed],i) = 7000,
Label([ULspeed],i) = 5000
),
icon(i):=40,
icon(i):=41,
icon(i):=42
)
Regards, Nick
Attachments
2014-03-28 Model warehouse_edit.mod
(23 KiB) Downloaded 323 times
Post Reply