Applied Mathematics
Vol.07 No.15(2016), Article ID:70627,14 pages
10.4236/am.2016.715146
Verification of Real-Time Pricing Systems Based on Probabilistic Boolean Networks
Koichi Kobayashi1*, Kunihiko Hiraishi2
1Graduate School of Information Science and Technology, Hokkaido University, Sapporo, Japan
2School of Information Science, Japan Advanced Institute of Science and Technology, Ishikawa, Japan

Copyright © 2016 by authors and Scientific Research Publishing Inc.
This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).
http://creativecommons.org/licenses/by/4.0/



Received: July 26, 2016; Accepted: September 13, 2016; Published: September 16, 2016
ABSTRACT
In this paper, verification of real-time pricing systems of electricity is considered using a probabilistic Boolean network (PBN). In real-time pricing systems, electricity conservation is achieved by manipulating the electricity price at each time. A PBN is widely used as a model of complex systems, and is appropriate as a model of real- time pricing systems. Using the PBN-based model, real-time pricing systems can be quantitatively analyzed. In this paper, we propose a verification method of real-time pricing systems using the PBN-based model and the probabilistic model checker PRISM. First, the PBN-based model is derived. Next, the reachability problem, which is one of the typical verification problems, is formulated, and a solution method is derived. Finally, the effectiveness of the proposed method is presented by a numerical example.
Keywords:
Model Checking, Probabilistic Boolean Networks, Real-Time Pricing

1. Introduction
In recent years, there has been growing interest in energy and the environment. For problems on energy and the environment such as energy saving, several approaches have been studied (see, e.g., [1] [2] ). In this paper, we focus on real-time pricing systems of electricity. A real-time pricing system of electricity is a system that charges different electricity prices for different hours of the day and for different days, and is effective for reducing the peak and flattening the load curve (see, e.g., [3] - [6] ). In general, a real-time pricing system consists of one controller deciding the price at each time and multiple electric consumers such as commercial facilities and homes. If electricity conservation is needed, then the price is set to a high value. Since the economic load becomes high, consumers conserve electricity. Thus, electricity conservation is achieved. In the existing methods, the price at each time is given by a simple function with respect to power consumptions and voltage deviations and so on (see, e.g., [6] ). In order to realize more precisely pricing, it is necessary to use a mathematical model of consumers.
On the other hand, in order to deal with complex systems such as power systems and gene regulatory networks, it is one of the appropriate methods to approximate a complex system by a discrete abstract model (see, e.g., [7] ). In addition, human decision making is also complex, and is modeled by a discrete model (see, e.g., [8] ). Thus, in analysis and control of complex systems and those with human decision making, a discrete model plays an important role. Several discrete models have been proposed so far (see, e.g., [9] ). In this paper, we focus on a Boolean network (BN) [10] . In a BN, the state is given by a binary value (0 or 1), and the dynamics are expressed by a set of Boolean functions. Since Boolean functions are used, it is easy to understand the interaction between states. In addition, the behavior of complex systems is frequently stochastic by the effects of noise. From this viewpoint, a probabilistic BN (PBN) has been proposed in [11] . In a PBN, a Boolean function is randomly decided at each time among the candidates of Boolean functions.
Under the above backgrounds, the authors have proposed in [12] the PBN-based model of real-time pricing systems. In this model, decision making of electric consumers is modeled by a PBN. That is, decisions of a consumer are modeled by Boolean functions, and one of decisions is selected probabilistically. Selection probabilities are controlled by the price at each time. In [12] , an approximate algorithm for solving the optimal control problem has been proposed. However, analysis and verification using the PBN-based model have not been considered.
In this paper, we propose a verification method of real-time pricing systems using the PBN-based model and the probabilistic model checker PRISM [13] . Using PRISM, we can verify whether this system satisfies the specification described by probabilistic computation tree logic (PCTL) [14] or not. The reachability problem is considered as one of the typical verification problems, and a numerical example is presented. The proposed method provides us a basic of model-based design of real-time pricing systems.
In Section 2, the outline of real-time pricing systems studied in this paper is explained. In Section 3, the PBN-based model is explained. In Section 4, the verification problem is formulated. In Section 5, a solution method using PRISM is proposed. In Section 6, a numerical example is presented. In Section 7, we conclude this paper.
Notation: For the n-dimensional vector
and the index set
,
is defined.
2 Real-Time Pricing Systems
In this section, we explain the outline of real-time pricing systems studied in this paper.
Figure 1 shows an illustration of real-time pricing systems studied in this paper. This system consists of one controller and multiple electric consumers such as commercial facilities and homes. For an electric consumer, we suppose that each consumer can
Figure 1. Illustration of real-time pricing systems.
monitor the status of electricity conservation of other consumers. In other words, the status of some consumer affects that of other consumers. For example, in commercial facilities, we suppose that the status of rival commercial facilities can be checked by lighting, Blog, Twitter, and so on. Depending on power consumption, i.e., the status of electricity conservation, the controller determines the price at each time. If electricity conservation is needed, then the price is set to a high value. Since the economic load becomes high, consumers conserve electricity. Thus, electricity conservation is achieved. The price does not depend on each consumer, and is uniquely determined.
In this paper, decision making of electric consumers is modeled by a probabilistic Boolean network (PBN). Here, we suppose that each electric consumer has candidates of a decision in electricity conservation, and one of candidates is selected probabilistically depending on the electricity price at the current time. In such a case, it is appropriate to adopt the PBN-based model. In this paper, the property of real-time pricing systems can be verified using the PBN-based model.
3. Modeling Using Probabilistic Boolean Networks
In this section, first, we explain the outline of PBNs. Next, each consumer in real-time pricing systems is modeled by a PBN.
3.1. Probabilistic Boolean Networks
First, we explain a (deterministic) Boolean network (BN). A BN is defined by
(1)
where
is the state, and
is the discrete time. The set
is a given index set, and the function
is a given Boolean function consisting of logical operators such as AND (
), OR (
), and NOT (
). If
holds, then
is uniquely determined as 0 or 1.
Next, we explain a probabilistic Boolean network (PBN) (see [11] for further details). In a PBN, the candidates of
are given, and for each
, selecting one Boolean function is probabilistically independent at each time. Let

