question

Jouky D avatar image
1 Like"
Jouky D asked Jouky D commented

How to force Optimizer Run to satisfy all constraints for each replication?

Hello,

I am optimizing using Optimizer Run and I have a constraint such as X>95. When the optimizer give me a solution using 15 replications, the optimizer said that this solution is feasible because the mean satisfy X>95, however, I think that the constraint is not satisfied in all replications. How can I force the Optimizer Run to satisfy all constraints in each replication, and not only the mean?

Thank you!

FlexSim 20.0.2
experimenteroptimizerreplicationsflexsim 20.0.2
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Jouky D, was Jordan Johnson's answer helpful? If so, please click the red "Accept" button on 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Jouky D commented

The best way to do that is to make a performance measure in the model that returns either a 1 or a 0, depending on if your rule is met.

Then make a constraint in the optimizer that performance measure:

PFMConstraintValue >= 1

This works because OptQuest will average your performance measures before checking the constraint. If any of those values aren't 1, the average will be less than one, so the constraint will count as failed.

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

Jouky D avatar image Jouky D commented ·

I did it. I have done a variable (as a label in a BasicFR) and then in the optimizer I've put the constraint. However it does not work for all replications (sometimes the constraint is not satisfied for each replication, however, the mean of this label is satisfied, so it appears as a feasible point). But don't worry, I am exporting all the replications and I am looking it using R. It would be nice to know why does it happen, however I don't really need it.

Thank you.

0 Likes 0 ·

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.