Too many input arguments-ga mixed integer optimiazation
3 次查看(过去 30 天)
显示 更早的评论
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))
0 个评论
回答(3 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!