question

WILSON TRIGUEIRO DE SOUSA JÚNIOR avatar image
0 Likes"
WILSON TRIGUEIRO DE SOUSA JÚNIOR asked Emily Hardy edited

How to recursively call the simulation for optimization.

Hi, I’m trying to recursively call the simulation on a loop where each call of the loop gives a specific value for resource and process parameters. With that I want to implement a simulation optimization algorithm (like Genetic Algorithm) inside Flexsim (different from OptQuest), probably inside FlexScript but I haven't found any specific reference to functions like “reset simulation” and “start simulation”. Please, I will be really grateful if someone could help with any idea how to make this.

FlexSim 18.1.0
optquestoptimizationloopgenetic algorithm
· 3
5 |100000

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

Michael Machado avatar image Michael Machado commented ·

@WILSON TRIGUEIRO DE SOUSA JÚNIOR if you wanna implement a simulation optimization algorithm using Scilab, Matlab, Gusek, Lindo, Lingo or other optimization tool we have some portuguse step by step material on how to do that with some versions of FlexSim. With FlexSim 2018 and 2018 Update 1 we didn't test yet. Let me know if that works and I will forward by e-mail to you.

Thanks,

2 Likes 2 ·
Joerg Vogel avatar image Joerg Vogel commented ·

@WILSON TRIGUEIRO DE SOUSA JÚNIOR, you are aware of the search tool and used it to find this answer of the old community forum by looking for "genetic". It isn't straight a combination of Optquest and FlexSim.

0 Likes 0 ·
WILSON TRIGUEIRO DE SOUSA JÚNIOR avatar image WILSON TRIGUEIRO DE SOUSA JÚNIOR Joerg Vogel commented ·

Hi Jörg,

I tried this old forum post before but the given example is not working on Flexsim 18.1.

Maybe I will try on an old version later, but thanks for the answer!

0 Likes 0 ·

1 Answer

Michael Machado avatar image
3 Likes"
Michael Machado answered WILSON TRIGUEIRO DE SOUSA JÚNIOR commented

Here is the material step by step on how to handle that with Scilab, per instance. The material is available in portuguese only. Tks

Be aware that with FlexSim 2018 and 2018 Update 1 the integration should be done more easily with the new features. integration-model-flexsim-scilab-161.zip


· 1
5 |100000

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

Thank you very much Michael,

It’s exactly what I was looking for!

0 Likes 0 ·