skip to main content


Title: Equation-based languages – A new paradigm for building energy modeling, simulation and optimization

Most of the state-of-the-art building simulation programs implement models in imperative programming languages. This complicates modeling and excludes the use of certain efficient methods for simulation and optimization. In contrast, equation-based modeling languages declare relations among variables, thereby allowing the use of computer algebra to enable much simpler schematic modeling and to generate efficient code for simulation and optimization. We contrast the two approaches in this paper. We explain how such manipulations support new use cases. In the first of two examples, we couple models of the electrical grid, multiple buildings, HVAC systems and controllers to test a controller that adjusts building room temperatures and PV inverter reactive power to maintain power quality. In the second example, we contrast the computing time for solving an optimal control problem for a room-level model predictive controller with and without symbolic manipulations. As a result, exploiting the equation-based language led to 2, 200 times faster solution
 [1] ;  [1] ;  [1]
  1. Lawrence Berkeley National Lab. (LBNL), Berkeley, CA (United States)
Publication Date:
Report Number(s):
Journal ID: ISSN 0378-7788; ir:1003383
Grant/Contract Number:
Accepted Manuscript
Journal Name:
Energy and Buildings
Additional Journal Information:
Journal Volume: 117; Journal Issue: C; Journal ID: ISSN 0378-7788
Research Org:
Lawrence Berkeley National Lab. (LBNL), Berkeley, CA (United States)
Sponsoring Org:
USDOE Office of Energy Efficiency and Renewable Energy (EERE), Building Technologies Office (EE-5B)
Country of Publication:
United States
97 MATHEMATICS AND COMPUTING; 32 ENERGY CONSERVATION, CONSUMPTION, AND UTILIZATION; equation-based modeling; modelica; multi-physics simulation; smart grid; optimal control
OSTI Identifier:
Alternate Identifier(s):
OSTI ID: 1254863