Note

This page is generated from inline documentation in MACRO/macro_core.gms.

MACRO core formulation

MACRO is a macroeconomic model maximizing the intertemporal utility function of a single representative producer-consumer in each node (or macro-economic region). The optimization result is a sequence of optimal savings, investment, and consumption decisions. The main variables of the model are the capital stock, available labor, and commodity inputs, which together determine the total output of an economy according to a nested constant elasticity of substitution (CES) production function. End-use service demands in the (commercial) demand categories of MESSAGE is determined within the model, and is consistent with commodity supply curves, which are inputs to the model.

Notation declaration

The following short notation is used in the mathematical description relative to the GAMS code:

Math Notation

GAMS set & index notation

Description

\(n\)

node (or node_active in loops)

spatial node corresponding to the macro-economic MESSAGE regions

\(y\)

year

year (2005, 2010, 2020, …, 2100)

\(s\)

sector

sector corresponding to the (commercial) end-use demands of MESSAGE

A listing of all parameters used in MACRO together with a decription can be found in the table below.

Parameter

Description

\(\text{duration_period}_y\)

Number of years in time period \(y\) (forward diff)

\(\text{total_cost}_{n,y}\)

Total system costs in region \(n\) and period \(y\) from MESSAGE model run

\(\text{enestart}_{n,s,y}\)

Consumption level of (commercial) end-use services \(s\) in region \(n\) and period \(y\) from MESSAGE model run

\(\text{eneprice}_{n,s,y}\)

Shadow prices of (commercial) end-use services \(s\) in region \(n\) and period \(y\) from MESSAGE model run

\(\epsilon_n\)

Elasticity of substitution between capital-labor and total energy in region \(n\)

\(\rho_n\)

\(\epsilon - 1 / \epsilon\) where \(\epsilon\) is the elasticity of subsitution in region \(n\)

\(\text{depr}_n\)

Annual depreciation rate in region \(n\)

\(\alpha_n\)

Capital value share parameter in region \(n\)

\(a_n\)

Production function coefficient of capital and labor in region \(n\)

\(b_{n,s}\)

Production function coefficients of the different end-use sectors in region \(n\), sector \(s\) and period \(y\)

\(\text{udf}_{n,y}\)

Utility discount factor in period year in region \(n\) and period \(y\)

\(\text{newlab}_{n,y}\)

New vintage of labor force in region \(n\) and period \(y\)

\(\text{grow}_{n,y}\)

Annual growth rates of potential GDP in region \(n\) and period \(y\)

\(\text{aeei}_{n,s,y}\)

Autonomous energy efficiency improvement (AEEI) in region \(n\), sector \(s\) and period \(y\)

\(\text{fin_time}_{n,y}\)

finite time horizon correction factor in utility function in region \(n\) and period \(y\)

Decision variables

Variable

Definition

Description

\(\text{K}_{n,y}\)

\(\text{K}_{n, y}\geq 0 ~ \forall n, y\)

Capital stock in region \(n\) and period \(y\)

\(\text{KN}_{n,y}\)

\(\text{KN}_{n, y}\geq 0 ~ \forall n, y\)

New Capital vintage in region \(n\) and period \(y\)

\(\text{Y}_{n,y}\)

\(\text{Y}_{n, y}\geq 0 ~ \forall n, y\)

Total production in region \(n\) and period \(y\)

\(\text{YN}_{n,y}\)

\(\text{YN}_{n, y}\geq 0 ~ \forall n, y\)

New production vintage in region \(n\) and period \(y\)

\(\text{C}_{n,y}\)

\(\text{C}_{n, y}\geq 0 ~ \forall n, y\)

Consumption in region \(n\) and period \(y\)

\(\text{I}_{n,y}\)

\(\text{I}_{n, y}\geq 0 ~ \forall n, y\)

Investment in region \(n\) and period \(y\)

\(\text{PHYSENE}_{n,s,y}\)

\(\text{PHYSENE}_{n, s, y}\geq 0 ~ \forall n, s, y\)

Physical end-use service use in region \(n\), sector \(s\) and period \(y\)

\(\text{PRODENE}_{n,s,y}\)

\(\text{PRODENE}_{n, s, y}\geq 0 ~ \forall n, s, y\)

Value of end-use service in the production function in region \(n\), sector \(s\) and period \(y\)

\(\text{NEWENE}_{n,s,y}\)

\(\text{NEWENE}_{n, s, y}\geq 0 ~ \forall n, s, y\)

New end-use service in the production function in region \(n\), sector \(s\) and period \(y\)

\(\text{EC}_{n,y}\)

\(\text{EC} \in \left[-\infty..\infty\right]\)

Approximation of system costs based on MESSAGE results

\(\text{UTILITY}\)

\(\text{UTILITY} \in \left[-\infty..\infty\right]\)

Utility function (discounted log of consumption)

Equation UTILITY_FUNCTION

The utility function which is maximized sums up the discounted logarithm of consumption of a single representative producer-consumer over the entire time horizon of the model.

\[\begin{split}\text{UTILITY} = \sum_{n} \bigg( & \sum_{y | ( ( {ord}( y ) > 1 ) \wedge ( {ord}( y ) < | y | ) )} \text{udf}_{n, y} \cdot {\log}( \text{C}_{n, y} ) \cdot \text{duration_period}_{y} \\ + &\sum_{y | ( {ord}( y ) = | y | ) } \text{udf}_{n, y} \cdot {\log}( \text{C}_{n, y} ) \cdot \big( \text{duration_period}_{y-1} + \frac{1}{\text{fin_time}_{n, y}} \big) \bigg)\end{split}\]

The utility discount rate for period \(y\) is set to \(\text{drate}_{n} - \text{grow}_{n,y}\), where \(\text{drate}_{n}\) is the discount rate used in MESSAGE, typically set to 5%, and \(\text{grow}\) is the potential GDP growth rate. This choice ensures that in the steady state, the optimal growth rate is identical to the potential GDP growth rates \(\text{grow}\). The values for the utility discount rates are chosen for descriptive rather than normative reasons. The term \(\frac{\text{duration_period}_{y} + \text{duration_period}_{y-1}}{2}\) mutliples the discounted logarithm of consumption with the period length. The final period is treated separately to include a correction factor \(\frac{1}{\text{fin_time}_{n, y}}\) reflecting the finite time horizon of the model. Note that the sum over nodes \(\text{node_active}\) is artificial, because \(\text{node_active}\) only contains one element.

Equation CAPITAL_CONSTRAINT

The following equation specifies the allocation of total production among current consumption \(\text{C}_{n, y}\), investment into building up capital stock excluding the sectors represented in MESSAGE \(\text{I}_{n, y}\) and the MESSAGE system costs \(\text{EC}_{n, y}\) which are derived from a previous MESSAGE model run. As described in [7], the first-order optimality conditions lead to the Ramsey rule for the optimal allocation of savings, investment and consumption over time.

\[\text{Y}_{n, y} = \text{C}_{n, y} + \text{I}_{r, y} + \text{EC}_{n, y} \qquad \forall{n, y}\]

Equation NEW_CAPITAL

The accumulation of capital in the sectors not represented in MESSAGE is governed by new capital stock equation. Net capital formation \(\text{KN}_{n,y}\) is derived from gross investments \(\text{I}_{n,y}\) minus depreciation of previsouly existing capital stock.

\[\text{KN}_{n,y} = \text{duration_period}_{y} \cdot \text{I}_{n,y} \qquad \forall{n, y > 1}\]

Here, the initial boundary condition for the base year \(y_0\) implies for the investments that \(\text{I}_{n,y_0} = (\text{grow}_{n,y_0} + \text{depr}_{n}) \cdot \text{kgdp}_{n} \cdot \text{gdp}_{n,y_0}\).

Equation NEW_PRODUCTION

MACRO employs a nested constant elasticity of substitution (CES) production function with capital, labor and the (commercial) end-use services represented in MESSAGE as inputs. This version of the production function is equaivalent to that in MARKAL-MACRO.

\[\text{YN}_{n,y} = { \left( {a}_{n} \cdot \text{KN}_{n, y}^{ ( {\rho}_{n} \cdot {\alpha}_{n} ) } \cdot \text{newlab}_{n, y}^{ ( {\rho}_{n} \cdot ( 1 - {\alpha}_{n} ) ) } + \displaystyle \sum_{s} ( {b}_{n, s} \cdot \text{NEWENE}_{n, s, y}^{{\rho}_{n}} ) \right) }^{ \frac{1}{{\rho}_{n}} } \qquad \forall{ n, y > 1}\]

