Can I use "optimization expressions" with the Global optimization toolbox?
显示 更早的评论
I have an optimization problem where the Objective function and Constraints rely on results of the same function. Since I do not want to evaluate the function twice I would like to use the "fcn2optimexpr" function to make an "optimization expression" datatype that I can use in problem definition. (Just like this: https://de.mathworks.com/help/optim/ug/objective-and-constraints-using-common-function.html)
However, I now want to use this expression with the Global Optimization Toolbox (not the Optimization toolbox). Is this possible? When I try to set up a problem with createOptimProblem, the solver throws an error, saying the objective function is the wrong type.
Thank you for any help!
Best,
Mark
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!