question

Shinya O avatar image
0 Likes"
Shinya O asked Shinya O commented

How to execute Optimizer automatically?

Hi, I'd like to execute Optimizer automatically.

Is it possible to automate repeated executions of Optimizer while changing settings such as which parameter to select?

If we can do this, the parameter 1, parameter 2, ..., parameter n can be optimized separately.

This is a useful strategy when you can break a big problem into independent smaller ones.

Please tell me more if you know about it.

Thanks.

FlexSim 21.0.6
optimizerautomatically
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 Shinya O commented

There isn't a built in way to do this. In version 22.0, you can define multiple optimizations up front. But there isn't an automated way to apply the optimal value found in a previous optimization to the next.

In most cases, however, this approach will yield worse results than optimizing all parameters together. When you optimize with only a single parameter, you'll have to determine what the other parameter values should be. If you choose different values for the constant parameters, the optimal value for the varying parameter will change. If you choose poor values for the other parameters on the first round, you'll get the best of a bad situation. If you then use that value in subsequent optimizations, you're locking in a choice that was made given the bad situation.

I bring that up because I think it would be better to run with all the parameters you plan to optimize, and just let the optimizer run for more iterations. In version 22.0, all the results of your model runs are saved in a separate file. If you run the optimizer again, you no longer have to re-simulate the scenarios that have already been run; the optimizer just looks up the results from the file. This makes it easy to run for a long while, get the best scenario, and then, if you like, use that scenario to start the next optimization.

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

Shinya O avatar image Shinya O commented ·

In most cases, however, this approach will yield worse results than optimizing all parameters together.

I know this point, but the repeated execution of optimizer is a useful method for problems that consist of small independent problems.


Are there any plans to implement optimizer autorun in the future?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Shinya O commented ·

As said you can do nearly anything with FlexSim. You can connect FlexSim as master or client. You use an external program to control parameters within FlexSim. In such a case you can do an optimization by AI or ML A multiple step analysis is individually evaluated by an users opinion. You decide what result is an optimum in a step. Such an approach is Hard to automate inside of FlexSim, but you can try to run FlexSim by batch execution from outside and start a sequence of optimization steps.

0 Likes 0 ·
Shinya O avatar image Shinya O Joerg Vogel commented ·

Thank you for your help. I'll try external programs.

0 Likes 0 ·