Surrogateopt stopping the plot in between

4 Ansichten (letzte 30 Tage)
Vinod
Vinod am 27 Aug. 2024
Beantwortet: Shubham am 27 Aug. 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 Kommentar
Shubham
Shubham am 27 Aug. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Shubham
Shubham am 27 Aug. 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!

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by