Path: blob/main/notebooks/06/04-building-insulation.ipynb
663 views
6.4 Optimal Design of Multilayered Building Insulation
Thermal insulation is installed in buildings to reduce annual energy costs. However, the installation costs money, so the decision of how much insulation to install is a trade-off between the annualized capital costs of insulation and the annual operating costs for heating and air conditioning. This notebook shows the formulation and solution of an optimization problem using conic optimization.
Preamble: Install Pyomo and a solver
This cell selects and verifies a global SOLVER for the notebook.
If run on Google Colab, the cell installs Pyomo and ipopt, then sets SOLVER to use the ipopt solver. If run elsewhere, it assumes Pyomo and the Mosek solver have been previously installed and sets SOLVER to use the Mosek solver via the Pyomo SolverFactory. It then verifies that SOLVER is available.
Problem description
Consider a wall or surface separating conditioned interior space in a building at temperature from the external environment at temperature . Heat conduction through the wall is given by
where is the overall heat transfer coefficient and and is the heat transfer area. For a wall constructed from layers of different insulating materials, the inverse of the overall heat transfer coefficient is given by a sum of serial thermal "resistances"
where is the thermal resistance of the structural elements. The thermal resistance of the -th insulating layer is equal to for a material with thickness and a thermal conductivity , so we can rewrite
The economic objective is to minimize the cost , obtained as the combined annual energy operating expenses and capital cost of insulation.
We assume the annual energy costs are proportional to overall heat transfer coefficient and let be the coefficient for the proportional relationship of the overall heat transfer coefficient to the annual energy costs. Furthermore, we assume the cost of installing a unit area of insulation in the -th layer is given by the affine expression . The combined annualized costs are then
where is a discount factor for the equivalent annualized cost of insulation, and is a binary variable that indicates whether or not layer is included in the installation. The feasible values for are subject to constraints
where is an upper bound on insulation thickness.
Analytic solution for
In the case of a single layer, i.e., , we have a one-dimensional cost optimization problem of which we can directly obtain a closed-form analytical solution. Indeed, the expression for the cost as a function of the thickness reads
For fixed parameters , , , , we can calculate the optimal thickness as
A plot illustrates the trade-off between energy operating costs and capital insulation costs and the corresponding optimal solution .
Pyomo Model for
In the Pyomo Kernel Library, a conic rotated constraint is of the form
where , , and are variables. For a single layer Pyomo model we identify , , and which leads to the model
This model can be translated directly into into a Pyomo conic optimization problem using the Pyomo Kernel Library.
Multi-Layer Solutions as a Mixed Integer Quadratic Constraint Optimization (MIQCO)
For multiple layers, we cannot easily find an analytical optimal layer composition and must resort to conic optimization. Let be the binary variable that indicates whether layer is included in the insulation package or not, and be the continuous variable describing the thickness of layer , which is zero if layer is not included.
In the general case with layers, the objective function is given by
where the first term is nonlinear in the variables since the denominator of the first term is equal to
To overcome this issue, we can include as a decision variable and include a constraint
Since we minimize the objective and has no other constraint, the problem will guarantee that is equal to . The extra constraint can be reformulated using an extra decision variable as:
from which we see that the whole problem can be reformulated as a conic optimization problem.
The middle formulation above can, in fact, be implemented in Pyomo as a conic rotated constraint of the form:
In our case, we choose , , , and .
Adopting this formulation, the full multilayer building isolation optimization problem then reads:
Case 1. Single Layer Solution
Case 2. Multiple Layer Solution
The plot below gives a graphical representation of the 2-layer problem we just solved. The green line represents the thickness constraint , the curves are the isolines of the objective function, and the optimal solution is highlighted in red.
Bibliographic Notes
To the best of my knowledge, this problem is not well-known example in the mathematical optimization literature. There are a number of application papers with differing levels of detail.
Hasan, A. (1999). Optimizing insulation thickness for buildings using life cycle cost. Applied energy, 63(2), 115-124. https://www.sciencedirect.com/science/article/pii/S0306261999000239
Kaynakli, O. (2012). A review of the economical and optimum thermal insulation thickness for building applications. Renewable and Sustainable Energy Reviews, 16(1), 415-425. https://www.sciencedirect.com/science/article/pii/S1364032111004163
Nyers, J., Kajtar, L., Tomić, S., & Nyers, A. (2015). Investment-savings method for energy-economic optimization of external wall thermal insulation thickness. Energy and Buildings, 86, 268-274. https://www.sciencedirect.com/science/article/pii/S0378778814008688
More recently some modeling papers have appeared
Gori, P., Guattari, C., Evangelisti, L., & Asdrubali, F. (2016). Design criteria for improving insulation effectiveness of multilayer walls. International Journal of Heat and Mass Transfer, 103, 349-359. https://www.sciencedirect.com/science/article/abs/pii/S0017931016303647
Huang, H., Zhou, Y., Huang, R., Wu, H., Sun, Y., Huang, G., & Xu, T. (2020). Optimum insulation thicknesses and energy conservation of building thermal insulation materials in Chinese zone of humid subtropical climate. Sustainable Cities and Society, 52, 101840. https://www.sciencedirect.com/science/article/pii/S221067071931457X
Söylemez, M. S., & Ünsal, M. (1999). Optimum insulation thickness for refrigeration applications. Energy Conversion and Management, 40(1), 13-21. https://www.sciencedirect.com/science/article/pii/S0196890498001253
Açıkkalp, E., & Kandemir, S. Y. (2019). A method for determining optimum insulation thickness: Combined economic and environmental method. Thermal Science and Engineering Progress, 11, 249-253. https://www.sciencedirect.com/science/article/pii/S2451904918305377
Ylmén, P., Mjörnell, K., Berlin, J., & Arfvidsson, J. (2021). Approach to manage parameter and choice uncertainty in life cycle optimisation of building design: Case study of optimal insulation thickness. Building and Environment, 191, 107544. https://www.sciencedirect.com/science/article/pii/S0360132320309112