Initial Population in GA
6 ビュー (過去 30 日間)
古いコメントを表示
LB
2019 年 11 月 14 日
回答済み: JESUS DAVID ARIZA ROYETH
2019 年 11 月 14 日
I have 7 pipes in Water distribution network and I have to select the size (Diameter) of each pipes randomly from the given set of 14 availaible Pipe diameter for a population size of 100.how can i code in MATLAB.
0 件のコメント
採用された回答
JESUS DAVID ARIZA ROYETH
2019 年 11 月 14 日
I leave you a hypothetical example:
availablespipediameter=[0.365 0.406 0.437 0.5 0.562 0.593 0.687 0.8 0.9:0.1:1.4];%put your data here
population=availablespipediameter(randi(length(availablespipediameter),100,7)) %your random population
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!