question

Arimba W avatar image
0 Likes"
Arimba W asked Arimba W action

Custom optimization algorithm for Simulation

Hi there,

I would like to ask, can i add custom optimization algorithm (built by R or Phyton) in Flexim simulation? and how to do it?

thank you very much

FlexSim 18.2.2
simulationoptimizationmachine learningalgorithm
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

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

If you are using an external program like R or Python, you can usually set up an optimization loop using files. Have R or Python write the current variables values to a file. Then you can start FlexSim from R or Python, using command line parameters, and have it open a specific model. You can use the OnModelOpen trigger to have the model read the variable values file, run the model, and then dump your performance measures to a file. You can then read that file with R or Python, and the optimization cycle can continue.

See the answers to this question for more information:

https://answers.flexsim.com/questions/21116/automatically-configure-and-run-a-flexsim-model.html

5 |100000

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

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.