denote the candidates of
. The probability that 
Then, the following relation

must be satisfied. Probabilistic distributions are derived from experimental results. Finally, 

We show a simple example.
Example 1. Consider the PBN in which Boolean functions and probabilities are given by
where






In this example, the cardinality of the finite state set 





Figure 2. State transition diagram.
3.2. Model of Consumers
Consider modeling the set of consumers as a PBN. The number of consumers is given by n. We assume that the state of consumer 

The binary value of 

where 




Let




The Boolean functions 




4. Problem Formulation
In this section, the verification problem described by probabilistic computation tree logic (PCTL) is formulated for the PBN-based model of consumers (see Appendix A for details on PCTL).
Here, the reachability problem is formulated as one of the typical problems. For the system




Problem 1. Suppose that for the system



by manipulating a control input sequence
Let 






Furthermore, by solving Problem 1 at each time, a kind of model predictive control (MPC) can be realized (see Section 5.3 for further details).
5. Solution Method Using PRISM
In this section, we consider a solution method for Problem 1 using the probabilistic model checker PRISM [13] .
5.1. Preparation: Transformation of Boolean Functions
As a preparation, the following lemma [15] is introduced.
Lemma 1. Consider two binary variables
i) 

ii) 

iii) 

For example, 

5.2. Description in PRISM
To solve Problem 1 and the verification problem described by PCTL formulas, the probabilistic model checker PRISM is used. PRISM supports a discrete-time Markov chain (DT-MC), a continuous-time Markov chain (CT-MC), and a Markov decision process (MDP). PRISM consists of three parts: “Model”, “Properties”, “Simulator”. In the “Model” part, a given probabilistic system is described using the PRISM language. In the “Properties” part, the property specification language incorporates temporal logic such as PCTL, and we can verify whether a given PCTL formula holds or not. In the “Simulator”, the state trajectories can be simulated.
Using PRISM, consider modeling the system

In addition, 

