필터 지우기
필터 지우기

GA optimization toolbox sover

조회 수: 2 (최근 30일)
Nilufa Yeasmin
Nilufa Yeasmin 2016년 12월 21일
댓글: Walter Roberson 2017년 1월 3일
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