<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>An ASP Approach for the Optimal Placement of the Isolation Valves in a Water Distribution System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Andrea Peano Supervisor: Marco Gavanelli</string-name>
          <email>andrea.peano@unife.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>EnDiF</institution>
          ,
          <addr-line>Universita` degli Studi di Ferrara via G. Saragat 1 - 44122 Ferrara</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <fpage>33</fpage>
      <lpage>37</lpage>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>My Ph.D. Thesis relates to real-life optimization problems in the hydraulic
engineering field. More precisely, with the collaboration of computer scientists,
operational researchers and hydraulic engineers, I investigate and exploit
potentialities of various Operational Research and Artificial Intelligence techniques in
order to achieve good (and, whenever possible, optimal) solutions for those
particular design issues of the urban hydraulic network that can be effectively
modelled as known combinatorial optimization problems. Furthermore, such design
issues often require to devise new specialized variants of the known combinatorial
optimization problems.</p>
      <p>
        For example, the problem of minimizing the impact of a contamination in a
hydraulic network can be seen, under opportune assumptions, as a variant of the
well known Multiple Traveling Salesman Problem (MTSP); since the quality of
feasible solutions must be computed through a burdensome hydraulic simulation,
such optimization problem was addressed by us by means of several genetic
algorithms [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In particular, in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we proposed a novel genetic encoding for
the MTSP for which we defined new genetic crossover operators based on ad
hoc mixed integer linear programming (sub-)optimizations, obtaining a hybrid
genetic algorithm.
      </p>
      <p>
        Another real-life combinatorial optimization problem which is a typical issue
during the design of a hydraulic network is finding the optimal positioning of
a limited number of isolation valves on the network. Up to now, we exploited
two different technologies, following two independent approaches: in the first we
modelled the above mentioned problem by means of a Bilevel (Mixed Integer)
Linear Programming [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] formalization, discussed in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]; I presented the study
at the 3rd Student Conference on Operational Research (SCOR 2012). In the
second approach, we addressed such optimization problem by defining several
Answer Set Programming (ASP)[
        <xref ref-type="bibr" rid="ref1 ref11 ref8">1, 11, 8</xref>
        ] programs, discussed in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Both the
optimization approaches compute the globally optimum placement of the valves.
      </p>
      <p>In the next section I will briefly describe the problem of the isolation valve
placement on hydraulic networks and the ASP approach designed to solve it.</p>
    </sec>
    <sec id="sec-2">
      <title>The Isolation Valves Location Problem</title>
      <p>
        Water Distributions Systems (WDSs) are strategic urban infrastructures. Their
planning is, in turn, a strategic task in terms of costs control and to assure a
fair degree of reliability. For example, during the design of a water distribution
network, one of the choices is the design of the isolation system. It is a real-life
problem for hydraulic engineers, and in recent years it has been studied through
computational methods in the hydroinformatics literature [
        <xref ref-type="bibr" rid="ref4 ref9">9, 4</xref>
        ].
      </p>
      <p>A water distribution system has the main objective of providing water to
homes and facilities that require it. The water distribution network can be
thought of as a labelled indirected graph, in which the edges represent the pipes
in the network. There is at least one special node that represents the source of
water (node 1 in Figure 1), and the users’ homes are connected to the edges. For
each edge, we assume to have knowledge about the average amount of water (in
litres per second) that is drawn by the users insisting on that edge (during the
day); such value is the label associated to the edge, and it is called the users’
demand.</p>
      <p>T</p>
      <p>1 v1,2</p>
      <p>The isolation system is mainly used during repair operations: in case some
pipe is damaged, it has to be fixed or substituted. However, no repair work can
be done while the water is flowing at high pressure in the pipe: first the part
of the network containing the broken pipe should be de-watered, then workers
can fix the pipe. The de-watering is performed by closing an opportune set
of isolation valves (that make up the so-called isolation system of the water
distribution network) so that the damaged pipe is disconnected from the sources.
For example, in Figure 1, if the edge connecting nodes 2 and 3 (let us call it e2,3)
is broken, workers can close valves v2,3 and v3,6 and de-water the broken pipe.
Of course, during this pipe substitution the users that take water from edge e2,3
cannot be serviced. The usual measure of disruption is the undelivered demand:
in this case, it corresponds to the demand of the users insisting on the broken
pipe, i.e., 6l/s.</p>
      <p>However, we are not always this lucky: in case the damaged pipe is e7,8,
workers will have to close valves v5,7 and v6,8, de-watering pipes e7,8 and e6,8,
with a total cost of 5 + 1 = 6l/s. In fact, the minimum set of pipes that will
be de-watered is that belonging to the so-called sector of the broken pipe, i.e.,
the set of pipes encircled by a same set of valves. But there can be even worse
situations: if the broken pipe is e2,5, workers have to close valves v1,2 and v5,4,
which means disconnecting all the pipes except e1,4 and e4,5, with an undelivered
demand of 3 + 4 + 6 + 5 + 1 + 4 + 5 + 1 = 29l/s. Notice in particular that the edges
e2,3, e7,8 and e6,8 are disconnected in this way, although they do not belong to
the same sector as the broken pipe. This effect is called unintended isolation,
and usually means that the isolation system was poorly designed.</p>
      <p>
        One common value used by hydraulic engineers [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] to measure the quality
of the isolation system is the undelivered demand in the worst case. In the
example of Figure 1, the worst case happens when the broken pipe is in the set
{e1,2, e2,5, e5,6, e5,7}, and the related suppy disruption is 29l/s, as above.
      </p>
      <p>
        In a previous work, [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] developed a system, based on Constraint Logic
Programming [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] on Finite Domains (CLP(FD)), that finds the optimal positioning
of a given number of valves in a water distribution network. The assignments
found by [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] improved the state-of-the-art in hydraulic engineering for this
problem, finding solutions with a lower (worst-case) undelivered demand than the
best solutions known in the literature of hydraulic engineering [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], obtained
through genetic algorithms.
      </p>
      <p>
        In the current work, we address the same problem in Answer Set
Programming [
        <xref ref-type="bibr" rid="ref1 ref11 ref8">1, 11, 8</xref>
        ], which is a suitable technology to address combinatorial graph
problems[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], and, in particular, we have already defined two different ASP
programs [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. One program explicitly defines the sectors as clusters of (isolated)
pipes and minimizes the undelivered demand of the worst sector; instead, in the
other program, sectors are left implicit and the aim is to maximize the minimum
satisfied demand in case of pipe isolation, by considering that a pipe is isolated
if it is not reachable from any source. In the next section we show the most
important results obtained by first experiments.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>
        The first experiments, presented in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], show, in general, that the developed
programs take more computation time than the CLP(FD) approach [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. However,
we must say that the CLP(FD) model was developed by two CLP experts,
during some person-months and was trimmed for efficiency. Instead, the two
ASP formulations were mainly developed by a first-year PhD student in about
one week; this shows that ASP is very intuitive and easy to understand even
for non experts, that it is indeed very declarative. The two implemented ASP
programs consist of respectively about 20 and 25 rules, which shows that ASP
is a very interesting technology for rapid prototyping.
      </p>
      <p>
        Experiments have been performed on a Intel based architecture with two
P8400 CPUs; as ASP solver we used the Potassco’s solver Clasp [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The two
programs have been optimized using a real-life instance based on the Apulian
hydraulic network [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] (Figure 2) and varying the number of available isolation
valves.
In future work, we plan to improve the sector-based ASP program by defining
opportune rules in order to break the symmetries determined by the current
formalization, and we will experiment the resulting program also with other
available ASP solvers. Another appealing challenge is to compute the solution
that minimizes the undelivered demand of the worst sector as well as the
undelivered demands of the other (no worst) sectors, which are not actually optimized
neither by our current MILP formalization [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] nor by the CLP(FD) one [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
We are also interested in trying to integrate the ASP programs with a CLP
approach, to take advantage of the strengths of the two approaches. Finally, I
plan to delve into the ASP theory and techniques in order to consolidate my
competence in such Artificial Intelligence field.
Acknowledgements This work was partially supported by EU project ePolicy,
FP7ICT-2011-7, grant agreement 288147. Possible inaccuracies of information are under the
responsibility of the project team. The text reflects solely the views of its authors. The
European Commission is not liable for any use that may be made of the information
contained in this paper.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baral</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Knowledge representation, reasoning and declarative problem solving</article-title>
          . Cambridge University Press (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cattafi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nonato</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvisi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franchini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Optimal placement of valves in a water distribution network with CLP(FD)</article-title>
          .
          <source>Theory and Practice of Logic Programming</source>
          <volume>11</volume>
          (
          <issue>4-5</issue>
          ),
          <fpage>731</fpage>
          -
          <lpage>747</lpage>
          (
          <year>2011</year>
          ), http://arxiv.org/abs/1109.1248
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Colson</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marcotte</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savard</surname>
          </string-name>
          , G.:
          <article-title>Bilevel programming: A survey</article-title>
          .
          <source>4OR: A Quarterly Journal of Operations Research</source>
          <volume>3</volume>
          ,
          <fpage>87</fpage>
          -
          <lpage>107</lpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Creaco</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franchini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvisi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Optimal placement of isolation valves in water distribution systems based on valve cost and weighted average demand shortfall</article-title>
          .
          <source>Water Resources Management</source>
          <volume>24</volume>
          ,
          <fpage>4317</fpage>
          -
          <lpage>4338</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nonato</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peano</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvisi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franchini</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>An ASP approach for the valves positioning optimization in a water distribution system</article-title>
          . In: Lisi,
          <string-name>
            <surname>F</surname>
          </string-name>
          . (ed.)
          <source>9th Italian Convention on Computational Logic (CILC</source>
          <year>2012</year>
          ), Rome, Italy.
          <source>CEUR workshop proceedings</source>
          , vol.
          <volume>857</volume>
          , pp.
          <fpage>134</fpage>
          -
          <lpage>148</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nonato</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peano</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvisi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franchini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Genetic algorithms for scheduling devices operation in a water distribution system in response to contamination events</article-title>
          . In: Hao,
          <string-name>
            <given-names>J.K.</given-names>
            ,
            <surname>Middendorf</surname>
          </string-name>
          , M. (eds.)
          <source>Evolutionary Computation in Combinatorial Optimization, Lecture Notes in Computer Science</source>
          , vol.
          <volume>7245</volume>
          , pp.
          <fpage>124</fpage>
          -
          <lpage>135</lpage>
          . Springer Berlin / Heidelberg (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Gebser</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaminski</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , Kaufmann,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Ostrowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Schaub</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          :
          <article-title>Potassco: The Potsdam answer set solving collection</article-title>
          .
          <source>AI</source>
          Communications
          <volume>24</volume>
          (
          <issue>2</issue>
          ),
          <fpage>105</fpage>
          -
          <lpage>124</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Answer sets</article-title>
          .
          <source>In: Handbook of Knowledge Representation, chap. 7</source>
          .
          <string-name>
            <surname>Elsevier</surname>
          </string-name>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Giustolisi</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          , Savi´c, D.A.:
          <article-title>Identification of segments and optimal isolation valve system design in water distribution networks</article-title>
          .
          <source>Urban Water Journal</source>
          <volume>7</volume>
          (
          <issue>1</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Jaffar</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maher</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Constraint logic programming: A survey</article-title>
          .
          <source>J. Log. Program. 19/20</source>
          ,
          <fpage>503</fpage>
          -
          <lpage>581</lpage>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Leone</surname>
          </string-name>
          , N.:
          <article-title>Logic programming and nonmonotonic reasoning: From theory to systems and applications</article-title>
          . In: Baral,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Brewka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Schlipf</surname>
          </string-name>
          ,
          <string-name>
            <surname>J</surname>
          </string-name>
          . (eds.)
          <source>Proceedings of the 9th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'07), Lecture Notes in Computer Science</source>
          , vol.
          <volume>4483</volume>
          . Springer (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. Niemela¨,
          <string-name>
            <surname>I.</surname>
          </string-name>
          :
          <article-title>Logic programs with stable model semantics as a constraint programming paradigm</article-title>
          .
          <source>Annals of Mathematics and Artificial Intelligence</source>
          <volume>25</volume>
          ,
          <fpage>241</fpage>
          -
          <lpage>273</lpage>
          (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Peano</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nonato</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvisi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franchini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <string-name>
            <given-names>A Bilevel</given-names>
            <surname>Mixed</surname>
          </string-name>
          <article-title>Integer Linear Programming Model for Valves Location in Water Distribution Systems</article-title>
          . In: Ravizza,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Holborn</surname>
          </string-name>
          , P. (eds.)
          <source>3rd Student Conference on Operational Research. OpenAccess Series in Informatics (OASIcs)</source>
          , vol.
          <volume>22</volume>
          , pp.
          <fpage>103</fpage>
          -
          <lpage>112</lpage>
          .
          <article-title>Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik</article-title>
          , Dagstuhl, Germany (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>