question

Javiera VL avatar image
0 Likes"
Javiera VL asked Logan Gold edited

Optimization using sequence version 22.0.1

Hello All,

I need to know how to use "sequence" to do the optimization. My model is similar to the one in the webinar (https://www.youtube.com/watch?v=8GBzt5B4Cu0 in min. 50:00), but they use permutation that is not included in version 22.0.1

Can you send me the webinar example update to version 22.0.1 or a similar example understand it

Thanks in advance!


FlexSim 22.0.1
sequence optimization
5 |100000

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

Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Javiera VL, FlexSim has updated the Experimenter and has changed the way sequences are handled. Here you can find the documentation for how sequences are handled in FlexSim 22.0.

5 |100000

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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Logan Gold edited

You can use a Sequence parameter. Here's an example model. Note that running the optimization requires an OptQuest license:
SequenceOptimizationDemo_v22_0.fsm


· 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.

Javiera VL avatar image Javiera VL commented ·

Thanks for the example, but in my model I need to change the order of arrival in the optimization, that is, from the table "GlobalTable1" the column 4

1660302914684.png

In "parameters" I indicate the following (Could my mistake be in the code OnSet?)

1660303169208.png


Because in the "Experimenter" I Indicate the following

1660303335877.png


"TimeProceso_op" is the End of simulation time

The optimization result are

1660303502763.png


1660303540550.png


But, if I run the simulation with Scenario 5, the result is different

1660303696975.png

1660303794080.png


Could you help me to solve this problem?


Thanks in advance!



0 Likes 0 ·
1660302914684.png (20.4 KiB)
1660303169208.png (40.1 KiB)
1660303335877.png (35.7 KiB)
1660303502763.png (47.0 KiB)
1660303540550.png (13.9 KiB)
1660303696975.png (31.1 KiB)
1660303794080.png (18.1 KiB)
Javiera VL avatar image Javiera VL commented ·

Thanks for the example, but in my model I need to change the order of arrival in the optimization, that is, from the table "GlobalTable1" the column 4

1660302914684.png

In "parameters" I indicate the following (Could my mistake be in the code OnSet?)

1660303169208.png


Because in the "Experimenter" I Indicate the following

1660303335877.png


"TimeProceso_op" is the End of simulation time

The optimization result are

1660303502763.png


1660303540550.png


But, if I run the simulation with Scenario 5, the result is different

1660303696975.png

1660303794080.png


Could you help me to solve this problem?


Thanks in advance!


0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Javiera VL commented ·
Your code is setting column 1 of the table (tab[i][1]). It seems like it should set column 4 (tab[i][4]). Once you make that change, you can test changing the sequence manually, and resetting and running the model. You can verify that your global table is being changed correctly, and that your model uses the sequence in the global table correctly.
0 Likes 0 ·
Javiera VL avatar image Javiera VL Jordan Johnson ♦♦ commented ·
Now Yes! thank you very much for your help!
0 Likes 0 ·

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.