Genetic algorithm , Epanet Matlab Toolkit
Show older comments
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
Answers (1)
Alessandro Farina
on 26 Mar 2021
0 votes
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.
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!