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.

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:

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