dleutnant / swmmr

R Interface for US EPA's SWMM
https://cran.r-project.org/package=swmmr
39 stars 15 forks source link

parsing error of section OUTFALLS when name of time series exceeds 10 characters #34

Open laltuashu opened 5 years ago

laltuashu commented 5 years ago

Hello all, When I run the model using parallel mode in DEoptim, the error is as given as below "Error in checkForRemoteErrors(val) : 4 nodes produced errors; first error: cannot coerce class 'c("xts", "zoo")' to a data.frame".

,But when I run the model without parallel mode in DEoptim, I got the errors as below

Error in [.xts(x, , 2) : subscript out of bounds In addition: Warning messages: 1: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="C:/Users/ratnakar/AppData/Local/Temp/RtmpkNMgOy/fileca41c942dd9.out": The system cannot find the file specified 2: In read_out(file = swmm_files$out, iType = 1, object_name = "621", : error reading out file

Any suggestions in this regard will be highly appreciated.

Regards, Ashu

dleutnant commented 5 years ago

@laltuashu I'm able to reproduce the error. A quick fix would be to limit the length of the name of your outfall time series to 10 characters, i.e. "outfall_timeseries1" becomes "outfall_ti".

laltuashu commented 5 years ago

Hello @dleutnant Sir, Thank you for the guidance. The error is resolved now, but the simulation time is too high. Is there any way to increase the speed of calibration execution?

Regards, Ashu

dleutnant commented 5 years ago

You could 1) modify your model structure and setup (model size, time steps, simulation duration, etc.) with respect to your modeling objective and/or 2) use more computational resources if the algorithm supports parallel execution.

dleutnant commented 5 years ago

...of course the choice of optimization algorithm also might improve your calibration efficiency.

laltuashu commented 5 years ago

Thank you sir for your suggestion. I will certainly try ways to reduce simulation time.

With Regards, Ashu