question

IEThai avatar image
0 Likes"
IEThai asked Logan Gold commented

Stop an optimization if a constraint is not satisfied.

q1.pngI would like to configure the optimization job in experimenter to stop immediately when a constraint is exceeded, before the Stop Time setting.

What steps can I take to reduce the run time of the optimization process without needing to run until the specified stop time?


FlexSim 22.2.0
optquestexperimeteroptimizeconstraintsstop time
q1.png (110.3 KiB)
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Pongsakorn S, was Felix Möhlmann'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 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

When the performance measure changes during the model run, check if it passed the threshold. If so, use endreplication(0) to abort the current replication.

When and how exactly you check the condition will depend on what the PFM measures.

5 |100000

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