Can I use "optimization expressions" with the Global optimization toolbox?

2 Ansichten (letzte 30 Tage)
mark
mark am 5 Sep. 2019
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

Antworten (0)

Kategorien

Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by