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.
답변 (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!