genetic algorithm 'too many input arguments'
古いコメントを表示
I want to minimize a function with a constraint which has 8 inputs. The problem is I cannot call the by x(1), x(2),etc because they are generated in another program in each loop and thos variables are used in other places. Does anyone have suggestion?
2 件のコメント
Walter Roberson
2013 年 12 月 1 日
Please show your code attempt, and show how the functions are being generated.
Ali Meghdadi
2013 年 12 月 2 日
編集済み: Walter Roberson
2013 年 12 月 2 日
回答 (1 件)
Walter Roberson
2013 年 12 月 2 日
Something like,
constraint_function = @(x) LPS(x(1), x(2), x(3), tilt, TArray, KtArray, LArray, WindArray);
??
カテゴリ
ヘルプ センター および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!