Equation TOTAL_CAPITAL

Equivalent to the total production equation above, the total capital stock, again excluding those sectors which are modeled in MESSAGE, is then simply a summation of capital stock in the previous period \(y-1\), depreciated with the depreciation rate \(\text{depr}_{n}\), and the capital stock added in the current period \(y\).

\[\text{K}_{n, y} = \text{K}_{n, y-1} \cdot { \left( 1 - \text{depr}_n \right) }^{\text{duration_period}_{y}} + \text{KN}_{n, y} \qquad \forall{ n, y > 1}\]

Equation TOTAL_PRODUCTION

Total production in the economy (excluding energy sectors) is the sum of production from assets that were already existing in the previous period \(y-1\), depreciated with the depreciation rate \(\text{depr}_{n}\), and the new vintage of production from period \(y\).

\[\text{Y}_{n, y} = \text{Y}_{n, y-1} \cdot { \left( 1 - \text{depr}_n \right) }^{\text{duration_period}_{y}} + \text{YN}_{n, y} \qquad \forall{ n, y > 1}\]

Equation NEW_ENERGY

Total energy production (across the six commerical energy demands \(s\)) is the sum of production from all assets that were already existing in the previous period \(y-1\), depreciated with the depreciation rate \(\text{depr}_{n}\), and the the new vintage of energy production from period \(y\).

\[\text{PRODENE}_{n, s, y} = \text{PRODENE}_{n, s, y-1} \cdot { \left( 1 - \text{depr}_n \right) }^{\text{duration_period}_{y}} + \text{NEWENE}_{n, s, y} \qquad \forall{ n, s, y > 1}\]

Equation ENERGY_SUPPLY

The relationship below establishes the link between physical energy \(\text{PHYSENE}_{r, s, y}\) as accounted in MESSAGE for the six commerical energy demands \(s\) and energy in terms of monetary value \(\text{PRODENE}_{n, s, y}\) as specified in the production function of MACRO.

\[\text{PHYSENE}_{n, s, y} \geq \text{PRODENE}_{n, s, y} \cdot \text{aeei_factor}_{n, s, y} \qquad \forall{ n, s, y > 1}\]

The cumulative effect of autonomous energy efficiency improvements (AEEI) is captured in \(\text{aeei_factor}_{n,s,y} = \text{aeei_factor}_{n, s, y-1} \cdot (1 - \text{aeei}_{n,s,y})^{\text{duration_period}_{y}}\) with \(\text{aeei_factor}_{n,s,y=1} = 1\). Therefore, choosing the \(\text{aeei}_{n,s,y}\) coefficients appropriately offers the possibility to calibrate MACRO to a certain energy demand trajectory from MESSAGE.

Equation COST_ENERGY

Energy system costs are based on a previous MESSAGE model run. The approximation of energy system costs in vicinity of the MESSAGE solution are approximated by a Taylor expansion with the first order term using shadow prices \(\text{eneprice}_{s, y, n}\) of the MESSAGE model’s solution and a quadratic second-order term.

\[\begin{split}\text{EC}_{n, y} = & \text{total_cost}_{n, r} \\ + & \displaystyle \sum_{s} \text{eneprice}_{s, y, n} \cdot \left( \text{PHYSENE}_{n, s, y} - \text{enestart}_{s, y, n} \right) \\ + & \displaystyle \sum_{s} \frac{\text{eneprice}_{s, y, n}}{\text{enestart}_{s, y, n}} \cdot \left( \text{PHYSENE}_{n, s, y} - \text{enestart}_{s, y, n} \right)^2 \qquad \forall{ n, y > 1}\end{split}\]

Equation TERMINAL_CONDITION

Given the finite time horizon of MACRO, a terminal constraint needs to be applied to ensure that investments are chosen at an appropriate level, i.e. to replace depriciated capital and provide net growth of capital stock beyond MACRO’s time horizon [7]. The goal is to avoid to the extend possible model artifacts resulting from this finite time horizon cutoff.

\[\text{K}_{n, y} \cdot \left( \text{grow}_{n, y} + \text{depr}_n \right) \leq \text{I}_{n, y} \qquad \forall{ n, y = \text{last year}}\]