Share/Save/Bookmark
Subscribe
 

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

  #1 (permalink)  
Old 02-17-2009, 08:56 AM
Registered User
 
Join Date: Feb 2009
Posts: 1
Genetic Algorithm

Hi,

I've constructed a water dustribution system in MATLAB inp file, and i'm currently working on optimizing pump speed using Genetic Algorithm with mininum cost. The GA needs to read the data (head and flow) from the inp file.

Does anyone have an idea how do it?

Lai
Reply With Quote
  #2 (permalink)  
Old 02-18-2009, 04:42 AM
bma bma is offline
Registered User
 
Join Date: Jul 2008
Location: France
Posts: 32
Hi !

I Think, just use the EPANET dynamic link library (DLL) of functions from Programmer's Toolkit.
http://www.epa.gov/nrmrl/wswrd/dw/epanet/EN2toolkit.zip

use the ENgetlinktype to retrieve the research Pump
then ENgetlinkvalue from linktype=pump to retrieve flow
and for Head
1) i think you must create an node in exit of your pump
2) then retreiving the pressure at junction that you've created with ENgetnodevalue.

....
Reply With Quote
  #3 (permalink)  
Old 02-19-2009, 04:13 AM
sop sop is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
how can i use the epanet2.dll on .Net platform
Reply With Quote
  #4 (permalink)  
Old 03-24-2009, 01:11 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
if you can develop your code in VB6 or in c just use them because it is easy to add .bas file or header file to your project.
but if you still wanna develope your code in .NET you have to change all of the decleartions to .NET format (ex: c#)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:10 AM.