필터 지우기
필터 지우기

Too many input arguments-ga mixed integer optimiazation

조회 수: 1 (최근 30일)
Joe Ajay
Joe Ajay 2013년 9월 3일
Hi, Following is my code and I get 'Too many input arguments' err any idea why I get it??
[Y,A2] = ga(@scr,4,[],[],[],[],[24,b1,0,1],[29,b2,h,Ll],[],[1 2 3 4],optimset('TolX',1e-12))

답변 (3개)

David Sanchez
David Sanchez 2013년 9월 3일
Instead of using optimset to set the options use gaoptimset.

Joe Ajay
Joe Ajay 2013년 9월 3일
Thanks David, There were additional toolboxes I installed and one of which had 'ga'.
So the problem was which ga to use and nw as I've deleted the old ga, and only one 'ga' toolbox remaining the problem works fine.

Shashank Prasanna
Shashank Prasanna 2013년 9월 3일
Joe, GA is part of the Global Optimization Toolbox. However it is possible that you have another version of GA that is not shipped by the MathWorks.
Execute the following on your MATLAB command line to see all versions of GA on your installation:
>> which -all ga
If you see more than one output then you have some that are shadowed. If you would like to use the default GA please run the following:
>> restoredefaultpath
>> rehash toolboxcache

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by