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

Risposte (1)

Alessandro Farina
Alessandro Farina il 26 Mar 2021
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.

Categorie

Scopri di più su Data Import and Analysis in Centro assistenza e File Exchange

Richiesto:

il 5 Apr 2019

Risposto:

il 26 Mar 2021

Community Treasure Hunt

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

Start Hunting!

Translated by