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

Respuestas (1)

Alessandro Farina
Alessandro Farina el 26 de Mzo. de 2021

0 votos

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.

Categorías

Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Abr. de 2019

Respondida:

el 26 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by