gamultiobj--Too many input arguments.

2 ビュー (過去 30 日間)
Tony Cheng
Tony Cheng 2017 年 1 月 17 日
コメント済み: Walter Roberson 2017 年 1 月 17 日
Hi guys,
I am using gamultiobj to optimize three aims at the same time.
The parameters including the aim function, the linear inequalities and equalities and nonlinear constraint function are defined strictly according to the gamultiobj syntax.
But when I run the file, matlab always indicates:
Error using gamultiobj Too many input arguments.
I am using the MATLAB 2013a version.
Anyone's helps are appreciated very much!
Thanks very much!
Cheers
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 1 月 17 日
Please post your code
Tony Cheng
Tony Cheng 2017 年 1 月 17 日
編集済み: Walter Roberson 2017 年 1 月 17 日
Dear Walter,
The followings are the codes related to the constrained MOGA:
options_moga = gaoptimset(@gamultiobj) ;
options_moga = gaoptimset( options_moga , 'Tolfun' , 1e-2 , 'TolCon' , 1e-2 , 'StallGenLimit' , 200 ) ;
AIM = @(XX)force_aim1( XX ) ;
nonliear_constraint = @(XX)physical_constraints( XX ) ;
[ force_and_torque , aim_value , exitflag, output , population, score ] = gamultiobj( AIM , 9 , ...
A_inequation , power_constraint , ...
AEQ_modify , BEQ_modify , ...
lower_bound , upper_bound , ...
nonliear_constraint , options_moga )
THANKS so much!

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 17 日
In R2013a, gamultiobj() did not accept nonlinear constraints.
Those became available in R2014b
  2 件のコメント
Tony Cheng
Tony Cheng 2017 年 1 月 17 日
Thank u Walter! I will try to use 2014b.
But it seems not easy to get it...
But still thx u for your help!
Walter Roberson
Walter Roberson 2017 年 1 月 17 日
If you have a license for at least R2014b already, then visit https://www.mathworks.com/mwaccount and click on your license and click to download and then on the right hand side of that, you can choose the version you want to download.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultiobjective Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by