Unable to run matlab example "Solve Constrained Nonlinear Optimization, Problem-Based"

I try to run one of the matlabs example code from
To do this, I run the commend mentioned in the upper link
openExample('optim/SolveConstrainedNonlinearOptimizationProblemBasedExample')
the text live editor appears but as I try to run it, the following error appears:
Unable to resolve the name 'optim.internal.utils.hasGlobalOptimizationToolbox'.
Error in optim.internal.problemdef.ProblemImpl/solveImpl>iParseInputs
Error in optim.internal.problemdef.ProblemImpl/solveImpl
Error in optim.problemdef.OptimizationProblem/solve

Answers (0)

Categories

Asked:

on 13 Jul 2022

Commented:

on 13 Jul 2022

Community Treasure Hunt

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

Start Hunting!