How to execute Optimizer automatically?

How to execute Optimizer automatically?

ozawa_shinya
Advocate Advocate
184 Views
4 Replies
Message 1 of 5

How to execute Optimizer automatically?

ozawa_shinya
Advocate
Advocate

[ FlexSim 21.0.6 ]

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.

0 Likes
Accepted solutions (1)
185 Views
4 Replies
Replies (4)
Message 2 of 5

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 5

ozawa_shinya
Advocate
Advocate

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
Message 4 of 5

joerg_vogel_HsH
Mentor
Mentor

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
Message 5 of 5

ozawa_shinya
Advocate
Advocate

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

0 Likes