question

PD avatar image
0 Likes"
PD asked Joerg Vogel edited

How to use code to trigger optimization execution automatically

As title,

1.How to use code to trigger optimization execution automatically

2. How to export optimization result in code automatically

3. Can I get optimization result in Tree ?

FlexSim 24.0.2
optimizationexperimeterflexscript coding
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@PD, why do you want to start an optimization on an event like On Model Open. I don’t think it would appropriate to do this action in any other scenario, because those scenarios involve a reset of a model and then you can start an optimization by statistic menu, too.

Edit: you won’t find a result in a tree, because your model gets executed in several instances parallel on your CPU. A model run in FlexSim is a single thread in a CPU core.
There doesn’t exist a single main master process during an optimization in OptQuest, which you can manipulate by methods of FlexSim. An Optimization is an external process only started from within FlexSim. FlexSim provides only an interface to this external tool.

0 Likes 0 ·

0 Answers

·

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.