<!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>Multi-Criteria Optimal Planning for Energy Policies in CLP?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marco Gavanelli</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michela Milano</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefano Bragaglia</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Federico Chesani</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elisa Marengo</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paolo Cagnoli</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ARPA Emilia-Romagna</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>DISI - Universita` di Bologna</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Computer Science, University of Bristol</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>EnDiF - Universita` di Ferrara</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Faculty of Computer Science - Free University of Bozen-Bolzano</institution>
        </aff>
      </contrib-group>
      <fpage>54</fpage>
      <lpage>68</lpage>
      <abstract>
        <p>The number of issues, stakeholders needs and regulations that a policy must consider in the current world is so high that addressing them only with common-sense is unthinkable. Policy makers have to consider disparate issues, as diverse as economic development, environmental aspects, as well as the social acceptance of the policy. A single person cannot be expert in all these subjects. Thus, to obtain a well assessed policy in the current complex world one can adopt decision support systems featuring optimization components. Leveraging on previous work on Strategic Environmental Assessment, we developed a fully-fledged system that is able to provide optimal plans with respect to a given objective, to perform multi-objective optimization and provide sets of Pareto optimal plans, and to visually compare them. Each plan is environmentally assessed and its environmental footprint is provided in terms of emissions, global warming e↵ect, human toxicity, and acidification. The heart of the system is an application developed in a popular Constraint Logic Programming system on the Reals sort. It has been equipped with a web service module that can be queried through standard interfaces. An intuitive graphic user interface has been added to provide easy access to the web service and the CLP application.</p>
      </abstract>
      <kwd-group>
        <kwd>CLP applications</kwd>
        <kwd>Strategic Environmental Assessment</kwd>
        <kwd>Regional Energy Planning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Policy making, in the current connected world, has to consider such a number
