How to use code to trigger optimization execution automatically

How to use code to trigger optimization execution automatically

PDKG
Not applicable
101 Views
4 Replies
Message 1 of 5

How to use code to trigger optimization execution automatically

PDKG
Not applicable

[ FlexSim 24.0.2 ]

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 ?

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

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

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

Jeanette_Fullmer
Community Manager
Community Manager

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

Jeanette_Fullmer
Community Manager
Community Manager

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

Jeanette_Fullmer
Community Manager
Community Manager

Hi @PD, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes