You are on page 1of 7

Education for Chemical Engineers 26 (2019) 41–47

Contents lists available at ScienceDirect

Education for Chemical Engineers


journal homepage: www.elsevier.com/locate/ece

Application of the Microsoft Excel Solver tool in the solution of


optimization problems of heat exchanger network systems
L. Briones ∗ , J.M. Escola
Group of Chemical and Environmental Engineering (GIQA), Rey Juan Carlos University, ESCET, c/ Tulipán s/n, Móstoles 28933, Spain

a r t i c l e i n f o a b s t r a c t

Article history: Optimization of heat exchanger networks (HENS ) is a field of interest in Chemical Engineering. The aim
Received 13 February 2018 is to use the residual heat of process streams to raise the temperature of other process streams which are
Received in revised form 7 August 2018 cold, thus minimizing the use of hot and cold utilities. The usual way to deal with this task is to pose a
Accepted 25 October 2018
linear programming problem according to a transshipment model in order to minimize either the general
Available online 3 November 2018
services consumptions or the number of hot and cold stream matchings required. This optimization is
subjected to several restrictions given by the energy balances corresponding to each heat exchange.
Keywords:
The high number of variables and equations obliges the use of specific software to solve these problems,
Heat exchanger networks
Excel Solver
e.g. GAMS (General Algebraic Modelling System). However, this software is not intuitive and requires a
Optimization long time of training and a certain level of practice for the students to adequately use it.
Linear programming This work describes the use of Microsoft Excel-Solver for the sequential solving of HENS optimization
problems according to the transshipment model. Solver is a much simpler, intuitive and easily available
tool for the students who, besides, usually learn how to use it in the first years of their degree, in Infor-
matics or similar subjects. Thus, it is not necessary to spend extra time in the teaching of the software,
time that may be devoted to other contents.
This paper presents an example of HENS problem proposed in the subject Simulation and Optimization
of Chemical Processes corresponding to the Joint Master in Chemical Engineering of the Rey Juan Carlos
University and the Autónoma University of Madrid and solved by the students using Excel-Solver.
© 2018 Institution of Chemical Engineers. Published by Elsevier B.V. All rights reserved.

1. Introduction mum needed flows of hot and cold utilities when constraints in the
matching are occurring.
Mathematical optimization techniques are widely used in the These and other optimization problems may be solved by hand,
solution of every kind of problems of Chemical Engineering (Biegler however computer-assisted solutions are widely applied to all kind
et al., 1999; Seider et al., 2004). One of the systems that have of university curricula because they reduce the time students ded-
been extensively studied is the optimization of heat exchanger net- icate to repetitive operations while connect the skills provided in
work systems (HENS ). In a HENS problem there are hot streams the courses to those demanded by the professional world. Several
that need to be cooled and cold streams that need to be heated. commercial simulators are available, such as ASPEN Plus, COMSOL,
Hence, the possibility of self-integrating the heat exchange of both Hysys, etc. for the solution of any kind of optimization problems
groups of streams appears as a very reasonable choice in order to related to chemical processes, but this specific software is intended
improve considerably the economy of the whole process by the for professional use by expert engineers with full understanding
associated enhanced energy savings (Mian et al., 2016; Short et al., of the particular equipment they work with. These tools require
2015). These HENS problems may be solved using the Expanded long training and deep knowledge usually above the ability of the
Transshipment Model (Chen et al., 2015), which involves the gen- students.
eration of a LP optimization problem (Linear Programming). The Algebraic tools like GAMS (General Algebraic Modelling Sys-
variables which must be simultaneously determined are the mini- tem) or programming languages like Matlab have also been used
for didactical purposes (Yimyam and Siemanond, 2012; Escobar
and Treiweiler, 2013). For example, GAMS, in combination with
MATLAB, has been applied to solve multiobjective optimization
∗ Corresponding author.
problems in engineering subjects entirely devoted to applied opti-
E-mail addresses: laura.briones.gil@urjc.es (L. Briones),
josemaria.escola.saez@urjc.es (J.M. Escola).
mization (García et al., 2012). Additionally, there are another

https://doi.org/10.1016/j.ece.2018.10.003
1749-7728/© 2018 Institution of Chemical Engineers. Published by Elsevier B.V. All rights reserved.
42 L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47

software tools available for free to universities for solving opti- Table 1
Thermal properties of the hot and cold streams.
mization problems such as PRO PI (Industrial Energy Analysis Co.,
Sweden), FI2 EPI (Instituto Superior Técnico, Lisbon) and SPRINT Stream FCp (MW/◦ C) Tin (◦ C) Tout (◦ C)
(University of Manchester). H1 1.3 400 140
In other cases, non-commercial software was developed. Martín H2 2.2 340 120
and Mato reported the creation and use of the software HINT (Heat C1 1.8 160 380
Integration) for the solution of HENs problems within the course C2 1.5 100 320

of Heat Integration of Chemical Processes in the Master of Chemi-


cal Engineering of the University of Valladolid, Spain, (Martín and
Mato, 2008). 3. 1 example to determine the minimum number of matches
This work describes an easier and simpler methodology to solve among hot and cold streams for the exchange to happen.
these problems consisting of the use of the Solver tool incorporated
in Microsoft Excel. Solver is a very intuitive software, virtually avail- These problems are solved by the students using the Solver tool
able for all college students and allows the students solving HENs included in the Excel Spreadsheet. The difficulties posed by the
problems practically in an immediate way. Besides, in most cases exercises along the classes are commented with the lecturer in
the teaching of Solver is accomplished in the first years of engi- order to solve them, which enables the student to fully compre-
neering studies, so the time and resources that should be spent hend the optimization methods used for the solution of the HENS
otherwise to the teaching of the software may be devoted to explain problems. Henceforth, an Expanded Transshipment problem sim-
specific aspects of optimization, heat exchangers or whatever other ilar to that put forward to the students in the subject is solved so
topics of the subject. The potential of Excel – Solver to solve every as to show this methodology, which is of general applicability. The
kind of optimization problems related to chemical engineering was theoretical basis of the heat exchanger network systems problems
demonstrated by Ferreira and co-workers in the early 2000s. They solved by the Expanded Transshipment model may be found else-
tried to establish to what extent Solver was capable of solving where (Biegler et al., 1999). Its solution involves three subsequent
complex problems and determined that Excel was a powerful soft- stages:
ware because it combined in one application an optimization tool, a
database, a programming tool (by means of the Developer option) 1. Development of a partition table by temperature intervals.
and an intuitive way to deliver the results (Ferreira and Salcedo, 2. Performing a block diagram that includes the heat cascade.
2001; Ferreira et al., 2004). Besides, the same limitations found for 3. Posing and solving of the problem by means of Solver.
Excel were found for GAMS. García and Caballero also reported the
use of Excel – Solver as an example of easy-to-use software for the
The Expanded Transshipment model shows the remarkable fea-
solution of multiobjective optimization problems in an undergrad-
ture of enabling to include constraints in the matching among
uate course of Simulation and Optimization of Chemical Processes
streams for heat exchange. The following example consists of two
(García and Caballero, 2012).
hot streams that are to be cooled (H1 and H2) and two cold streams
This works details the solution of HENS problems with Solver, so
that are to be heated (C1 and C2). The thermal data corresponding
students, professors or any other person interested in the subject
to these streams are shown in Table 1.
may be guided to its use. This methodology has been successfully
Besides the hot and cold streams, steam (QS , in MW) at 450 ◦ C,
taught in the subject “Simulation and Optimization of Chemical
with a cost of 80,000 $/MW, will be used for heating while cooling
Processes” corresponding to the Master in Chemical Engineering
water (Qw , in MW) at 20 ◦ C, costing 20,000 $/MW, will be employed
imparted jointly by Rey Juan Carlos University and Autónoma Uni-
for cooling. In every heat exchanger, the minimum temperature
versity of Madrid. The perception of the students has been gathered
difference allowed in the exchanges between cold and hot fluid is
in a simple survey by the end of the course.
20 ◦ C. In this particular problem, the objective function to minimize
(C, in $) is the sum of the costs of steam and cooling water, given
by Eq. (1), in order to determine the minimum required amount of
2. Description of the optimization problem both utilities:

The design of heat exchanger network systems (HENS ) is car- Min C = 80.000 Q s + 20.000 Q w (1)
ried out within a module of 18 h, comprising the mathematical
basis of optimization (8 h) and the design of heat exchanger net- Subsequently, the equality constraints of the problem (h(x) = 0)
work systems employing these optimization methods (8 h). They are to be determined by means of the Expanded Transshipment
are taught during January and February, which is followed by a model. Thereby, the next step consists of the build-up of the par-
theoretical examination in March (2 h). The number of students tition table by interval temperatures. This table is made up by
attending to the classes is around 50–60, depending on the aca- ordering decreasingly all the temperatures shown by the hot and
demic year. The theory and practice of the heat exchanger network cold streams. Thus, the temperatures corresponding to the hot
system is explained in a classroom furnished with computers (1 streams are situated on the left of the table while those corre-
computer by each student) wherein the pupils perform the pro- sponding to the cold streams are placed on the right. Between these
posed exercises individually with the assistance of the lecturer. The temperatures a fixed temperature difference corresponding to the
typical HENS exercises proposed to the students are indicated as determined temperature difference of 20 ◦ C should exist. When
follows: there is no real temperature in one column corresponding to a
real one in the other column (indistinctly hot or cold stream in the
table), a virtual temperature must be supposed, which appears into
1. 3 examples of the conventional Transshipment model (without brackets. Henceforth, the partition table by temperature intervals
constraints in the matching) devoted to the determination of the associated to the data shown in Table 1 is depicted in Fig. 1, wherein
minimum required amount of hot and cold utilities. five temperature intervals are attained. Additionally, for the sake of
2. 1 example corresponding to the Expanded Transshipment model clarity, in this partition table four purple arrows have been added
(with constraints in the matching), also devoted to the calcula- to indicate the temperature ranges encompassed by each hot and
tion of the minimum required amount of hot and cold utilities. cold stream.
L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47 43

powers drop to the lower interval, which are denoted as Rsk or Rnk
(s from steam, n from the number of the corresponding hot stream
and k is the associated interval of temperature). On the other hand,
the heating powers exchanged in every temperature interval are
named as Qnmk , Qsmk and Qnw wherein n stands for the number of
the giving hot stream, m is the number of the associated receiving
cold stream and w represents the receiving utility cooling water. In
every interval, several energy balances are set up in the different
nodes that constitute the equality constraints of the optimization
problem. Fig. 2 illustrates the heat cascade diagram associated to
intervals 1 and 2 of the example problem while Fig. 3 shows the
corresponding one to the remaining temperature intervals (3, 4 and
5).
From both diagrams, the following equality constraints are
obtained in every interval:
Fig. 1. Partition table by temperature intervals of the data in Table 1.
Interval 1:
Qs − Qs11 − Rs1 = 0
Table 2 Qs11 + Q111 − 108 = 0
Enthalpìes (MW) corresponding to each temperature interval for both the hot and
Q111 + R11 − 78 = 0
cold streams.
Interval 2:
Stream H1 H2 C1 C2 Rs1 − Rs2 − Qs12 − Qs22 = 0
Interval 1 78 – 108 – R11 − R12 − Q112 − Q122 + 26 = 0
Interval 2 26 44 36 30 R22 + Q212 + Q222 − 44 = 0
Interval 3 182 308 252 210 Qs12 + Q112 + Q212 − 36 = 0
Interval 4 52 88 – 60
Interval 5 – 44 – 30
Qs22 + Q122 + Q222 − 30 = 0
Total 338 484 396 330 Interval 3:
Rs2 − Rs3 − Qs13 − Qs23 = 0
R12 + 182 − R13 − Q113 − Q123 = 0
From this partition table by temperature intervals, the enthalpy R22 + 308 − R23 − Q213 − Q223 = 0
added or retired in every one of them is calculated using Eq. (2): Qs13 + Q113 + Q213 − 252 = 0
Qs23 + Q123 + Q223 − 210 = 0
P = FCp (T1 –T2 ) (2) Interval 4:
Rs3 − Qs24 − Rs4 = 0
wherein P stands for the enthalpy in MW (megawatts), FCp
R13 + 52 − Q124 − R14 = 0
(MW/◦ C) is the product of the molar flow F (mol/s) and the molar
R23 + 88 − Q224 − R24 = 0
heat capacity Cp (MW/(◦ C mol)), while (T1 –T2 ) corresponds to the
Qs24 + Q124 + Q224 − 60 = 0
temperature difference encompassed by the temperature interval.
Interval 5:
Once the calculations have been carried out, the following Table
Rs4 − Qs25 = 0
of enthalpies (Table 2) ascribed to each temperature interval is
R14 − Q125 − Q1w5 = 0
obtained.
R24 + 44 − Q225 − Q2w5 = 0
From the data shown in Table 2, it is possible to create a heat
Qs25 + Q125 + Q225 − 30 = 0
cascade diagram, wherein each temperature interval is represented
Q1w5 + Q2w5 − Qw = 0
as a box. Different lines will go out from the box to the cold streams
In this problem, the exchanges between hot stream 1 and cold
or enter in the box from the hot streams according to the associ-
stream 1 are forbidden (Q111 = Q112 = Q113 = 0). Therefore, these
ated power flows brought into play in every interval (see Table 2).
heats are to be set to zero in the problem. Additionally, along with
Additionally, to interval 1, which is the one corresponding to the
the indicated heat balances in every interval, all the heats (except
highest temperature, steam (Qs ) is fed, while to interval 5, which is
Q111 , Q112 and Q113 ) are to be specified higher or equal to zero in
the one assigned to the lowest temperatures, cooling water (Qw ) is
the mathematical formulation of the problem.
added to the exchanges. From each box, different residual heating

Fig. 2. Heat cascade diagram corresponding to the intervals 1 and 2 of the example problem.
44 L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47

Fig. 3. Heat cascade diagram corresponding to the intervals 3, 4 and 5 of the example problem.

3. Solution of the optimization problem by solver are indicated. In column B, random numbers are added correspond-
ing to the variables values named in column A in order to have
The aforementioned optimization problem will be solved by starting values to proceed with the iterations. In column C, the name
means of Excel − Solver. Thus, the following spreadsheet will be of the intervals are included as well as the objective function (FO).
developed. In column A, the names of the variables of the problem

Fig. 4. Appearance of the excel spreadsheet after including the data.


L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47 45

Fig. 5. Screen capture corresponding to the Solver screen showing the objective function cell, constraints and manipulated variables.

In column D, the constraints corresponding to every interval are Cell E40: = B36 + B37 − B4
included according to the following nomenclature: The general appearance of the Excel spreadsheet after including
Interval 1: these data appears in Fig. 4.Subsequently, Solver is to be started.
Cell E7: = B3 − B16 − B5 Once the Solver icon (upper right hand corner) is clicked, the fol-
Cell E8: = B16 + B23 − 108 lowing screen appears (Fig. 5) wherein the objective function, the
Cell E9: = B23 + B9 − 78 constraints and the variables cells are included. Then, the optimiza-
Interval 2: tion resolution method is selected (Simplex LP) and the program is
Cell E13: = B5 − B6 − B17 − B18 executed. In this point, the Solver program points out that a viable
Cell E14: = B9 + 26 − B10 − B24 − B25 solution has been found and as a result, their corresponding values
Cell E15: = 44 − B13 − B30 − B31 substitute the starting ones in the associated cells in column B.
Cell E16: = B17 + B24 + B30 − 36 Fig. 6 illustrates the screenshot showing the attained solution,
Cell E17: = B18 + B25 + B31 − 30 wherein a Qs = 108 MW and a Qw = 204 MW is obtained in cells B3
Interval 3: and B4, respectively. Additionally, the attained value of the objec-
Cell E21: = B6 − B7- B19 − B20 tive function (12,720,000 $) is indicated in cell E41. It is noteworthy
Cell E22: = B10 + 182 − B11 − B26 − B27 to observe how all the equality constraints assigned at every tem-
Cell E23: = 308 + B13 − B14 − B32 − B33 perature interval are set to 0 in the Excel spreadsheet, which bears
Cell E24: = B19 + B26 + B32 − 252 out the fulfilment of all the mathematical conditions of the prob-
Cell E25: = B20 + B27 + B33 − 210 lem. Consequently, Solver succeeded in solving this kind of HENS
Interval 4: optimization problems.
Cell E29: = B7 − B21 − B8 Additionally, a brief survey was carried out with the students in
Cell E30: = B11 + 52 − B28 − B12 order to know their impressions about the use of Solver for solving
Cell E31: = B14 + 88 − B34 − B15 HENS problems. The survey consisted of the following five Yes/No
Cell E32: = B21 + B28 + B34 − 60 simple questions:
Interval 5:
Cell E36: = B8 − B22
Cell E37: = B12 − B29 − B36
Cell E38: = B15 + 44 − B35 − B37 • Question 1: Have you solved the HENS problem corresponding to
Cell E39: = B22 + B29 + B35 − 30 the expanded transshipment model using Solver?
46 L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47

Fig. 6. Screen capture corresponding to the solution of the problem after applying Solver.

was scarcely known, despite of being easily available through the


Excel Spreadsheet. In this regard, many of the students have been
gladly surprised by its possibilities, as it is a highly accessible tool
for them. The third question was answered positively by practically
the whole of the class (36/4), which confirms the ease for the stu-
dents to use the Solver tool. It is also noteworthy the answer to
the fourth question, since the great majority of the students (4/37)
did not know the possibility of solving HENS problems through
the Solver tool. Finally, the positive answer to the fifth question
by a great majority of students (34/6) bears out that Solver will be
used in their future professional career. Once its potential has been
unveiled, the students discover that Solver is a very helpful tool to
be used in other optimization problems of Chemical Engineering.

4. Conclusions
Fig. 7. Results obtained in the survey performed on the students about Excel-Solver
as a tool for solving HENS problems.
The present work has introduced a simple way to solve opti-
mization problems of heat exchangers networks systems (HENS )
• Question 2: Had you previously used Solver to solve optimization by using the Solver tool of Excel. The procedure is very intuitive
problems of any kind? and easy to use by the students, requiring less time of learning than
• Question 3: Have you found easy to learn Solver for solving HENS the more usually used GAMS software. A great deal of students did
problems? not know previously the potential of Solver to solve HENs problems
• Question 4: Did you previously know the possibility of solving and they were gladly surprised by its potential and its easy learn-
HENS problems using Solver? ing. In this regard, Solver appears as a very interesting tool for the
• Question 5: Would you use in the future Solver for solving other solving of these and another kind of chemical engineering related
optimization problems of Chemical Engineering, once its poten- optimization problems.
tial has been disclosed?

Fig. 7 illustrates the answers provided by the students to these References


five questions. The total number of students subjected to this survey
Biegler, L. T., Grossmann, I., Westerberg, A. W., Systematic Methods of Chemical
was 41. To the first question, the students responded overwhelm- Process Design, 2nd ed., 1999, Prentice Hall PTR, Upper Saddle River, New Jersey.
ingly yes (36/5), which indicates a high ratio of success by the pupils Chen, Y., Grossmann, I.E., Miller, D.C., 2015. Computational strategies for large scale
in the usage of Solver to solve the problems posed by the expanded MILP transshipment models for heat exchanger network synthesis. Comput.
Chem. Eng. 82, 68–83.
transshipment model. The answer to the second question was no Escobar, M., Treiweiler, J.O., 2013. Optimal heat exchanger network synthesis: a case
for the majority of the students (14/27) what means that Solver study comparison. Appl. Therm. Eng. 51, 801–826.
L. Briones, J.M. Escola / Education for Chemical Engineers 26 (2019) 41–47 47

Ferreira, E.C., Salcedo, R., 2001. Can spreadsheet solvers solve demanding optimiza- Mian, A., Martelli, E., Marchal, F., 2016. Framework for the multiperiod sequential
tion problems? Comput. Appl. Eng. Educ. 9 (1), 49–56. synthesis of heat exchangers networks with selection, design and scheduling of
Ferreira, E.C., Lima, R., Salcedo, R., 2004. Spreadsheets in chemical engineering edu- multiple utilities. Ind. Eng. Chem. Res. 55 (1), 168–186.
cation – a tool in process design and process integration. Int. J. Eng. Educ. 20 (6), Seider, W.D., Seader, J.D., Lewin, D.R., 2004. Product & Process Design Principles,
928–938. Synthesis, Analysis and Evaluation, 2nd ed. John Wiley & Sons, Hoboken, New
García, N., Caballero, J.A., 2012. How to implement environmental considerations Jersey.
in chemical process design: an approach to multiobjective optimization for Short, M., Isofiade, A.J., Fraser, D.M., Kravanja, Z., 2015. Heat exchanger network syn-
undergraduate students. Educ. Chem. Eng. 7, e56–e67. thesis including detailed exchanger designs using mathematical programming
García, N., Ruiz-Femeina, R., Caballero, J.A., 2012. Teaching mathematical modeling and heuristics. Chem. Eng. Trans. 45, 1849–1854.
software for multiobjective optimization in chemical engineering courses. Educ. Yimyam, B., Siemanond, K., 2012. Retrofit with exchanger relocation of crude preheat
Chem. Eng. 7, e169–e180. train under different kinds of crude oils. Chem. Eng. Trans. 29, 319–324.
Martín, A., Mato, F.A., 2008. Hint: an educational software for heat exchanger net-
work design with the pinch method. Educ. Chem. Eng. 3, e6–e14.

You might also like