question

nicoll avatar image
0 Likes"
nicoll asked Jason Lightfoot commented

Experimenter with ProcessFlow

Hi! We try to apply experimenter with process flow through a global variable (number of operators) that is found in the Resource count and in the Reference of our parameters. But the results show us that in the three scenarios of the experiment they give the same result. It's like you're just using a single operator. What we want to know is how to implement number of operators parameters (which have their logic with process flow) in order to apply the experiment in Experimenter. If it should be done differently, we would like to know with a simple model how to do the experiment when all the logic is with our process flow. On the internet it explains but when ProcessFlow is not used and only simple connections.

operador experiimento.fsm

FlexSim 23.2.0
process flowexperimenter
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
@nicoll, you want to read a global table cell value. The cells are ordered in rows. Then you need a discrete Parameter that you can vary in experiments to read different rows of your global table. This experimenter parameter replaces a global table cell row value, whenever you evaluate your global table to read an involved cell value.

If you let run your model and your results don’t differ, then you must check if more operators have more to do otherwise you have only increased a number of resources that can work, but they don’t do it. This can happen, when you distribute taskexecuter jobs by first available. The first operator get work to do, but any other are just waiting for work.

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

Hi @nicoll, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

The "data" node whose value you set with the model parameter only determines the initial value of the global varialbe. Furthermore, this node normally contains a string, which is then used to initiliaze the variable depending on the type setting. The parameter sets this node to a number value, breaking the logic in the background which results in the global variable actually taking on the value 0.

You have multiple options on how to use the parameter to control the number of operators:

- Set the global variable to the parameter value in its On Set function (not the node but the variable).

1700811868383.png

- Use the parameter in the Count field of the resource directly.

1700811919491.png

- Add the operator to a group and have the parameter set the number of objects in the group. Then refer to that in the Process Flow resource.

1700812063796.png

In any case, you also have to create the same number of tokens as you have operators.


1700811868383.png (16.0 KiB)
1700811919491.png (9.0 KiB)
1700812063796.png (5.6 KiB)
· 4
5 |100000

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

nicoll avatar image nicoll commented ·

I tried it and it doesn't work for me, could you pass the flexsim file with one of those ways already working, thanks. I think it doesn't work because for all scenarios Experimenter gives the same results.

Model.fsm

0 Likes 0 ·
model.fsm (73.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann nicoll commented ·

You get the same result because you only create a single token to acquire operators. So only one is ever used even if there are more available.

1701002743953.png

0 Likes 0 ·
1701002743953.png (30.3 KiB)
nicoll avatar image nicoll Felix Möhlmann commented ·

I already put that in and I get the following error: "time: 0.000000 exception: FlexScript exception: Cannot get parameter Patameter1 at MODEL:/Tools/ProcessFlow/ProcessFlow/Source~2>variables/arrivals/1/Quantity"

model1.fsm

0 Likes 0 ·
model1.fsm (71.0 KiB)
Show more comments