Borrar filtros
Borrar filtros

Surrogateopt stopping the plot in between

5 visualizaciones (últimos 30 días)
Vinod
Vinod el 27 de Ag. de 2024
Respondida: Shubham el 27 de Ag. de 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 comentario
Shubham
Shubham el 27 de Ag. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Shubham
Shubham el 27 de Ag. de 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!

Categorías

Más información sobre Surrogate Optimization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by