GA optimization toolbox sover

2 次查看(过去 30 天)
Nilufa Yeasmin
Nilufa Yeasmin 2016-12-21
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 个评论
Nilufa Yeasmin
Nilufa Yeasmin 2016-12-23
Thanks Walter Roberson for your advice. I have attach the file for my problem. How can I breakdown this equation in matlab.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
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 )

类别

Help CenterFile Exchange 中查找有关 Nonlinear Control 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by