Optimset error: How to get over it?

조회 수: 7 (최근 30일)
pronty
pronty 2014년 7월 21일
답변: Shashank Prasanna 2014년 7월 22일
I get this error because of optimset. How do I get over it?
TGPKNNPred = TGPKNN(TestInput, Input, Target, Param);
Error using optimset (line 211)
The LineSearchType option is no longer valid. It was only used by the Gauss-Newton algorithm, which is no longer used in Optimization toolbox solvers.
The error occurs when I try to run the file TGPDemoHMAX.m as it gets to line 31 under the code block
% Twin Gaussian Processes with K Nearest Neighbors.

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2014년 7월 22일
It appears that the code you found was written using an older version of MATLAB (R2011a or earlier). LineSearchType has since been depricated as mentioned in the release notes:
You can try fixing this yourself by following the recommendations in the above link (look at R2011b) OR contact the author of the file and ask them to fix it.

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by