question

NewwUser90 avatar image
0 Likes"
NewwUser90 asked NewwUser90 commented

How can I simulate different number of stations without changing the model?

Hi everyone! :)


This is my model: final model.fsm

1740730125541.png


As you can see, the model has 2 loading stations and 1 scale (weighing station).


I am wondering if there is a way to simulate different number of loading stations and scales without adding or deleting stations in the model.


For example, if I have 1 loading station and 2 scales or 2 loading stations and 2 scales.


In the dashboard, I am trying to compare the utlization rates for all the stations for different scenarios:

1740730606292.png


Any help is much appreciated! :)

FlexSim 24.0.2
experimeterusing codeflexsim24scenario creation
1740730125541.png (31.3 KiB)
1740730606292.png (33.2 KiB)
final-model.fsm (95.8 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

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

You can use parameters to adjust the number of objects in a group. The rest of your logic then needs to be set up to work with a variable number of objects (meaning don't use fixed references).

final-model_1.fsm


final-model-1.fsm (115.5 KiB)
· 12
5 |100000

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

NewwUser90 avatar image NewwUser90 commented ·

Hi! Thank you so much for the reply. Could you help me set the parameters for the scale too? I tried but the properties look different and I couldn't add more than one


1740740770414.png

0 Likes 0 ·
1740740770414.png (8.2 KiB)
Felix Möhlmann avatar image Felix Möhlmann NewwUser90 commented ·
I would suggest you change the scale(s) to also be represented by a resource instead of a zone and copy the logic I used.

Otherwise it is difficult to match a truck with an operator that is used to represent the state.

0 Likes 0 ·
NewwUser90 avatar image NewwUser90 Felix Möhlmann commented ·

I have tried this but I am not sure what I am doing wrongly


finalmodel.fsm

0 Likes 0 ·
finalmodel.fsm (102.7 KiB)
Show more comments
NewwUser90 avatar image NewwUser90 commented ·

Is there a way to also make the pie charts to be named as LoadingStation1, LoadingStation2, LoadingStation3 etc. instead?


1740741496671.png

0 Likes 0 ·
1740741496671.png (26.7 KiB)
Felix Möhlmann avatar image Felix Möhlmann NewwUser90 commented ·

Sure. Open the code of the OnSet trigger of the parameter that controls the number of load station dummies and change the line that names the copies.

1740742183399.png

0 Likes 0 ·
1740742183399.png (68.5 KiB)
NewwUser90 avatar image NewwUser90 Felix Möhlmann commented ·

I managed to do this! :)

0 Likes 0 ·