Surrogateopt stopping the plot in between
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Shubham
2024-8-27
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.
回答(1 个)
Shubham
2024-8-27
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!