Undefined function 'classifyBoundsOnVars' for input arguments of type 'double'.
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello,
I am trying to run fmincon and I am getting the following error
Undefined function 'classifyBoundsOnVars' for input arguments of type 'double'.
Error in fmincon (line 499)
xIndices = classifyBoundsOnVars(l,u,sizes.nVar,true);
when I put in the command window:
open classifyBoundsOnVars
it appears:
Error using open (line 85)
File 'classifyBoundsOnVars' not found.
This means the function doesn't exist. i am wondering why I cannot run the optimization and why I don't have the 'classifyBoundsOnVars' function.
댓글 수: 0
답변 (1개)
Mudambi Srivatsa
2017년 6월 26일
Use the following command and see if these functions are present on your computer.
>> which -all fmincon
>> which -all classifyBoundsOnVars
'fmincon' function does not come with base MATLAB and it is in the Optimization toolbox, so please also check if you have this toolbox on your license.
If there is no issue with the installation and license, the output for the above commands will be as follows:
<C:\Program Files\MATLAB\R2017a\toolbox\shared\optimlib\fmincon.p>
<C:\Program Files\MATLAB\R2017a\toolbox\shared\optimlib\fmincon.m> % Shadowed
<C:\Program Files\MATLAB\R2017a\toolbox\shared\optimlib\private\classifyBoundsOnVars.m> % Private to optimlib
Also check if the output of the “ver –support” lists the Optimization Toolbox. Try reinstalling the Optimization toolbox if nothing else works. To reinstall it, you can use the “Add-Ons Manager” feature.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!