question

Mohammad Alattar avatar image
0 Likes"
Mohammad Alattar asked Jason Lightfoot commented

How we can set 2 values for Processing time for a machine?

I am trying to set two types of processing time for a machine and test it using experimenter. However, it take the fixed value but it is not taking the triangle distribution value.

1695313781801.png

1695313858504.png

FlexSim 23.1.0
processing times
1695313781801.png (20.5 KiB)
1695313858504.png (18.7 KiB)
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

·
Kavika F avatar image
0 Likes"
Kavika F answered Jason Lightfoot commented

Hey @Mohammad Alattar, you need to remove the last parameter of the triangular distribution - the part that says "getstream(current)". The parameter doesn't understand what "current" is in the context, and so it gives you some errors if you try to run with that parameter.

· 6
5 |100000

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

Mohammad Alattar avatar image Mohammad Alattar commented ·
Hey @Kavika F,

Thank you for the clarification. After the edit the model runs as expected!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

You should really be using the stream with the parameter param(1) which is passed into the parameter evaluation:

Model.parameters["ProcessTime"].evaluate(current);

There is an option to pass current using the process time parameter pop-up:

1695383747281.png

Then in your triangular distribtution you can add back the getstream(param(1)) expression.

0 Likes 0 ·
1695383747281.png (6.4 KiB)
Mohammad Alattar avatar image Mohammad Alattar Jason Lightfoot ♦ commented ·
So when I have 2 arguments, like the screenshot I posted in the top what should be the case in that situation as am really sure if the software is taking the values when I run the experimenter ?


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Mohammad Alattar commented ·

I don't see a screenshot of something using two arguments - but if you pass in two, the second one is accessed using param(2) in the option expression.

0 Likes 0 ·
Show more comments

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.