From: Martin on
Hello everyone,

when using the optimset the following error message appears:

??? Error using ==> optimset at 215
Unrecognized parameter name 'Algorithm'.

It refers to

if n<=1000;
options=optimset('maxiter',1000,'tolx', 1e-4,'tolfun', 1e-6,...
'display','off','LargeScale', 'off','Algorithm', 'active-set');

According to the help the algorith active-set is defined. If I delete these two arguments ('Algorithm', 'active-set') an error occurs when using the fmincon function. I am a bit confused and cannot find the error.
Does someone see what`s going wrong?

Thanks for your help in advance!

Best,

Martin
From: Steven Lord on

"Martin " <Martin.Spindler(a)gmx.de> wrote in message
news:hn3078$b6q$1(a)fred.mathworks.com...
> Hello everyone,
>
> when using the optimset the following error message appears:
>
> ??? Error using ==> optimset at 215
> Unrecognized parameter name 'Algorithm'.
>
> It refers to
>
> if n<=1000; options=optimset('maxiter',1000,'tolx', 1e-4,'tolfun',
> 1e-6,...
> 'display','off','LargeScale', 'off','Algorithm', 'active-set');
>
> According to the help the algorith active-set is defined. If I delete
> these two arguments ('Algorithm', 'active-set') an error occurs when using
> the fmincon function. I am a bit confused and cannot find the error.
> Does someone see what`s going wrong?

Which version of the toolbox are you using? If you're using a version prior
to 4.0 (release R2008a), which is when the release notes indicate this
option was added, then the Algorithm option will not be recognized.

http://www.mathworks.com/access/helpdesk/help/toolbox/optim/rn/bre20mn.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: Alan Weiss on
Martin wrote:
> Hello everyone,
>
> when using the optimset the following error message appears:
>
> ??? Error using ==> optimset at 215
> Unrecognized parameter name 'Algorithm'.
>
> It refers to
>
> if n<=1000; options=optimset('maxiter',1000,'tolx', 1e-4,'tolfun',
> 1e-6,...
> 'display','off','LargeScale', 'off','Algorithm', 'active-set');
>
> According to the help the algorith active-set is defined. If I delete
> these two arguments ('Algorithm', 'active-set') an error occurs when
> using the fmincon function. I am a bit confused and cannot find the error.
> Does someone see what`s going wrong?
>
> Thanks for your help in advance!
>
> Best,
>
> Martin

What version of MATLAB are you using? According to
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/rn/bre20mn.html
the Algorithm option was added to fmincon in R2008a.

By the way, you are setting inconsistent options: if you use the
Algorithm option, don't use the LargeScale option. If you are using a
MATLAB version earlier than R2008a, don't use the Algorithm option.

Alan Weiss
MATLAB mathematical toolbox documentation