MATLAB Answers

pronty
0

Optimset error: How to get over it?

Asked by pronty
on 21 Jul 2014
Latest activity Answered by Shashank Prasanna on 22 Jul 2014
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.

  0 Comments

Sign in to comment.

1 Answer

Answer by Shashank Prasanna on 22 Jul 2014

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.

  0 Comments

Sign in to comment.