a result, the Cost Calculating Method proposed in
(Alansari and Bordbar, 2014), does not consider com-
plex cases. Hence, in this paper, we extend the off-
line cost analysis approach developed in (Alansari and
Bordbar, 2014) to consider the time intervals. This
can be achieved by formulating a set of equations of
Integer Programming solved by the Modified Simplex
algorithm (FrontlineSolvers, 2015). The purpose is to
provide comprehensive cost estimation values which
cover all the possible cases that might be found in a
trace generated from a CPN Cloud model. Further-
more, we solved the problem of including loop traces
inside traces of execution. This can be accomplished
by proposing a theory which relates the migration cost
to the loop traces. The objective of this theory is to
find the loop traces that would be discarded during
the process of the cost calculation.
The paper is organised as follows; Section 2 in-
cludes an overview of Coloured Petri Nets (CPN) and
the investigated related work in computing optimal
cost from Petri-nets models. Section 3 presents a sce-
nario for an autonomic cloud platform. The mod-
elling concept for cloud platform and policies is ex-
plained in Section 4. The description of the problem
addressed in this paper is expressed in Section 4.1.
Section 5 presents the proposed method for calculat-
ing the cost using Integer Programming. Section 6
contains the evaluation of the proposed solution us-
ing the scenario presented in Section 3. Finally, the
conclusion is presented in Section 7.
2 BACKGROUND AND RELATED
WORK
2.1 Coloured Petri-Nets (CPNs)
Petri Nets (PNs) are graphical and mathematical lan-
guages used for modelling a wide range of systems.
Through the years, several representations and exten-
sions to the classical Petri Nets have been introduced.
One of the existing Petri Net types is the Coloured
Petri Nets (CPN) (Jensen and Kristensen, 2009) (Cal-
lou et al., 2008).
In CPN, any model consists of a set of places
represented as circles and a set of transitions repre-
sented as bars. Places and transitions are connected
by arrows which contain expressions. Furthermore,
in CPN models some transitions may have guards,
which are conditional expressions used to increase the
control of firing transitions. The guards are written
between square brackets. In addition, a CPN model
has a set of tokens, which in CPN context are called
the colour set, with a data type similar to the place
type. In order to execute the model, there must be
a set of initial markings, which represent the values
of the tokens at each place before running the model
(For more information about CPN formal representa-
tion see (Jensen and Kristensen, 2009)).
2.2 Computing the Optimal Total Cost
in Petri-Nets
Calculating the optimal cost has been studied in var-
ious researches for different types of Petri Net mod-
els particularly in Priced Time Petri Net (PTPN) and
Time Petri Net (TPN). As stated in a study by Ab-
dulla and Mayr (Abdulla and Mayr, 2009), the cost
to reach a final marking from an initial marking is
computable if non-negative cost values are associated
with places and transitions in both PTPN and TPN.
They provide a mathematical formula for computing
the total cost along a path in the reachability graph
which is denoted as Cost(M
0
→ M
f
) (Abdulla and
Mayr, 2009)(Abdulla and Mayr, 2011). In (Abdulla
and Mayr, 2009) and (Abdulla and Mayr, 2011), the
minimal reachable cost in PTPN and TPN is com-
putable if it is transformed to a cost threshold prob-
lem. As a result, we conclude that the optimal cost
can be computed in PTPN if it becomes bounded,
contains set of reachable final markings and also is
associated with cost thresholds variables.
In (Li and Hadjicostis, 2011), the optimal cost
is estimated by using a recursive algorithm for com-
puting the cost at each node in the produced trellis.
Then, the node that has the least cost is determined
at each level in the graph (Li and Hadjicostis, 2011).
The recursive algorithm proposed in (Li and Hadji-
costis, 2011) can be useful to compute the minimal
cost in some Petri Net models. However, the algo-
rithm would not suitable for computing the minimum
cost from the reachability graph generated from CPN
Cloud models studied in our research. The reason
is that our CPN Cloud model is a dynamic platform
which has unfixed cost values along the markings.
3 A SCENARIO FOR AN
AUTONOMIC MANAGEMENT
IN CLOUD PLATFORM
Let us consider a cloud platform consisting of four
private hosts located in different locations and one
public host, as seen in Figure 1. Two private hosts
are located in Europe, whereas the remaining are in
Asia. Furthermore, the platform also has some Ama-
An Off-line Analytical Approach to Identify Suitable Management Policies for Autonomic Cloud Architecture
233