01: mdp
02: module RTP1
03: x1: [0..1] init 1;
04: [RTP] u=3 -> 0.1:(x1’=1) + 0.075:(x1’=0) + 0.6:(x1’=x1) + 0.15:(x1’=x2*x3)
+ 0.075:(x1’=x1)
05: [RTP] u=4 -> 0.1:(x1’=1) + 0.1:(x1’=0) + 0.5:(x1’=x1) + 0.2:(x1’=x2*x3)
+ 0.1:(x1’=x1)
06: [RTP] u=5 -> 0.1:(x1’=1) + 0.125:(x1’=0) + 0.4:(x1’=x1) + 0.25:(x1’=x2*x3)
+ 0.125:(x1’=x1)
07: endmodule
08: module RTP2
09: x2:[0..1] init 1;
10: [RTP] u=3 -> 0.1:(x2’=1) + 0.075:(x2’=0) + 0.6:(x2’=x2) + 0.15:(x2’=x1*x3)
+ 0.075:(x2’=x1)
11: [RTP] u=4 -> 0.1:(x2’=1) + ... (omit)
12: [RTP] u=5 -> 0.1:(x2’=1) + ... (omit)
13: endmodule
14: module RTP3
15: x3:[0..1] init 1;
16: [RTP] u=3 -> 0.1:(x3’=1) + 0.075:(x3’=0) + 0.6:(x3’=x3) + 0.15:(x3’=x1*x2)
+ 0.075:(x3’=x1)
17: [RTP] u=4 -> 0.1:(x3’=1) + ... (omit)
18: [RTP] u=5 -> 0.1:(x3’=1) + ... (omit)
19: endmodule
20: module input
21: u:[3..5] init 3;
22: [RTP] u=3 -> (u’=3);
23: [RTP] u=3 -> (u’=4);
24: [RTP] u=3 -> (u’=5);
25: [RTP] u=4 -> (u’=3);
26: [RTP] u=4 -> (u’=4);
27: [RTP] u=4 -> (u’=5);
28: [RTP] u=5 -> (u’=3);
29: [RTP] u=5 -> (u’=4);
30: [RTP] u=5 -> (u’=5);
31: endmodule.
In line 1, it is described that a given system is an MDP, i.e., the control input (in other words, the nondeterministic variable) that must decide is included. In lines 2-7, the dynamics for 















From the above example, we see that the system



Derivation Procedure of PRISM Source Code:
Step 1: Transform each Boolean function into a polynomial with binary variables by using Lemma 1. Let 
Step 2: Describe that a given system is an MDP.
Step 3: Compute the probability 



Step 4: Describe module RTP i, 
module RTP i;



[RTP]
[RTP]
endmodule.
Step 5: Describe the control input u as follows.
module input
u: 

[RTP]
[RTP]
[RTP]
[RTP]
endmodule.
The above procedure is the improved version of the procedure proposed in [16] .
5.3. Verification and Application to MPC
Several properties described by PCTL formulas can be verified by using the obtained model on PRISM. We use the “Properties” part in PRISM.
Consider solving Problem 1 (the reachability problem). Then, we use Pmax prepared in PRISM. Suppose 

This implies that find a maximum probability 


From the above results, we see that the verification problem can be easily implemented by using PRISM. The control input sequence 


On the other hand, the problem of finding 
[Procedure of MPC]
Step 1: Set

Step 2: Find the current control input 


Step 3: Apply only the control input at t, i.e., 
Step 4: Set

6. Numerical Example
We present a numerical example. For

We remark that for any


In Problem 1, the control time N, the output, and the target output are given by
In this example, we consider the following cases:
・ Case 1: The initial state is given by 
Case 1-1: The initial input is given by
Case 1-2: The initial input is given by
・ Case 2: The initial state is given by 


Case 2-1: The initial input is given by
Case 2-2: The initial input is given by
・ Case 3: The initial state is given by 


Case 3-1: The initial input is given by
Case 3-2: The initial input is given by
Next, we present the computation result. Table 1 shows 


