Effacer les filtres
Effacer les filtres

Surrogateopt stopping the plot in between

5 vues (au cours des 30 derniers jours)
Vinod
Vinod le 27 Août 2024
Réponse apportée : Shubham le 27 Août 2024
I am using Surrogateopt and plotting the results. But in between I get a message that asks me if I want to proceed.
I click yes but the message comes again. I want the results to be plotted at once without accepting it to proceed again and again.
Why does this happen and how to stop the message? Please tell.
  1 commentaire
Shubham
Shubham le 27 Août 2024
Hey Vinod, please share the script that you are using for "surrogateopt" along with data files if any, so that I can reproduce the issue at my end.

Connectez-vous pour commenter.

Réponses (1)

Shubham
Shubham le 27 Août 2024
Hey Vinod,
I understand that you are using "surrogateopt" to perform optimization, but while plotting the values of your objective function, the process stops and you are required to provide user input in order to proceed further. I suspect that you are using a custom plot function for performing the surrogate optimization.
The following documentation for "surrogateopt" mentions that an "OutputFcn" or "PlotFcn" can halt the iterations: https://www.mathworks.com/help/gads/surrogate-optimization-options.html#:~:text=An%20OutputFcn%20or%20PlotFcn%20can%20halt%20the%20iterations.
There are a few examples present in the documentation of "surrogateopt" function that does not have any issues while plotting the results. If you are still encountering the issue, then you may use the paperclip icon to attach the relevant code files.
Hope this would help!

Catégories

En savoir plus sur Surrogate Optimization dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by