Why am I getting this error??!! #fmincon
16 views (last 30 days)
I am getting the following error in my MATLAB code. I have already checked i hvae these functions on my computer.
Check for missing argument or incorrect argument data type in call to function 'classifyBoundsOnVars'.
Error in fmincon (line 525)
xIndices = classifyBoundsOnVars(l,u,sizes.nVar,true);
Error in optm (line 7)
[x,fval] = fmincon(@optmequation,x0,,,,,,,@constraint,options)
Steve Grikschat on 6 Jul 2021
This is likely due to an installation issue.
fmincon is part of Optimization Toolbox, and if you do not have the full installation, fmincon will be there but other internal functions (like classifyBoundsOnVars) may not.
which -all classifyBoundsOnVars
If it is not there, then you need to (re-)install Optimization Toolbox.