**Creation of an SWMM Toolkit for Its Application in Urban Drainage Networks Optimization**

#### **F. Javier Martínez-Solano 1,\*, Pedro L. Iglesias-Rey 1, Juan G. Saldarriaga 2 and Daniel Vallejo 2**


Academic Editor: Helena Margarida Ramos Received: 4 May 2016; Accepted: 15 June 2016; Published: 18 June 2016

**Abstract:** The Storm Water Management Model (SWMM) is a dynamic simulation engine of flow in sewer systems developed by the USEPA. It has been successfully used for analyzing and designing both storm water and waste water systems. However, despite including some interfacing functions, these functions are insufficient for certain simulations. This paper describes some new functions that have been added to the existing ones to form a library of functions (Toolkit). The Toolkit presented here will allow the direct modification of network data during simulation without the need to access the input file. To support the use of this library, a testing protocol was performed in order to evaluate both calculation time and accuracy of results. Finally, a case study is presented. In this application, this library will be used for the design of a sewerage network by using a genetic algorithm based on successive iterations.

**Keywords:** SWMM Toolkit; sewer system; design; optimization