of issues that a single person cannot possibly consider without introducing vast
approximations. For example European regions should provide Regional Energy
Plans to define strategic objectives and political actions for the energy sector.
These policies must take into consideration
? This paper is an extended version of [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
– the current energy balance in the region: how much energy is
produced/consumed in the region (both electrical and thermal energy can be included)
per year, how much is imported/exported;
– forecasts for the future, such as the foreseen energy request or the cost of
energy for the following years;
– existing and new directives, one example being the EU 20-20-20 initiative
that poses three challenging targets for 2020: 20% improvement of energy
eciency, 20% of the energy should come from renewable sources, and
reduction of 20% of greenhouse gas emissions.
      </p>
      <p>The policy contains strategic objectives on the energy share and energy
efficiency, measures and activities to cope with the increased energy needs, new
regulations, etc. In the case of regional planning, the plan is typically very
highlevel: it includes activities such as building new power plants for some total
output power, the share of each fuel type (nuclear, fossil fuels, biomasses,
photovoltaic, windmills, etc.) and the type of produced energy (electric or thermal);
but it lacks information about, for example, the actual placement of the plants
in the region, or the size of each of the plants. More detailed plans will be done
at lower scale, like the province or municipality levels.</p>
      <p>By EU directives, regional policies on the energy sector should also include
an environmental assessment of the plan. Being the plan so high-level, usually
the assessment is done only in a qualitative way.</p>
      <p>
        In a previous work [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], we proposed and compared two alternative logic
programming formulations for the strategic environmental assessment of regional
plans; one was based on probabilistic logic programming, the other on Constraint
Logic Programming (CLP) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. We also developed four fuzzy-logic formulations
of the assessment problem [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. All these programs consider a regional plan, given
in input, and provide its environmental assessment. An evaluation of the results
by an environmental expert suggested that the CLP version provided the most
reliable results.
      </p>
      <p>
        In a following work [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the CLP program was extended to a first prototype
of a regional planner, that generates plans together with their assessment.
Although the software was used during the definition of the Regional Energy Plan
2011-2013 of the Emilia-Romagna region [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], the first version had several
limitations. First, it had only a command-line interface, and could be used only by
an experienced logic programmer (not to mention configuring it). Second, it was
able to provide optimal solutions only for one objective function; a serious
limitation for a system to be used in the multi-faceted world of policy-making. Third,
it was not able to provide any quantitative information on the environmental
assessment of the plans. Fourth, it did not consider all the possible actions that
a regional plan can implement, but only those actions that amount to creating
new infrastructures, plants, or activities, while it was unable to assess the e↵ect
of closing power plants or decommissioning obsolete infrastructures.
      </p>
      <p>In this work, we show how the first prototype of the planner was extended
to a fully-fledged application. The current version of the software supports
– plans that consider decommissioning obsolete power plants;
– computation of emissions of the power plants for various types of pollutants,
in a quantitative way;
– quantitative assessment of the e↵ect of the plan on human health, global
warming, and acidification potential;
– multi-criteria optimization considering a variety of objective functions based
on qualitative and quantitative information;
– computation of the Pareto front, for two or more objective functions;
– a web interface, that can be accessed both as a Graphical User Interface
(GUI) and as a web service.</p>
      <p>This work is one of the components of the EU ePolicy project6. The final
application will use the optimal planner as the center of a large application,
that will include an opinion mining component, to assess the acceptance of the
policies from the public considering information coming from blogs and social
networks; a social simulator component, that will simulate how the population
will react to the policies adopted by the Region; a mechanism design component,
that will include information from game theory to provide the best allocation
schemes of regional subsidies to the stakeholders in the Region; and an integrated
visualization component.</p>
      <p>The rest of the paper is organized as follows. We first explain the
planning and environmental assessment as they are currently done by experts in the
Emilia-Romagna region of Italy, and recap the basic CLP program of the first
prototype (Section 2). In Section 3, extend it for the new features. We show the
design and features of the web service and GUI in Section 4. Finally, we show
an experimental evaluation in Section 5, and we conclude in Section 6.
2</p>
      <p>
        Problem considered and CLP solution
The strategic environmental assessment, in the Emilia-Romagna region of Italy,
is currently performed by considering two matrices, called coaxial matrices [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
They are a development of the network method [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and they contain qualitative
relations.
      </p>
      <p>The first matrix, M, considers the activities that can be undertaken in a
plan, and links them with the so-called environmental pressures. Environmental
pressures can be positive or negative, and they account for the impact on the
environment of human activities. Each element mij of the matrix M can take
values {high, medium, low, null}, and defines a qualitative dependency between
the activity i and the negative or positive pressure j.</p>
      <p>The second matrix, N , relates the pressures with the environmental receptors,
that register the e↵ect of the pressures on the environment. For example, the
activity “coal-fueled power plant” generates the pressure “emission of pollutants
in the atmosphere” on the environment; on its turn, this influences the
receptor “air quality” (as well as other receptors, like “human wellbeing” or “wildlife
6 http://www.epolicy-project.eu
wellbeing”). In the same way, the pressure “emission of greenhouse gases”
influences receptor “global warming”; while the pressure “emission of pollutants in
the water” influences the “quality of river waters”. Again, each element nij of
the matrix can take the same qualitative values: high, medium, low or null.</p>
      <p>Currently, the matrices relate 115 activities with 29 negative pressures, 19
positive pressures and 23 receptors. They can be used to assess a variety of
regional plans, including Agriculture plans, Forest, Fishing, Energy, Industrial,
Transport, Waste, Water, Telecommunications, Tourism, Urban plans. The
environmental assessment is usually done using a spreadsheet and eliminating (by
hand) those activities that do not belong to the given type of plan; then pressures
that are not influenced by remaining activities are removed, and again receptors
that are not influenced by the remaining pressures are removed as well. Finally,
these reduced matrices are evaluated by environmental experts, that state which
parts are most important, mainly considering clusters of High values.</p>
      <p>Clearly, this process is very slow, experts might overlook combinations of
medium or low values that might produce a significant e↵ect, and, most
importantly, it can be done only after the plan has been provided by the policy maker.
At this stage, usually only minor modifications can be backpropagated to the
plan, and it is practically impossible to compare the e↵ect of the plan with other
alternative plans, because this would need to start again another planning phase.
As a matter of fact, although the evaluation of alternative plans is obligatory by
EU regulations, this is usually not done, because planning and environmental
assessment are done in a strictly sequential way.</p>
      <p>
        To overcome the limitations and improve on current practices, we devised an
expert system able to automatically assess regional plans [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]; then we extended
it to include, in a single software component, a Decision Support System (DSS)
able to provide optimal plans together with their environmental assessment [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ],
in particular for regional energy plans. We now recap the CLP model of such
DSS in Section 2.1, and then extend it with new features in Section 3.
2.1
      </p>
      <p>A first CLP solution
We model the planning problem in CLP on the Reals sort (CLP(R)). In CLP,
one can define a problem through a set of variables, ranging on given domains;
the possible assignments are restricted through a set of constraints; a solution is
an assignment of values to variables such that all the constraints are satisfied. In
many cases, solutions are not all equivalent, but there is an objective function
to be maximized or minimized.</p>
      <p>Given a number Na of activities, we consider a vector A = (a1, . . . , aNa ) in
which we associate to each activity a variable ai that defines its magnitude. The
domain of ai depends on the availability of the resource on the given Region; for
example some regions are very windy, while others can exploit better biomasses
or solar panels.</p>
      <p>We distinguish primary from secondary activities: primary activities are of
primary importance for the given type of plan, while secondary activities are
those supporting the primary activities by providing the needed infrastructures.
8 j 2 AS
aj =</p>
      <p>X
i2 AP</p>
      <p>dij ai
Na
X ai ci 
i=1</p>
      <p>BP lan
Na
X ai outi
i=1</p>
      <p>outP lan.</p>
      <p>Moreover, given an expected outcome outP lan of the plan, we have a
constraint ensuring to reach the outcome:
For example, in an energy plan the outcome can be to have more energy available
in the region, so outP lan could be the increased availability of electrical power
(e.g., in kilo-TOE, Tonnes of Oil Equivalent). In such a case, outi will be the
production in kTOE for each unit of activity ai.</p>
      <p>Concerning the impacts of the regional plan, an environmental expert
suggested to convert the qualitative values in the matrices into the following numeric
coecients: high=0.75, medium=0.5, low=0.25 and null=0. We sum up the
contributions of all the activities and obtain the estimate of the impact on each
environmental pressure:</p>
      <p>E.g, in an Energy plan, the activities that produce energy (e.g., power plants)
are of primary importance; such activities require other activities (e.g., power
lines, waste stocking, streets, etc.) to be performed, and they also should be
considered in the environmental assessment. Let AP be the set of indexes of
primary activities and AS that of secondary activities. The dependencies between
primary and secondary activities are considered by the constraint:
Each activity ai has a cost ci; given a budget BP lan available for a given plan,
we have a constraint limiting the overall plan cost:
(1)
(2)
(3)
(4)
(5)
In the same way, given the vector of environmental pressures P = (p1, . . . , pNp ),
one can estimate their influence on the environmental receptor ri by means of
the matrix N , that relates pressures with receptors:</p>
      <p>Possible objective functions include maximizing the produced energy,
minimizing the cost, or maximizing one of the receptors (e.g., maximizing the “air
quality”), or a linear combination of the above.
3</p>
      <p>Extended solution
The CLP(R) program described in Section 2.1 was practically used in the
development of the 2011-13 Regional Energy plan of the Emilia-Romagna region
of Italy. The main objective of the plan was to increase significantly the share of
renewable energy in the energy mix, to fulfill the 20-20-20 directive. Indeed,
during the years from 2011 to 2013, a large number of new renewable power plants
was installed in the region, thanks to subsidies, that make them appealing from
the market viewpoint. For the next years, technicians in the region foresee that
old power plants fueled by fossil fuels will become obsolete, and they will have
to be shut down completely, or, possibly, used only when renewable energy is
unavailable or in peak hours. They asked us to extend the DSS to allow for
possible closing of power plants, which means that some of the activities could have
a negative magnitude: the magnitude, in MW, of oil-based power plants could
be reduced with respect to the previous years.</p>
      <p>First of all, one should notice that negative activities introduce nonlinearities.
For example, if building a new power plant i has a cost ci in Euros per MW,
decommissioning it will not give a profit of ci e/M W .</p>
      <p>
        Our implementation is based on the ECLiPSe CLP language [
        <xref ref-type="bibr" rid="ref10 ref9">9,10</xref>
        ], using
the eplex library [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The eplex library uses very fast solvers based on
linear programming or mixed-integer linear programming algorithms; this means
that one can impose linear constraints on variables ranging either on
continuous domains, or on integer domains. It is well known that linear programming
is polynomially solvable, while (mixed) integer linear programming is NP-hard;
thus the eciency of the solution depends on whether there are integer variables
or not. To address the non-linearity, we introduced, for each activity ai that
has negative values in its domain, an integer variable IsP osi and a real variable
P osi; we wish to obtain that
      </p>
      <p>IsP osi =
⇢ 1 if ai 0
0 if ai &lt; 0</p>
      <p>P osi =
⇢ ai if ai 0 ;
0 if ai &lt; 0
this can be obtained by imposing the following linear constraints:
P osi ai
P osi 0
P osi  ai + (1 IsP osi) · M
P osi  IsP osi · M</p>
      <p>Na
X P osi ci 
i=1</p>
      <p>BP lan.
(where M is a suciently large positive number), and with the further integrality
constraint IsP osi 2 { 0, 1}. The cost constraint (2) is now rewritten as</p>
      <p>Similarly, we do not want that secondary activities are decommissioned
automatically when decommissioning primary activities; so we impose their
relationship only with the positive part of primary activities.</p>
      <p>Concerning the environmental assessment, as a first attempt we left the
original linear constraints of equations (4-5), but the results were not considered
satisfactory by the environmental expert. In fact, a new activity has a number
of impacts, some for the construction of the activity (e.g., land use for building
a coal power plant, pollution due to the construction site, etc.), and others due
to running the activity (e.g., air pollution for burning fuel, water for cooling
the plant, etc.). If we assume that the same coecients in equation (4) can be
used also for negative activities, we would correctly account for the second type
of impacts, but we would wrongly assume that decommissioning a power plant
means restoring the construction site as it was before. Moreover, we would not
consider the end-life of the power plants, which can be significant (for example,
consider nuclear power plants).</p>
      <p>To account correctly for these cases, the environmental expert added new
activities on the co-axial matrices (e.g., “Reduced use of fossil fueled power plants”),
together with their impacts on environmental pressures. All the pressures are
now computed only on positive activities, i.e., Equation (4) is substituted with
Then, we considered the new activities as a new type of secondary activities: the
“Reduced use of fossil fueled power plants” is a secondary activity that becomes
positive only when one of the activities “Coal-based power plant”, “oil-based
power plant”, etc., has a negative value. More precisely, we have secondary
activities that are linked to the decommissioning of other activities: e.g., activity
“Reduction of fossil fuel power plants” is a secondary activity that is positive if
one of the fossil fueled power plants has a negative value. Associated to activities
we now have two matrices of dependencies between activities. In particular we
have a Na ⇥ Na square matrix D+ where each element di+j represents the
magnitude of activity j per unit of activity i, and another Na ⇥ Na square matrix
D where each element dij represents the magnitude of activity j per unit of
reduction of activity i.</p>
      <p>
        The dependency primary-secondary activities in Equation (1) is now
substituted with
(7)
(8)
where
The base CLP program in Section 2.1 was able to provide the environmental
assessment only in terms of qualitative information. We extended it to consider
also quantitative information, in particular the emission of pollutants in the
air for each power plant type. We rely on the data provided by two databases:
INEMAR [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and ISPRA [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. Both databases provide the various types of
pollutants emitted per energy unit (in GJ) in input to the power plant. The
considered types of pollutants include Sulfur Oxides (SOX ), Nitrogen Oxides
(N OX ), methane, CO, CO2, N2O, ammonia, Hexachlorobenzene (HCB), various
metals (Arsenic, Cadmium, Chromium, Copper, Mercury, Nickel, lead, Selenium,
Zinc), particulate matter (PM10), Dioxins, and some families of compounds, like
Polycyclic Aromatic Hydrocarbon compounds (PAH), Polychlorinated biphenyls
(PCB), and Non-Methane Volatile Organic Compounds (NMVOC).
      </p>
      <p>While ISPRA provides the average emission for each type of plant (biomasses,
oil, coal, etc.), INEMAR provides fine grained information, in which emissions
depend also on the type of boiler and the size of the plant (in MW).</p>
      <p>We relate the power produced by plants with that of each boiler type. Let
NB the number of boiler types, we have a vector of constrained variables B =
(b1, . . . , bNB ) where bi is the total output power of the plants using boiler type i.
Let O be the matrix that relates power plants and the di↵erent kinds of boiler:
each element oij of the matrix is set to 1 if the boiler bj 2 B can be used for the
power plant ai 2 A, and zero otherwise. We impose that the output power of
each plant type is the sum of the power of its boilers:
(9)
(10)</p>
      <p>
        Let E = (e1, . . . , eNe ) be the vector of emissions and T the matrix that
relates them with the boilers. An element tij of the matrix represents the grams
of pollutant ei 2 E emitted when 1GJ of fuel is provided to the boiler bj 2 B.
To calculate the emissions, we have to compute the input energy for each boiler
type j, provided the output power bj :
T U is the average running time of a power plant per year (necessary to convert
energy into power, and estimated in 8000 hours by our environmental expert)
and ⌘ is the average eciency (output power/input power) of power plants,
which is prescribed by law as 39% [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
With the computation of emissions (Section 3.1), the DSS provides new
quantitative information, and lets the user find plans that are optimal with respect to
objective functions that include emissions; for example, the user might require
the plan that minimizes the emission of N OX or that of CO2, or even a weighted
sum of the two. However, although useful, these might be too fine-grained for the
environmental expert, not to mention for a policy maker: indeed, a policy maker
could know that N OX are toxic for humans, but how does that compare with
the emission of heavy metal compounds? Instead, the policy maker knows that
CO2 is not harmful for human health, but it is responsible for the greenhouse
e↵ect; are there other emissions that worsen global warming?
      </p>
      <p>
        The European Commission [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] published a set of indicators quantifying the
e↵ect of various substances on human toxicity, global warming and acidification.
For example, Annex 1 of [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] contains 100 chemical substances together with
their human toxicity factor, defined as the toxicity of the substance compared to
that of lead (Pb). The following annexes contain global warming potentials,
relative to CO2, and acidification potentials, relative to SO2. By using the weights
in the tables, one can provide, e.g., the e↵ect of the plan in terms of human
toxicity (in kg of equivalent emitted lead ), global warming (in kg of equivalent
CO2) and acidification (in kg of equivalent SO2). Moreover, a policy maker may
want to optimize on these indicators, and find the plan that minimizes human
toxicity, or the greenhouse e↵ect, or any weighted sum of the two.
      </p>
      <p>
        However, the tables provided by the EC do not always have the same
granularity of the information available for emissions. For example, for each plant type
we know the emissions of N OX ; unluckily, in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] we do not have an aggregated
value for the toxicity of all the nitrogen oxides, but we have the single toxicity
values of N O and N O2, and they are quite di↵erent (respectively, 95 and 300
times that of lead). Even more complicated is for PAH, which include many
compounds, e.g., Benzo-a-pyrene (toxicity 0.05 times that of Pb) and Naphthalene
(500 times Pb). Our environmental expert suggested that we provided as output,
for each indicator, three cases: best, worst, and average, considering respectively
the highest toxicity in the compound class, the lowest and an average. Instead,
when one of the indicators is in the objective function (e.g., one wants to find
the plan with minimum human toxicity), we should optimize the worst case to
be more conservative.
3.3
      </p>
      <p>Computing the Pareto front
In the case of regional planning it is very hard (if not impossible) to devise
a unique function that includes all the objectives that are important for the
user. The optimization component described in Section 2 can provide optimal
solutions with respect to one objective function that can be either the total
amount of energy produced (both electrical and thermal), or the total cost, or
the values of receptors, emissions and indexes explained in the previous sections.
We decided to extend it to support also multi-objective optimization, to let the
user compute more than one solution, and compare them.</p>
      <p>In a multi-objective optimization problem, a Pareto optimal solution is such
that it is not possible to improve the result for one objective function,
without worsening at least one other objective function. More precisely, in a
multiobjective problem with n functions to minimize, a solution µ⇤ is Pareto-optimal
if there does not exist another solution µ such that µj  µ⇤j for 1  j  n and
there exists at least one i, 1  i  n such that µi &lt; µ⇤i . The set of Pareto points
is distributed on the so-called Pareto frontier.
!!"#$%&amp;'()%**
!"#$%"&amp;'()"
!"#$%"&amp;'()"
01'1$2&amp;133"&amp; *+,$-#.")/%</p>
      <p>+,.&amp;/0&amp;(1
(a) The Web service.</p>
      <p>rrvee
S
n
o
iiltcap
p
A</p>
      <p>Browser
User Interface</p>
      <p>1.</p>
      <p>JEE Servlet 3.</p>
      <p>Control er</p>
      <p>2.</p>
      <p>PDearstiastesnoceurces</p>
      <p>5.</p>
      <p>JSP Pages
View</p>
      <p>4.</p>
      <p>Java Beans (BOM)
Model</p>
      <p>Web service</p>
      <p>Optimal planning
(b) The Web application.</p>
      <p>
        We implemented the normalized normal constraint method [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], an algorithm
that works with any type of constraints (linear and nonlinear) and variables
(continuous and discrete), and that is able to find an evenly distributed set of
Pareto solutions. This is an important feature for a DSS, since it supplies the
policy maker with a set of solutions that are a good representation of the whole
space of Pareto solutions.
4
      </p>
      <p>Graphical User Interface
A software for policy making should be usable by non-IT experts, and have an
intuitive GUI able to visualize properly the heterogeneous information inherently
present in environmental policies. We deployed the CLP planner as a stateless
Web service and access it by means of a stateful Web application. This choice
is also convenient from the perspective of a possible composition with the other
services of the ePolicy application.</p>
      <p>The CLP program is embedded inside a Java wrapper (Fig. 1a) that encodes
the requests in CLP terms and decodes the results. This component provides
a plethora of Java classes that represent the Business Object Model (BOM)
of this domain. Any query addressed to this component and all the returned
results are expressed in terms of these objects. Then we use the Apache CXF
framework to define a Web Service’s Service Endpoint Interface (WS SEI) – an
interface containing the signature of the method to call the service – and later
to implement such a service taking advantage of the wrapper.</p>
      <p>The Web application that stands as a GUI for the Web service is a standard
Java servlet (Fig. 1b) following the Model-View-Controller (MVC) pattern: any
request made through a browser is intercepted by the servlet which acts as a
controller. The requests are forwarded to the BOM objects inside the model ;
these objects interact with our Web service and persistence layer to produce
results. The controller then uses the JavaServer Pages (JSPs) to generate the
view that becomes the response to display in the user’s browser. Both the Web
service and the Web application are finally deployed to an application server. The</p>
      <p>Web application can be accessed at: http://globalopt.epolicy-project.eu/
Pareto/.</p>
      <p>After a welcome page that introduces the software, there are an input page,
and a results page. In input, the user can select the language to use (currently,
Italian or English), insert bounds (minimum and maximum bounds for each
energy source), constraints, and objective functions for the Pareto optimization,
as well as the number of Pareto points (s)he wishes to compare. Constraints and
objectives can include linear combinations of cost, produced power, receptors,
emissions, or indicators. To simplify the input, the user can load the data for the
Regional Energy Plan 2011-2013 of the Emilia-Romagna region for Electricity;
in the following section we will show the results for this instance. The user can
then compute the Pareto optimal plans, and a set of graphs is presented, as
described in the next section.
4.1</p>
      <p>Interpreting the Results
The results page consists of two master-slave panels. The left side-panel is the
master and by clicking on any of its entries in one of its three sections, the view
in the main panel (the slave) changes accordingly. Each view hosted in the main
panel has many tabs and by selecting one of them, an appropriate graph or table
is shown.</p>
      <p>In particular, the left panel let the user select either a Scenario comparison,
to compare all the generated scenarios, or to get detailed information on one
scenario. Scenarios are divided into boundary scenarios, that are those that
optimize one of the objective functions, and intermediate scenarios, that try to
balance the various objectives.</p>
      <p>Scenarios comparison. By clicking on General overview on the left panel, the
user can compare the scenarios. One comparison is through a spiderweb chart
(Fig. 2a) that has an axis for each objective function. Along each axis, the
optimal values are far from the origin. Each scenario is represented by a polygon
where each vertex is on a di↵erent axis. Generally speaking, a bigger polygon
implies a better scenario (note that these solutions are Pareto optimal, so one
polygon cannot be completely included into another polygon). Hovering the mouse
on the axes, one can obtain the values for each plan. To improve legibility, one
can deactivate one (or more) plans by clicking on it on the legend.</p>
      <p>The scenarios can also be compared through stacked bar chart, showing, for
each scenario, the distribution of costs per energy source (Fig. 2b), or the amount
of electric/thermal energy per source. Again, hovering with the mouse over the
graphs, more detailed information is provided.</p>
      <p>Another scenario comparison is with respect to the values of the Objective
functions selected by the users.</p>
      <p>Finally, by clicking on Emissions and pollutants, three tabs (Fig. 3) show, in
basic column charts, the amount of pollutants divided into the categories Heavy
metals, Greenhouse gases, and Other pollutants. With the default data, heavy
(a) Scenario comparison.
(b) Costs summary.
metals are not present, because in the 2011-2013 plan there are no fossil fuels,
the only sources emitting metals.</p>
      <p>Boundary and Intermediate scenarios. These sections show detailed information
for each of the computed scenarios on the Pareto front. Scenarios are divided into
boundary scenarios, that are those that optimize one of the objective functions,
and intermediate scenarios. For each scenario, the following views are available:
– Receptors. This composite view uses 7 VU-meter charts (Fig. 4a). The top
part shows the 3 receptors with the best normalised value, while the bottom
one the 3 with the worst normalised value. The main chart allows the user
to select any receptor and appraise its normalised value. This graph was
explicitly requested by an environmental expert to highlight the best and
worst receptors.
– There are then four interactive tabular views (Fig. 4b) showing respectively,
for the chosen scenario, the amount of produced energy per source, the total
(a) Receptors.</p>
      <p>(b) A tabular view.</p>
      <p>cost for each energy source to be spent in primary and secondary activities,
the detailed costs for each activity, and the list of emissions.
5</p>
      <p>Experiments
The software computes the optimal solution for one objective in a very short
time; on modern computers it is well below 1 second. The multi-objective version
has to compute a number of solutions, that depend on the number of
scenarios (points on the Pareto front) requested by the user, so the computing time
can grow up to some seconds, to compute around 5-10 scenarios (a number of
scenarios that can be visualized and compared visually).</p>
      <p>In order to assess the scalability, we performed a series of tests by randomly
generating a set of data, including the co-axial matrices, the matrix relating
primary and secondary activities, the activity costs, etc. In this way, we were
able to stress-test the software with instances containing a number of activities,
pressures and receptors larger than those in the actual data provided by ARPA.</p>
      <p>The experiments were performed on a laptop computer running Linux with
a 8x Intel Core i7-3720QM CPU at 2.60GHz; only one core was used in the
experiments. The results are plotted in Figure 5, for a single objective. The
xaxis is the size of the instance, i.e., the size of the co-axial matrices (each matrix
is N ⇥ N ). The y-axis shows the time required to find the optimal solution.</p>
      <p>
        The computing time, for sizes below 100, is always less than a second. Note
that if N = 100, the matrix that relates activities and pressures has size 100 ⇥
100 = 10, 000, while in the real instance it is just 93 ⇥ 48 = 4, 464.
We presented a DSS with optimization capabilities based on CLP for the regional
planning and with particular emphasis on the environmental aspects of regional
policies. The program was practically used to produce the energy plan 2011-2013
of the Emilia-Romagna region in Italy [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], and it is foreseen to use it also for
the forthcoming plans. The CLP program is included into a web service, with
an intuitive graphical user interface (http://globalopt.epolicy-project.eu/
Pareto/), and that can be easily integrated with other components. The CLP
program will be the heart of the platform of the EU FP7 ePolicy project, that will
also include a social simulator, an opinion mining component, and a mechanism
design component (based on game theory), all governed by the described CLP
program. Preliminary work has been done on the integration of the CLP program
with the mechanism design component [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], and a social simulator [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ].
Acknowledgements This work was partially supported by EU project ePolicy,
FP7-ICT-2011-7, grant agreement 288147.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bragaglia</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chesani</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marengo</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cagnoli</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>Multi-criteria optimal planning for energy policies in CLP. Theory and Practice of Logic Programming, on-line supplement (</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riguzzi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cagnoli</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Logic-Based Decision Support for Strategic Environmental Assessment</article-title>
          .
          <source>Theory and Practice of Logic Programming, 26th Int'l. Conference on Logic Programming (ICLP'10) Special Issue</source>
          <volume>10</volume>
          (
          <issue>4-6</issue>
          )
          <issue>(</issue>
          <year>July 2010</year>
          )
          <fpage>643</fpage>
          -
          <lpage>658</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. Ja↵ar, J.,
          <string-name>
            <surname>Maher</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Constraint logic programming: A survey</article-title>
          .
          <source>Journal of Logic Programming</source>
          <volume>19</volume>
          /20 (
          <year>1994</year>
          )
          <fpage>503</fpage>
          -
          <lpage>581</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riguzzi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sottara</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cangini</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cagnoli</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>An application of fuzzy logic to strategic environmental assessment</article-title>
          . In Pirrone, R.,
          <string-name>
            <surname>Sorbello</surname>
          </string-name>
          , F.,
          <source>eds.: Artificial Intelligence Around Man and Beyond - XIIth International Conference of the Italian Association for Artificial Intelligence</source>
          . Volume
          <volume>6934</volume>
          of Lecture Notes in Computer Science., Berlin/Heidelberg, Springer (
          <year>2011</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>Riguzzi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cagnoli</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Constraint and optimization techniques for supporting policy making</article-title>
          . In Yu, T.,
          <string-name>
            <surname>Chawla</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          , Simo↵, S., eds.:
          <article-title>Computational Intelligent Data Analysis for Sustainable Development. Data Mining and Knowledge Discovery Series</article-title>
          . Chapman &amp; Hall/CRC, Boca Raton, FL, USA (
          <year>2013</year>
          )
          <fpage>361</fpage>
          -
          <lpage>381</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Pilolli</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raimondi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scapinelli</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          , Calo`,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Cancila</surname>
          </string-name>
          , E.:
          <article-title>Piano Energetico Regionale, secondo piano attuativo 2011-2013</article-title>
          .
          <string-name>
            <given-names>Regione</given-names>
            <surname>Emilia-Romagna</surname>
          </string-name>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Cagnoli</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>VAS valutazione ambientale strategica - Fondamenti teorici e tecniche operative. Terza edizione edn</article-title>
          .
          <source>Dario Flaccovio</source>
          , Palermo, Italy (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Sorensen</surname>
            ,
            <given-names>J.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moss</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          :
          <article-title>Procedures and programs to assist in the impact statement process</article-title>
          .
          <source>Technical report, Univ. of California</source>
          , Berkely (
          <year>1973</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Apt</surname>
            ,
            <given-names>K.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wallace</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Constraint logic programming using Eclipse</article-title>
          . Cambridge University Press (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Schimpf</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>ECLiPSe - from LP to CLP</article-title>
          .
          <source>Theory and Practice of Logic Programming</source>
          <volume>12</volume>
          (
          <issue>1-2</issue>
          ) (
          <year>2012</year>
          )
          <fpage>127</fpage>
          -
          <lpage>156</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Shen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schimpf</surname>
          </string-name>
          , J.: Eplex:
          <article-title>Harnessing mathematical programming solvers for constraint logic programming</article-title>
          . In van Beek, P., ed.:
          <source>Principles and Practice of Constraint Programming - CP 2005. Volume 3709 of Lecture Notes in Computer Science</source>
          ., Berlin/Heidelberg, Springer-Verlag (
          <year>2005</year>
          )
          <fpage>622</fpage>
          -
          <lpage>636</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Caserini</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fraccaroli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Monguzzi</surname>
            ,
            <given-names>A.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moretti</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giudici</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volpi</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>The INEMAR database: a tool for regional atmospheric emission inventory</article-title>
          . In Rizzoli,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Jakeman</surname>
          </string-name>
          , A., eds.: iEMSs 2002
          <string-name>
            <given-names>International</given-names>
            <surname>Congress</surname>
          </string-name>
          <article-title>: “Integrated Assessment and Decision Support”</article-title>
          .
          <source>Proc. 1st biennial meeting of the International Environmental Modelling and Software Society</source>
          , Lugano, Switzerland (
          <year>June 2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. ISPRA:
          <article-title>Inventario nazionale delle emissioni in atmosfera</article-title>
          . Available at http: //www.sinanet.isprambiente.it/it/sia-ispra/
          <article-title>serie-storiche-emissioni/ fattori-di-emissione-per-le-sorgenti-di-combustione-stazionarie-in-italia</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Autorita</surname>
          </string-name>
          <article-title>` per l'Energia Elettrica e il Gas: Aggiornamento del fattore di conversione dei kWh in tonnellate equivalenti di petrolio connesso al meccanismo dei titoli di ecienza energetica</article-title>
          .
          <source>Gazzetta Uciale n. 100 del 29.4</source>
          .
          <fpage>08</fpage>
          - SO n.
          <volume>107</volume>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>European</surname>
          </string-name>
          <article-title>Commission: Integrated pollution prevention and control reference document on economics and cross-media e↵ects (</article-title>
          <year>July 2006</year>
          ) Available at http: //eippcb.jrc.ec.europa.eu/reference/.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Messac</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ismail-Yahaya</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mattson</surname>
            ,
            <given-names>C.A.</given-names>
          </string-name>
          :
          <article-title>The normalized normal constraint method for generating the Pareto frontier</article-title>
          .
          <source>Structural and Multidisciplinary Optimization</source>
          <volume>25</volume>
          (
          <issue>2</issue>
          ) (
          <year>2003</year>
          )
          <fpage>86</fpage>
          -
          <lpage>98</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>O</given-names>
            <surname>'Sullivan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Holland</surname>
          </string-name>
          , A.:
          <article-title>What-if analysis through simulation-optimization hybrids</article-title>
          .
          <source>In: Proc. of European Conference on Modelling and Simulation (ECMS)</source>
          , Dudweiler, Germany,
          <source>European Council for Modelling and Simulation</source>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Borghesi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gavanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Woods</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Simulation of incentive mechanisms for renewable energy policies</article-title>
          . In Rekdalsbakken, W.,
          <string-name>
            <surname>Bye</surname>
            ,
            <given-names>R.T.</given-names>
          </string-name>
          , Zhang, H., eds.
          <source>: Proceedings of the 27th European Conference on Modeling and Simulation, European Council for Modeling and Simulation</source>
          (
          <year>2013</year>
          )
          <fpage>32</fpage>
          -
          <lpage>38</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>