I want to know the information about genetic algorithm for optimization of equation with 2 parameters and code
1 回表示 (過去 30 日間)
古いコメントを表示
I want to know the information about genetic algorithm for optimization of equation with 2 parameters and code if the example is related to mechanical with multiple equations Thank you
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 1 月 25 日
nvars = 2;
best_location = ga(@objective_function, nvars);
Where objective_function is the function that takes a vector of length nvars and calculates a fitness (lower value being better, so if you are trying to maximize something, return the negative of what you want maximized.)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!