question

Steven Chen avatar image
0 Likes"
Steven Chen asked Jordan Johnson answered

Execute OptQuest during simulation

Hello,

I would like to use OptQuest as a strategy decider. For example, start up the OptQuest after simulating 10 minutes and use the result as new variables of processors/operators.

Is it possible to do that?

FlexSim 18.1.1
optquest
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

This is not possible. The Optimizer assumes that the input model is in a reset state. All child processes call reset before evaluating the replication. Also, the optimizer is not part of the event loop, so the parent process model would not wait for the optimization to finish.

You can write your optimization code in a custom command in FlexScript, or you can write a dll function. A dll has the advantage of being able to connect to third-party optimization packages.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

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.