Can I use "optimization expressions" with the Global optimization toolbox?
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!