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
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에 대해 자세히 알아보기

질문:

2019년 4월 5일

답변:

2021년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by