question

Khalid Kayal avatar image
0 Likes"
Khalid Kayal asked Khalid Kayal commented

Stop an experiment if a constaint is not satisfied in OPTQuest ?

Hi,

I am using OPTquest, and I have couple of constraints which look into a global table that updates on reset, and I would like OPTQuest to evaluate those constraints at the beginning of the experiment and if it's not feasible then skip the experiment. Is there a way to do that?

Thanks,

Khalid

FlexSim 17.1.1
optquestoptimizerexperiment
· 2
5 |100000

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

Raashid Mohammed avatar image Raashid Mohammed commented ·

@Ben Wilson

We would like OPTQuest to not record the infeasible solutions. As we can run only 10000 experiments, and most of our solutions are infeasible

Is there a code we can write at Start Experiment trigger to not record and/or not run infeasible experiment ? if the constraints defined are not satisfied( constraints are calculated on model reset )

thanks

See attached model

simpleoptquestkayal.fsm

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·
0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Khalid Kayal commented

There is not a way to do that. OptQuest generates solutions, evaluates them, and then marks them as infeasible. That part of the algorithm is handled entirely by OptQuest.

One thing you can do is run OptQuest, collect the best solutions, and then use those solutions as "seed" solutions for the next optimization. There is a checkbox to Use scenarios as suggested solutions. This means you can export the best solutions from an Optimization as experiment scenarios, and then run another optimization that uses those solutions at the beginning of the search. There is no limit on the number of suggested scenarios you can have (although it seems like each one would count against the 10,000 limit).

However, it sounds more like the 10,000 limit is the issue. I will make sure this gets on the dev list, to make that value adjustable.

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

Khalid Kayal avatar image Khalid Kayal commented ·

I see, well thanks for clarifying, I guess Ill do what you suggested by having seed solutions from multiple optimization runs.

It would be great to increase that limit as 10,000 is too low !

Thanks again Jordan

Regards,

Khalid

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.