How does make function of this equation?

1 回表示 (過去 30 日間)
Misbah Habib
Misbah Habib 2019 年 12 月 22 日
コメント済み: Walter Roberson 2019 年 12 月 25 日
Can anyone help me,how to implement this equation in MATLAB?
This is basically the fitness function of genetic algorithm.
  5 件のコメント
dpb
dpb 2019 年 12 月 22 日
Attach expression we can read w/o downloading a file, please...
Misbah Habib
Misbah Habib 2019 年 12 月 23 日
Sir now i upload the picture of equation.

サインインしてコメントする。

回答 (3 件)

Misbah Habib
Misbah Habib 2019 年 12 月 23 日
equation algorithm.png
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 12 月 23 日
What is the variable of summation? Is the i in gi(j) the same as the i in li-1 ?
The variables potentially used in the summation are i and j, but both of those appear to be used in the bounds of summation.

サインインしてコメントする。


Walter Roberson
Walter Roberson 2019 年 12 月 23 日
1 / (N * sum(C(sub2ind(size(C), gi(1:end-1), gi(2:end)))))
... under various assumptions about what the equation is intended to mean.
  5 件のコメント
Misbah Habib
Misbah Habib 2019 年 12 月 24 日
Alright sir . yes i want to use this equation to optimize (minimization) . I want to use this equation for solving problem in MANET(mobile ad hoc network) to improve the performance of netwok.
Walter Roberson
Walter Roberson 2019 年 12 月 24 日
When you are doing the optimization, what would the input be?
If the input is a list of nodes forming a path, and you are trying to find an optimal path, then be aware that your current expression will find the path with highest C entries, which is presumably the same thing as the path with the highest cost. The higher the cost of the path, the lower the value of 1/N * 1/cost .
If your C represents distance or represents energy use to transmit from one node to another, then minimizing your would involving maximizing your cost, which would in turn involve shooting messages as far away as possible and then back closer as the least efficient path would lead to highest sum() and that leads to lowest reciprocal-of-sum.

サインインしてコメントする。


Misbah Habib
Misbah Habib 2019 年 12 月 24 日
Some of the examples , i read some type of series for making function .i did not understand their logic.
  3 件のコメント
Misbah Habib
Misbah Habib 2019 年 12 月 25 日
Thank you so much sir. Let me try this one.
Walter Roberson
Walter Roberson 2019 年 12 月 25 日
You would do a lot more efficient with ga() if you did not use intcon and instead used a custom creation and custom mutation and custom crossover functions that "just happened" to impose permutations.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by