Genetic algorithm , Epanet Matlab Toolkit
이전 댓글 표시
I am using Epanet Matlab Toolkit to simulate and optimize the size of pipline diameter, How ever the change in the variables in GA code doesnot affect the inp file inturn the solution stays the same during the optimization process. why does that happen, if someone can be helpfull.
Thak U in advance
답변 (1개)
Alessandro Farina
2021년 3월 26일
0 개 추천
Hi Engy, from what you write, I'm assuming that you want to change the .inp file during the optimization process. This could slow down your code since you output every time a new file and re-read it again and again...
Instead, you could create an array and storing into it the new diameters and let the GA read it instead of the .inp file.
Once finished, you can output the resulting vector to the .inp file.
Hope I can be helpful.
카테고리
도움말 센터 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!