surrogateopt iterative display error

While using surrogateopt I recieve the following error only when I enable the display of iterative output messages ('Display','iter' set using optimoptions):
"Error using fprintf
Function is not defined for 'struct' inputs."
My optimization problem has non-linear constraints so I am using a function that generates a struct with a .fval field. It seems like there could be an imcompatibility between that and the output text function, but I want to see if there is something I am not doing correctly.

2 个评论

What software version are you using? Nonlinear constraint support was introduced in R2020a.
Alan Weiss
MATLAB mathematical toolbox documentation
2019b. I guess I need to upgrade; thank you.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Surrogate Optimization 的更多信息

产品

版本

R2019b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by