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

jouky_d
Not applicable
3 Views
3 Replies
Message 1 of 4

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

jouky_d
Not applicable

[ FlexSim 20.0.2 ]

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!

Accepted solutions (1)
4 Views
3 Replies
Replies (3)
Message 2 of 4

jordan_johnsonPM57V
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 4

Ben_Wilson_FS
Community Manager
Community Manager

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

jouky_d
Not applicable

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