GA optimization toolbox sover
2 ビュー (過去 30 日間)
古いコメントを表示
Hello I am a student of IPE and i am working with VRPWSDP. I want to optimize the travelling distnce in MATLAB by using GA optimization toolbox.But I am unable to write fitness function,linear equality constrants,inequality constraints etc. How will I do it.
7 件のコメント
回答 (1 件)
Walter Roberson
2016 年 12 月 23 日
function cost = objective(x, d)
cost = sum(d(:) .* x(:));
end
To be used with
ga( @(x) objective(x, d), 20*20*5 )
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Nonlinear Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!