Custom optimization algorithm for Simulation

Custom optimization algorithm for Simulation

arimba_w
Not applicable
401 Views
1 Reply
Message 1 of 2

Custom optimization algorithm for Simulation

arimba_w
Not applicable

[ FlexSim 18.2.2 ]

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

0 Likes
Accepted solutions (1)
402 Views
1 Reply
Reply (1)
Message 2 of 2

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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

.


Jordan Johnson
Principal Software Engineer
>