MATlab fminunc error too many input arguments

조회 수: 1 (최근 30일)
Barry Ellis
Barry Ellis 2019년 10월 15일
편집: Matt J 2019년 10월 15일
I run the code from the simple example in the Optimazation Toolbox user's guide:
>>anonrosen = @(x) (100*(x(2) - x(1)^2)^2 + (1-x(1))^2);
>>options = optimoptions(@fminunc,'Algorithm','quasi-newton');
>>[x fval] = fminunc(anonrosen,[-1;2],options)
I get:
Error using fminunc
Too many input arguments.
I have R2019a with Optimazation toolbox Version 8.3
  댓글 수: 1
Matt J
Matt J 2019년 10월 15일
편집: Matt J 2019년 10월 15일
Kindly show us the output of,
>> which -all fminunc
and also,
>> which fminunc(anonrosen,[-1;2],options)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by