How to write fitness function in matlab.

조회 수: 1 (최근 30일)
Shivam Gupta
Shivam Gupta 2019년 6월 30일
댓글: Zhangxi Feng 2019년 7월 2일
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 6월 30일
Proper elaboration and specific questions gets fast response.
Shivam Gupta
Shivam Gupta 2019년 7월 2일
Hello Kalyan thanks for your response
I am want to solve Time dependent Vehicle routing problem using Genetic algorithm solver in matlab.
i need assistance to solve this problem like
1) How to write these equation in matlab.
2) What source material/Books to write these equations in matlab.

댓글을 달려면 로그인하십시오.

답변 (1개)

Zhangxi Feng
Zhangxi Feng 2019년 7월 1일
Please add some more information for your question so we can better help you.
A fittness function is just like any other function except it is expected to return a specific output that will be used by whatever function is calling the fittness function. Looks like you need to implement the function in the image you attached.
By the way, windows have a snipping tool that can easily capture screenshots without needing to use your camera.
Jesse
  댓글 수: 4
Shivam Gupta
Shivam Gupta 2019년 7월 2일
Hello Feng
it is a simple problem. we just have to write these equations. which is the main problem for me now.
No of vehicle = 8
We have distance matrix
TIme depedent function of speed need to be made.
i have attached the refernce paper which i am following to solve the problem.
link of Genetic algorithm solver in matlab.
This will give some more insight in this regard.
Zhangxi Feng
Zhangxi Feng 2019년 7월 2일
Although I have implemented a fittness function with genetic algorithm but I never used the GUI. I just straight up programmed it. I am not familiar with the GUI part of the GA or GAmultiobj. Nevertheless, you can first try to create a simple error function that returns anything and see the results for yourself as a start.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by