question

PD avatar image
0 Likes"
PD asked Jeanette F commented

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

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 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @PD,

Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.

You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.

If your current license is expired, please contact your local distributor to renew.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @PD,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

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.