-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convergence issues with networks in the latest dev branch #736
Comments
The regression testing protocol in EPANET is similar to that of SWMM. A description of how the latter works can be found here (see the section starting with Regression Testing). The tools needed to run it are located in this project's |
Has the original commenter on LinkedIn supplied any models that did not converge in EPANET2.3? It may be may lack of understanding but SWMM seems to have more test models. |
Thanks @LRossman - my thought was we could modify, or create an alternative of @dickinsonre - not yet, but I will ask Paul to share the models either her or privately with any of the contributors. |
I encountered several challenges while attempting to run the regression tests locally, I tired my Mac, a Windows machine, and a Windows server in a virtual machine. Although I managed to generate the output files (OUT) using the It seems to be from the dependency The entire process of setting up and understanding the code executed during regression testing proved to be extremely challenging. It might be beneficial to refactor the codebase to allow anyone cloning the repository to run tests with minimal effort. We could use Docker - allowing the build, unit tests, and regression tests to be run within a containerized environment, removing the issues with dependencies. However, I don’t want to rush into adding another tool to the already complex toolchain. During my testing, I ran the 51 existing models and noticed some minor differences, although they were not statistically significant. Potentially these surfaced because of my comparison function was not considering ‘rtol’ and ‘atol’ correctly, I will keep investigating. In addition to the existing models, I also ran the first batch of 130 private models and found some significant differences in pressure values in a handful of models. I plan to narrow down sections of these models to affected sections and share them. Almost all models converged successfully, except for a few instances where illegal parameters such as 0 DW roughness were present. I will continue my investigation and share further updates. |
Regarding the question of convergence rates between v2.2 and 2.3 (the current
They all contained dozens (sometimes hundreds) of pumps and valves. The runs were made for just a single time period. 24 of 30 took exactly the same number of trials to converge. Two networks failed to converge with either version. The remaining 4 converged with slight differences in number of trials (38 v. 35, 63 v. 65, 35 v. 29, 69 v. 70). I think this presents strong evidence that v2.3 does not have convergence issues compared to v2.2. |
@LRossman I would agree that there is no evidence so far to suggest issues with convergence. Ultimately the burden of proof should reside with the individual making the claim, but I have yet to receive anything from Paul. Because of the seriousness and public nature of the claim, I've still gone through the process to make sure there are no issues. I think some interesting outcomes can still come from this investigation, such as making it easier to run the regression testing locally, both with the public and a private dataset and I can open up separate issues for those soon. The one network where I did find different pressure results was for a long cross connection pipe between two tanks that was isolated from any supply, so it would not be providing realistic pressure either way. But I will still share those models and results shortly. It's taking a bit of time, but I'm hoping in the next few days I can share what I've found and close off this issue if there are no true issues to report. |
On a comment in a LinkedIn post, Paul Boulos made the following comments:
When I followed up, and asked if he shared the comments with the OWA-EPANET maintainers he replied:
Have any of the other contributors or maintainers, especially those with USEPA connections, aware of any models that fail to converge in the latest development branch of OWA-EPANET?
Do we want to look at modifying the existing CI/CD tooling around testing network results to allow us to privately run tests on our own database/folder of models?
I have access to hundreds of real models, and I'm sure many of the other contributors here do too, most of which can not be shared but it would be interested to confirm stable model results during development.
The text was updated successfully, but these errors were encountered: