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

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

malatta1
Explorer Explorer
384 Views
7 Replies
Message 1 of 8

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

malatta1
Explorer
Explorer

[ FlexSim 23.1.0 ]

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

0 Likes
Accepted solutions (1)
385 Views
7 Replies
Replies (7)
Message 2 of 8

kavika_faleumu
Autodesk
Autodesk
Accepted solution

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.

0 Likes
Message 3 of 8

malatta1
Explorer
Explorer
Hey @Kavika F,

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

0 Likes
Message 4 of 8

jason_lightfoot_adsk
Autodesk
Autodesk

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
Message 5 of 8

malatta1
Explorer
Explorer
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
Message 6 of 8

jason_lightfoot_adsk
Autodesk
Autodesk

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
Message 7 of 8

malatta1
Explorer
Explorer

This is how I define it in the parameter tab (screenshot 1). Then I connect this using the processing time and selecting the parameter (screenshot 2). Then the goal is to switch between these two kinds of processing times using the experimenter.1695741174216.png

1695741407202.png

0 Likes
Message 8 of 8

jason_lightfoot_adsk
Autodesk
Autodesk
What's the question about the two options? You set which to use in the experimenter scenario/job.
0 Likes