Error using optimset (line 214) Unrecognized parameter name 'NonlEqnAlgorithm'.
Mostrar comentarios más antiguos
Hi,
I have the following piece of Matlab 2008a code:
fcn = @(x)objfcn(x, Recovery, DiscountFactors, Tenors) - Spreads; % start with PDs equal to 50% RNPD = fsolve(fcn, 0.5 .* ones(1, length(Tenors)), optimset('Display', 'off', 'NonlEqnAlgorithm', 'lm'));
I am trying to run this in Matlab 2014a, but I get the following error:
Error using optimset (line 214) Unrecognized parameter name 'NonlEqnAlgorithm'.
Could you please help me resolve this error as I am new to Matlab?
Respuestas (1)
Alan Weiss
el 22 de Oct. de 2014
Remove the 'NonlEqnAlgorithm' argument, as it makes no sense:
fsolve(fcn, 0.5 .* ones(1, length(Tenors)), optimset('Display', 'off'));
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Optimization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!