CHEMICAL ENGINEERING TRANSACTIONS VOL. 61, 2017 A publication of The Italian Association of Chemical Engineering Online at www.aidic.it/cet Guest Editors: Petar S Varbanov, Rongxin Su, Hon Loong Lam, Xia Liu, Jiří J Klemeš Copyright © 2017, AIDIC Servizi S.r.l. ISBN 978-88-95608-51-8; ISSN 2283-9216 Robust Optimization of Refinery Hydrogen Networks using Worst-Case Conditional Value-at-Risk Concept Lili Wei, Zuwei Liao*, Binbo Jiang, Jingdai Wang, Yongrong Yang State Key Laboratory of Chemical Engineering, College of Chemical and Biological Engineering, Zhejiang University, Hangzhou, Zhejiang 310027, P.R. China liaozw@zju.edu.cn The hydrogen supply in many refineries is becoming a critical issue because of a trend of heavier crude oils and increasingly rigorous legislation. One of the significant problems is that the concentration fluctuation of hydrogen affects product quality of refineries and causes economic losses. This article investigates the disturbance resistance ability of hydrogen network. The Worst-Case Conditional Value-at-Risk (WCVaR) concept which indicates possible minimum hydrogen content in hydrogen networks is introduced to handle this problem. The disturbance resistance ability is optimized in maximization of WCVaR associated with uncertainty distribution. The article can obtain the hydrogen network whose WCVaR is not less than limit hydrogen content. The resistance ability of the obtained network structure is verified by Monte Carlo simulation. The literature example illustrate that the hydrogen network optimized by the WCVaR model performs robustly. 1. Introduction VaR (Value-at-Risk), defined as the maximum anticipated loss in portfolio value because of market fluctuations has become the standard risk measure adopted by financial institutions in risk management since 1995 (Artzner and Delbaen et al., 1999). However, Conditional Value-at-Risk (CVaR) (Rockafellar and Uryasev, 2002), defined as the mean of the tail distribution exceeding VaR, has drawn much attention in recent years. CVaR performs some better properties than VaR in the measure of risk. The CVaR minimization formulation (Rockafellar and Uryasev, 2002) can result in convex programs, and even linear programs. Recently, a few researchers express more concern about the study of robustness (Goldfarb and Iyengar, 2003). Zhu and Fukushima (2009) introduced Worst-Case Conditional to robust portfolio optimization. The approaches mentioned above have been applied in many other risk management fields. One of the significant problems of the hydrogen supply is that the concentration fluctuation of hydrogen affects product quality of refineries and results in economic losses in many refineries (Wang et al., 2012). Lou et al. (2014) employed the robust optimization approach to optimize hydrogen networks. Later, they presented a thermodynamic irreversibility based method for the design of hydrogen networks with multiple impurities (2015). Zhang et al. (2016) proposed a MILP model based on relative concentration analysis to optimize refinery multi-impurity hydrogen networks. This article investigates the disturbance resistance ability of hydrogen network. The WCVaR concept which indicates possible minimum hydrogen content in hydrogen networks is presented. The hydrogen network whose WCVaR is not less than limit hydrogen content can be obtained. The disturbance resistance ability of the obtained network structure is validated by Monte Carlo simulation. The example is investigated to illustrate the effectiveness of the method. 2. Problem statement The robust optimization problem of refinery hydrogen system is stated as follows. Given a set of source and sink streams with certain concentration and flowrates, given the flowrate disturbance distribution of the source streams, it is desired to maximize the disturbance resistance ability of the source – sink allocation network. The disturbance resistance ability of the network structure be verified by the parameter P obtained in Monte Carlo simulation. DOI: 10.3303/CET1761112 Please cite this article as: Wei L., Liao Z., Jiang B., Wang J., Yang Y., 2017, Robust optimization of refinery hydrogen networks using worst- case conditional value-at-risk concept, Chemical Engineering Transactions, 61, 685-690 DOI:10.3303/CET1761112 685 3. Methodology 3.1 Definition of the WCVaR in the hydrogen network VaR (Artzner and Delbaen et al., 1999) and CVaR (Rockafellar and Uryasev, 2002) represent the maximum anticipated loss in portfolio value due to adverse market movements and the mean of the tail distribution exceeding VaR with a certain confidence interval respectively in financial risk management. WCVaR is the maximum Conditional Value-at-Risk value in the worst case (Zhu and Fukushima, 2009). Given a confidence level β, the VaR αβ(x) is defined as (Rockafellar and Uryasev, 2002): ( , ) ( , ) ( ) f x y x p y dy       (1)  ( ) min ; ( , )x R x       (2) where f(x,y) denote the loss associated with decision vector n x X R  and random vector m y R , p(y) is the density function of y. The corresponding CVaR is defined as (Rockafellar and Uryasev, 2002):   ( , ) ( ) 1 ( ) ( , ) | ( , ) ( ) ( , ) ( ) 1 f x y x x E f x y f x y VaR x f x y p y dy            (3) Rockafellar and Uryasev (2002) demonstrated that the calculation of CVaR can be achieved by minimizing the following auxiliary function and present its approximate function:     1 , ( , ) ( ) 1 m y R F x f x y p y dy             (4)   1 1 , ( , ) (1 ) S j j F x f x y S              (5) where [t]+=max{t,0}. Then Zhu and Fukushima (2009) obtain the formulas:  ( ) min max ,i R i L WCVaR x F x        (6)     ( , ) ( , ) min ( ) min max , min , i L x X x X R x X Ri L WCVaR x F x F x               (7) The problem can be formulated as the equation presented by Zhu and Fukushima (2009): ( , , ) 1 min 1 . . ( , ) , 1, , (1 ) i x X R R S i ki j s t f x y i l S                    (8) where yki is the kth sample with respect to the ith likelihood distribution pi(), and Si denotes the number of corresponding samples. Then, by introducing an auxiliary vector 1 2 ( ; ; ; ) l m u u u u R  , where 1 l i i m S    , the optimization problem can be reformulated as the following tractable minimization problem with variables , , ),( n m R R Rx u R      (Zhu and Fukushima, 2009): i k i k min . . x X, 1 ( ) , 1, , , 1 u ( , ) , k=1, , , 1, , , u 0, k=1, , , 1, , . i T i i i k i s t u i l f x y S i l S i l                 (9) where πki denotes the probability according to the kth sample with respect to the ith likelihood distribution pi(). 686 In the hydrogen system, VaR and CVaR represent the minimum anticipated hydrogen content due to flowrate fluctuation of source streams and the mean of the tail distribution less than VaR with a certain confidence interval accordingly. WCVaR is the minimum CVaR value in the worst case. The optimization problem can be formulated as: n k n k max 1 . . ( ) , 1, , . 1 u ( , 2 ) , k=1, , , 1, , . u 0, k=1, , , 1, , . n T n n n k n s t u n N f C FC S n N S n N                (10) where πn denotes the probability according to the kth sample with respect to the nth likelihood distribution pi(); FC2kn is the flowrate of the kth sample with respect to the nth likelihood distribution pi(); Sn denotes the number of samples of the nth likelihood distribution pi(); C represents the concentration of hydrogen of source. 3.2 Optimization model of WCVaR in the hydrogen network Objective function: Max(θ) (11) Hydrogen sink flowrate constraint: , 1 NI d i d i F FC    (12) where Fd denote the required flowrate of the sink; FCi,d is the flowrate of hydrogen source i to hydrogen sink d; ND is the number of hydrogen sink; NI is the number of hydrogen source. Constraint on hydrogen load: , , , 1 ( ) NI d d m i m i m i F C FC C     (m=1) (13) Impurity load constraint: , , , 1 ( ) NI d d m i m i m i F C FC C     (m>1) (14) where Cd,m is the demanded concentration of component m of hydrogen sink d; Ci,m is the concentration of component m of hydrogen source i; m=1 represents hydrogen, m>1 represents other impurities. Hydrogen source flowrate constraint: , 1 ND i i d d F FC    (15) where Fi is the flowrate of hydrogen source i. k,i i,dn k,i,d i F2 FC FC2 = F n  (16) where FC2k,i,dn is the flowrate of hydrogen source i to hydrogen sink d of the k-th sample with respect to the n- th like-lihood distribution pi(); F2k,in represents flowrate of hydrogen source i of the k-th sample with respect to the n-th likelihood distribution pi() Hydrogen utility flowrate constraint: i,d d 1 FC U ND   (i=NF) (17) where U is the flowrate of the hydrogen utility to ensure the WCVaR of the network meet the requirement; NF denotes the hydrogen utility. 687 k,i,d i 1 1 (FC2 C ) ND NI n n k d i U       (18) where Ci represents the concentration of hydrogen of source i. 0 n k U  (19)   S 1 1 + S 1- n n kn k U       (20) 4. Monte Carlo verification method Monte Carlo simulation is introduced in this section to verify the effectiveness of the above presented WCVaR based optimizing approach. Monte Carlo simulation is a numerical procedure for predicting statistical properties such as sample mean and standard deviation of the system (Moore and Weatherford, 2001). Monte Carlo simulation was performed using the Crystal Ball software.The parameter P which denotes the probability of satisfying hydrogen content requirement can be obtained from the simulation. 5. Case study This example is taken from Zhang and Feng et al. (2013) with the data shown in Table 1. The hydrogen network structure of literature and of this work is shown in Figure 1 and Figure 2. Monte Carlo simulations are performed with the two distributions for the literature result and this work result. The simulating results are given by Figure 3 and Figure 4. Table 1: Data for the source and sink streams of example 1 Impurity Concentration (mol %) Stream Flowrate (mol/s) A B C total(mol %) FH unlimited 0.01 0 0 0.01 SR2 50 2.5 5 3 10.5 SR3 75 9 3.5 6 18.5 SR4 20 10 7.5 5 22.5 SK1 40 0.5 0 0.1 0.6 SK2 60 3 1.75 4.5 9.25 SK3 50 5 6 4 15 Fresh hydrogen SK1 SK2 SK3 SR2 SR3 SR4 40 33.7 8.7 17.6 31.6 13.15 14.75 44.25 9.7 5.25 Figure 1: Literature network for example 688 Fresh hydrogen SK1 SK2 SK3 SR2 SR3 SR4 40 33.74 8.72 17.54 41.28 8.72 20 48.74 Figure 2: The achieved network for example Figure 3: The comparison of optimized results for example The ordinate of Figure 3 stands for the value of the VaR and WCVaR, while the abscissa denotes the literature result and optimized results with the different hydrogen utility. The lite and opti illustrate the literature result and optimized result respectively. The series axis represents the VaR and WCVaR. Figure 4: The comparison of Monte Carlo simulations results for example WCVaR VaR 130.0 132.0 134.0 136.0 138.0 lite(Fr=73.7) opti(Fr=73.7) opti(Fr=92.2) 131.5 131.9 136.7 132.2 133.5 137.4 (m o l) β=0.97 distribution1 distribution2 70.0 75.0 80.0 85.0 90.0 95.0 100.0 lite(Fr=73.7) opti(Fr=73.7) opti(Fr=92.2) 78.6 81.7 99.0 76.5 78.4 97.1 P% β=0.97 689 The ordinate of Figure 4 stands for the probability of satisfying hydrogen content requirement, while the abscissa denotes the literature result and optimized results with the different hydrogen utility. The lite and opti illustrate the literature result and optimized result respectively. The series axis represents the two distributions. The Figure 3 and Figure 4 show that optimized result with the same hydrogen utility as literature performs better than the literature result. 92.2 mols-1 is the minimum flowrate of the hydrogen utility to make the WCVaR meets the hydrogen content requirement which is 136.7 mol. The probability of satisfying hydrogen content requirement in this situation improves greatly and approaches 100 % in the two distributions. Therefore, it attests the definition of the WCVaR. The p values do not fully satisfy the requirement because of the limit of the sample numbers. 6. Conclusions Robust optimization of hydrogen network operating parameters is important for its product quality. The WCVaR concept which indicates possible minimum hydrogen content in hydrogen networks is applied to deal with this problem. The disturbance resistance ability is optimized in maximization of WCVaR associated with uncertainty distribution. The article can obtain the hydrogen network whose WCVaR is not less than limit hydrogen content. In comparison with the literature result, Monte Carlo simulation results in the two fluctuation distributions show that the hydrogen network optimized by the WCVaR model performs robustly. Acknowledgments The financial support provided by the Project of National Natural Science Foundation of China (91434205), the National Science Fund for Distinguished Young (21525627), the National Natural Science Foundation of China (Grant 61590925), and the International S&T Cooperation Projects of China (2015DFA40660) are gratefully acknowledged. References Artzner P., Delbaen F., Eber J.M., Heath D., 1999, Coherent Measures of Risk, Mathematical Finance, 9, 203–228. Goldfarb D., Iyengar G., 2003, Robust Portfolio Selection Problems, Mathematics of Operations Research, 28, 1-38. Lou J.Y., Liao Z.W., Jiang B.B., Wang J.D., Yang Y.R., 2014, Robust Optimization of Hydrogen Network, International Journal of Hydrogen Energy, 39 (3), 1210-1219. Lou J.Y., Liao Z.W., Jiang B.B., Wang J.D., Yang Y.R., 2015. A Thermodynamic Irreversibility based Design Method for Multi-Contaminant Hydrogen Networks. International Journal of Hydrogen Energy, 40 (1), 435- 443. Moore J.H., Weatherford L.R., 2001, Decision modeling with Microsoft Excel, Prentice Hall PTR, New Jersey, USA, ISBN: 013017789X. Rockafellar R.T., Uryasev S., 2002, Conditional Value-at-Risk for General Loss Distributions, Journal of Banking and Finance, 26, 1443-1471. Wang B., Feng X., Chu K.H., 2012, A Novel Graphical Procedure Based on Ternary Diagram for Minimizing Refinery Consumption of Fresh Hydrogen, Journal of Cleaner Production, 37, 202-10. Zhang Q., Feng X., Chu K.H., 2013, Evolutionary Graphical Approach for Simultaneous Targeting and Design of Resource Conservation Networks with Multiple Contaminants, Industrial & Engineering Chemistry Research, 52(3), 1309-1321. Zhang Q., Song H.C., Liu G.L., Feng X., 2016, Relative Concentration-based Mathematical Optimization for the Fluctuant Analysis of Multi-impurity Hydrogen Networks, Industrial & Engineering Chemistry Research, 55(39), 10344-10354. Zhu S.S., Fukushima M., 2009, Worst-Case Conditional Value-at-Risk with Application to Robust Portfolio Management, Operations Research, 57, 1155-1168. 690