Share/Save/Bookmark
Subscribe
 

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

Get Adobe Flash player

  #1 (permalink)  
Old 01-08-2009, 05:31 PM
Registered User
 
Join Date: Jun 2008
Location: México
Posts: 4
Why EPANET Toolkit Cannot open a File ?

Hi !!

I work in a GA (Genetic Algorithm) using Epanet Toolkit in C++.
When i run my GA everything is ok, but around the 3200 calls to Toolkit, sendme an error 305 (Cannot open hydraulics file) or error 303 (Cannot open report file).

I did not know why!!!
Please some one help me

Thanks

nrg_05@hotmail.com
Reply With Quote
  #2 (permalink)  
Old 01-23-2009, 06:42 AM
bma bma is offline
Registered User
 
Join Date: Jul 2008
Location: France
Posts: 32
Hello ! (excuse me fo my poor english but i'm french ;-) )

Which functions in toolkit are U using ?

I know that's some variable are lenght limited so... can you explain your problem in détails ?
Reply With Quote
  #3 (permalink)  
Old 01-26-2009, 02:08 PM
Registered User
 
Join Date: Jun 2008
Location: México
Posts: 4
Hi and Thanks


I use only hidrahulic functions, ENsolveH(), ENgetnodevalue(), ENgetlinkvalue(), etc.
But the error occurs when calling ENopen().

my program do

OpenToolkit
read a original hidrahulic network by INP file and save data net
CloseToolkit
repeat
Install VRP on a Original net, and write new net on INP File
OpenToolkit
Read new network and get Presure values
Close Tollkit
end repeat

But when i repeat that for around 32000 times occurs an error

error 305 (Cannot open hydraulics file) or
error 303 (Cannot open report file).

Thanks for Helme !! ;-)

nrg_05@hotmail.com
Reply With Quote
  #4 (permalink)  
Old 03-24-2009, 01:19 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
you might read the report file after closeing toolkit and when it is still readonly you try to open it up in the next run.
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 05:55 AM.