1) It is desirable that the initial input (price) is given by
2) Even if one consumer, who is not the leader, conserves electricity, then a contribution to electricity conservation is small.
3) If the leader conserves electricity, then a contribution to electricity conservation is large.
Thus, using the PBN-based model, we can analyze real-time pricing systems in a quantitative way.
7. Conclusions
In this paper, using a probabilistic Boolean network (PBN), we discussed verification of
Table 1. Computation result.
real-time pricing systems of electricity. The PBN-based model and PRISM enable us an easy and convenient verification. As one of the verification problems, the reachability problem was considered. In addition, application to model predictive control was also discussed. The proposed method provides us verification/control methods for real-time pricing systems.
There are several open problems. It is significant to develop the identification method of Boolean functions and parameters 
Acknowledgements
This research was partly supported by JST, CREST and Grant-in-Aid for Scientific Research (C) 26420412.
Cite this paper
Kobayashi, K. and Hiraishi, K. (2016) Verification of Real-Time Pricing Systems Based on Probabilistic Boolean Networks. Applied Mathematics, 7, 1734- 1747. http://dx.doi.org/10.4236/am.2016.715146
References
- 1. Camacho, E.F., Samad, T., Garcia-Sanz, M. and Hiskens, I. (2011) Control for Renewable Energy and Smart Grids. In: Samad, T. and Annaswamy, A.M., Eds., The Impact of Control Technology, IEEE Control Systems Society, New York, USA.
- 2. Ruihua, Z., Yumei, D. and Yuhong, L. (2010) New Challenges to Power System Planning and Operation of Smart Grid Development in China. 2010 International Conference on Power System Technology, Hangzhou, China, 24-28 October 2010, 1-8.
- 3. Borenstein, S., Jaske, M. and Rosenfeld, A. (2002) Dynamic Pricing, Advanced Metering, and Demand Response in Electricity Markets. Center for the Study of Energy Markets, UC Berkeley.
- 4. Roozbehani, M., Dahleh, M. and Mitter, S. (2010) On the Stability of Wholesale Electricity Markets under Real-Time Pricing. Proceedings of the 49th IEEE Conference on Decision and Control, Atlanta, USA, 15-17 December 2010, 1911-1918.
http://dx.doi.org/10.1109/cdc.2010.5718173 - 5. Samadi, P., Mohsenian-Rad, A.-H., Schober, R., Wong, V.W.S. and Jatskevich, J. (2010) Optimal Real-Time Pricing Algorithm Based on Utility Maximization for Smart Grid. Proceedings of the 2010 First IEEE International Conference on Smart Grid Communications, Gaithersburg, USA, 4-6 October 2010, 415-420.
http://dx.doi.org/10.1109/SMARTGRID.2010.5622077 - 6. Vivekananthan, C., Mishra, Y. and Ledwich, G. (2013) A Novel Real Time Pricing Scheme for Demand Response in Residential Distribution Systems. Proceedings of the 38th Annual Conference of the IEEE Industrial Electronics Society, Vienna, Austria, 10-13 November 2013, 1954-1959.
- 7. Tabuada, P. (2009) Verification and Control of Hybrid Systems. Springer, New York, USA.
http://dx.doi.org/10.1007/978-1-4419-0224-5 - 8. Adomi, M., Shikauchi, Y. and Ishii, S. (2010) Hidden Markov Model for Human Decision Process in a Partially Observable Environment. Proceedings of the 20th International Conference on Artificial Neural Networks, LNCS 6353, Thessaloniki, Greece, 15-18 September 2010, 94-103.
http://dx.doi.org/10.1007/978-3-642-15822-3_12 - 9. Jong, H.D. (2002) Modeling and Simulation of Genetic Regulatory Systems: A Literature Review. Journal of Computational Biology, 9, 67-103.
http://dx.doi.org/10.1089/10665270252833208 - 10. Kauffman, S.A. (1969) Metabolic Stability and Epigenesis in Randomly Constructed Genetic Nets. Journal of Theoretical Biology, 22, 437-467.
http://dx.doi.org/10.1016/0022-5193(69)90015-0 - 11. Shmulevich, I., Dougherty, E.R., Kim, S. and Zhang, W. (2002) Probabilistic Boolean Networks: A Rule-Based Uncertainty Model for Gene Regulatory Networks. Bioinformatics, 18, 261-274.
http://dx.doi.org/10.1093/bioinformatics/18.2.261 - 12. Kobayashi, K. and Hiraishi, K. (2014) A Probabilistic Approach to Control of Complex Systems and Its Application to Real-Time Pricing. Mathematical Problems in Engineering, 2014, Article ID: 906717.
- 13. Kwiatkowska, M., Norman, G. and Parker, D. (2011) PRISM 4.0: Verification of Probabilistic Real-Time Systems. Proceedings of the 23rd International Conference on Computer Aided Verification, LNCS 6806, Snowbird, USA, 14-20 July 2011, 585-591.
- 14. Ciesinski, F. and Groesser, M. (2004) On Probabilistic Computation Tree Logic. In: Baier, C., Haverkort, B.R., Hermanns, H., Katoen, J.-P. and Siegle, M., Eds., Validation of Stochastic Systems, Springer, Berlin Heidelberg,147-188.
- 15. Williams, H.P. (1999) Model Building in Mathematical Programming. 4th Edition, John Wiley & Sons, Ltd., New York, USA.
- 16. Kobayashi, K. and Hiraishi, K. (2012) Symbolic Approach to Verification and Control of Deterministic/Probabilistic Boolean Networks. IET Systems Biology, 6, 215-222.
http://dx.doi.org/10.1049/iet-syb.2012.0018 - 17. Kwiatkowska, M., Norman, G., Parker, D. and Qu, H. (2010) Assume-Guarantee Verification for Probabilistic Systems. 16th International Conference on Tools and Algorithms for the Construction and Analysis of Systems, LNCS 6015, Paphos, Cyprus, 20-28 March 2010, 23-37.
- 18. Cheng, D. and Xu, X. (2013) Bi-Decomposition of Multi-Valued Logical Functions and Its Applications. Automatica, 49, 1979-1985.
http://dx.doi.org/10.1016/j.automatica.2013.03.013 - 19. Kobayashi, K. and Hiraishi, K. (2015) Optimal Control of Probabilistic Logic Networks and Its Application to Real-Time Pricing of Electricity. Mathematical Problems in Engineering, 2015, Article ID: 952310.
- 20. Zhao, Y., Li, Z. and Cheng, D. (2011) Optimal Control of Logical Control Networks. IEEE Transactions on Automatic Control, 56, 1766-1776.
http://dx.doi.org/10.1109/TAC.2010.2092290 - 21. Zhao, Y. and Cheng, D. (2012) Controllability and Stabilizability of Probabilistic Logical Control Networks. Proceedings of the 51st IEEE Conference on Decision and Control, Maui, USA, 10-13 December 2012, 6729-6734.
http://dx.doi.org/10.1109/cdc.2012.6427395
Appendix A. Probabilistic Computation Tree Logic
In classical propositional logic, truth-value of 0 (false) or 1 (true) is time-invariant. Temporal logic is an extension of propositional logic, and deals with time evolution of truth-value. Since a PBN is a discrete-time system, we also consider temporal logic in discrete-time. First, computation tree logic (CTL) is explained as a class of temporal logics. Next, we introduce probabilistic CTL (PCTL) (see [14] for further details).
In CTL, logical operators and temporal operators are used. The logical operators usually consist of




1) Propositional variables and propositional constants (true or false) are state formulas.
2) If f, y are state formulas, then




3) If f is path formula, then Ef and Af are state formulas.
4) If f, y are state formulas, then Xf, Ff, Gf, and fUy are path formulas.
5) All state and path formulas consist of the above formulas, and all CTL formulas consist of state formulas.
Next, suppose that 
・ Af: f has to hold on all paths starting from the current state (All).
・ Ef: there exists at least one path starting from the current state where f holds (Exists).
Furthermore, the meaning of each path-specific quantifier is also explained as follows:
・ Ff: f eventually has to hold (somewhere on the subsequent path) (Finally).
・ Gf: f has to hold on the entire subsequent path (Globally).
・ Xf: f has to hold at the next state (neXt).
・ fUy: f has to hold until at some position y holds. This implies that y will be verified in the future.
In PCTL, the notion of probability is added in CTL, that is, for the CTL formula f, consider





Finally, the temporal operator F is improved to F£N. For the propositional variable f, F£Nf implies that f eventually has to hold until time N.
1In PRISM, given Boolean functions may be directly used (see http://www.prismmodelchecker.org/ for further details).




































