.. _operations_model:

Operations
==========

.. list-table:: - Output Variables
  :header-rows: 1

  * - Variable Name
    - Description
    - Units
  * - :math:`e(ac,rt,t)`
    - Aircraft energy consumption on each route per year after operational changes are applied
    - MJ
  * - :math:`g(ac,rt,t)`
    - Life-cycle emissions on each route per year after operational changes are applied
    - |kgco2eq|
  * - :math:`n(ac,rt,t)`
    - Number of flights on each route per year after operational changes are applied
    - -

.. list-table:: - Input Variables
  :header-rows: 1

  * - Variable Name
    - Description
    - Units
  * - :math:`e_\mathrm{in}(ac,rt,t)`
    - Fuel consumption of aircraft :math:`ac` on route :math:`rt` in each year, expressed in units of energy
    - MJ
  * - :math:`g_\mathrm{in}(ac,rt,t)`
    - Emissions of aircraft :math:`ac` on route :math:`rt` in each year
    - |kgco2eq|
  * - :math:`n_\mathrm{in}(ac,rt,t)`
    - Number of flights of aircraft :math:`ac` on route :math:`rt` in each year
    - -
  * - :math:`rptk_\mathrm{in}(ac,rt,t)`
    - Revenue passenger payload carried by aircraft :math:`ac` on route :math:`rt` in each year
    - tonne-km
  * - :math:`\Delta \eta_\mathrm{arm}(t)`
    - Fractional improvement in energy consumption due to aircraft retrofit and maintenance improvements in each year
    - -
  * - :math:`\Delta \eta_\mathrm{fao}(t)`
    - Fractional improvement in energy consumption due to fleet and airport operations improvements in each year
    - -
  * - :math:`\Delta \eta_\mathrm{atm}(t)`
    - Fractional improvement in energy consumption due to air traffic management improvements in each year
    - -
  * - :math:`LF_\mathrm{pax,in}(ac, rt, t)`
    - Passenger load factor of aircraft :math:`ac` on route :math:`rt` in year :math:`t` before operational improvements
    - -
  * - :math:`LF_\mathrm{cargo,in}(ac, rt, t)`
    - Cargo load factor of existing aircraft :math:`ac` on route :math:`rt` in year :math:`t` before operational improvements
    - -
  * - :math:`LF_\mathrm{pax}(ac,rt,t)`
    - Passenger load factor of aircraft :math:`ac` on route :math:`rt` in year :math:`t` after operational improvements to enforce
    - -

.. _oe-improvements:

Improvement types
-----------------

The operational efficiency model allows improvements to be applied to four segments of the air transportation system: the aircraft itself, operation of the aircraft at airports, air traffic management, and passenger load factor.
The improvements corresponding to the first three segments are denoted :math:`\Delta {\eta_\mathrm{arm}}{(t)}`, :math:`\Delta {\eta_\mathrm{fao}}{(t)}`, and :math:`\Delta {\eta_\mathrm{atm}}{(t)}`.
These curves specify an improvement in fuel efficiency for each simulation year :math:`t` relative to the fuel consumption in that year after all previous strategies have been applied.
Each is a linear curve that begins at 0 in 2019 and increases to the corresponding improvement at the end year specified by the user:

.. math::
    :label:

    \Delta {\eta_\mathrm{arm}}{(t)} = \Delta \eta_\mathrm{arm,end} \cdot \frac{t - 2019}{t_\mathrm{end}-2019}, \quad 2019 \leq t \leq t_\mathrm{end},\\
    \Delta {\eta_\mathrm{fao}}{(t)} = \Delta \eta_\mathrm{fao,end} \cdot \frac{t - 2019}{t_\mathrm{end}-2019}, \quad 2019 \leq t \leq t_\mathrm{end},\\
    \Delta {\eta_\mathrm{atm}}{(t)} = \Delta \eta_\mathrm{atm,end} \cdot \frac{t - 2019}{t_\mathrm{end}-2019}, \quad 2019 \leq t \leq t_\mathrm{end}.

They may also assume any of the functional forms described in :ref:`custom-curves` below.
Finally, the user can specify the value of the passenger load factor :math:`LF_\mathrm{pax}(ac,rt,t)` to use in each year, which directly affects the number of flights and, indirectly, the fuel efficiency and emissions intensity.

Impact on energy, emissions, and flight count
------------------------------------------------

The fuel efficiency improvements related to aircraft retrofit and maintenance, fleet and airport operations, and air traffic management combine additively to reduce energy consumption and emissions uniformly across all routes (passenger and freighter) according to

.. math::
    :label:

    e^\ast(ac,rt,t) &= (1 - \Delta \eta(t)) \cdot e_\mathrm{in}(ac,rt,t),\\
    g^\ast(ac,rt,t) &= (1 - \Delta \eta(t)) \cdot g_\mathrm{in}(ac,rt,t),

where

.. math::
    :label:

    \Delta \eta(t) := \Delta {\eta_\mathrm{arm}}{(t)} + \Delta {\eta_\mathrm{fao}}{(t)} + \Delta {\eta_\mathrm{atm}}{(t)}.

Having accounted for these improvements, the final energy consumption and emissions for freighter aircraft are fully determined at this point, i.e.

.. math::
    :label:

    e(ac_\mathrm{freight},rt,t) &= e^\ast(ac_\mathrm{freight},rt,t),\\
    g(ac_\mathrm{freight},rt,t) &= g^\ast(ac_\mathrm{freight},rt,t).

However, for passenger flights, we must apply the passenger load factor :math:`LF_\mathrm{pax}(ac_\mathrm{pax},rt,t)` inputted by the user.
Because load factor only directly affects flight count, we must first delineate this dependence before determining how fuel efficiency and emissions are impacted.
In the Operations strategy, adjustments to the flight counts of passenger aircraft are based solely on passenger load factor without consideration of belly cargo.
We begin by enforcing conservation of revenue passenger payload :math:`rptk` on all routes in each year:

.. math::
    :label:

    rptk(ac_\mathrm{pax}, rt, t) &= rptk_\mathrm{in}(ac_\mathrm{pax}, rt, t)\\
    LF_\mathrm{pax}(ac_\mathrm{pax},rt,t) \cdot c_\mathrm{pax}(ac_\mathrm{pax}) \cdot n(ac_\mathrm{pax},rt,t) &= LF_\mathrm{pax,in}(ac_\mathrm{pax},rt,t) \cdot c_\mathrm{pax}(ac_\mathrm{pax}) \cdot n_\mathrm{in}(ac_\mathrm{pax},rt,t).

Since the passenger capacities :math:`c_\mathrm{pax}(ac_\mathrm{pax})` on each side are identical, the final flight count after applying the specified passenger load factor is given by

.. math::
    :label:

    n(ac_\mathrm{pax},rt,t) = \Delta \eta_\mathrm{LF_pax}(ac_\mathrm{pax},rt,t) \cdot n_\mathrm{in}(ac_\mathrm{pax},rt,t),

where we have defined

.. math::
    :label:

    \Delta \eta_\mathrm{LF_pax}(ac_\mathrm{pax},rt,t) := \frac{LF_\mathrm{pax,in}(ac_\mathrm{pax},rt,t)}{LF_\mathrm{pax}(ac_\mathrm{pax},rt,t)}.

Because energy consumption and emissions are assumed to be proportional to flight count, they scale by the same ratio.
Therefore, for passenger flights, the final energy consumption and emissions after applying all operational improvements are

.. math::
    :label:

    e(ac_\mathrm{pax},rt,t) &= \Delta \eta_{\mathrm{LF_pax}}(ac_\mathrm{pax},rt,t) \cdot e^\ast(ac_\mathrm{pax},rt,t),\\
    g(ac_\mathrm{pax},rt,t) &= \Delta \eta_{\mathrm{LF_pax}}(ac_\mathrm{pax},rt,t) \cdot g^\ast(ac_\mathrm{pax},rt,t).

Note that because belly cargo was ignored while adjusting the flight count, the revenue cargo payload of passenger flights is not independently conserved.
Instead, the revenue cargo payload is assumed to scale with the same flight count adjustment, which is equivalent to allowing the belly cargo load factor to exceed 1 if necessary.
In other words, the Operations strategy assumes conservation of revenue tonne-kilometers (:term:`RTK`) without imposing an explicit capacity constraint on belly cargo.
Finally, note that the fuel burn reductions have no effect on payload metrics, but adjusting the passenger load factor in the Operational strategy means that available payload metrics will, by design, not be conserved.

.. _custom-curves:

Custom Curves
-------------

A number of time-varying strategy inputs in Cascade, including the different operations components discussed above, can be specified directly as arrays using the functional forms detailed below.

Constant
~~~~~~~~

For a given constant C,

.. math::
    :label:


    y(t) = C, \qquad t_\mathrm{start} \leq t \leq t_\mathrm{end}.

.. list-table:: - Parameters
  :header-rows: 1

  * - Variable Name
    - Description
  * - :math:`C`
    - Given constant value
  * - :math:`t_\mathrm{start}`
    - Introduction year for the curve
  * - :math:`t_\mathrm{end}`
    - End year for the curve

Linear
~~~~~~

For initial and final values :math:`y_\mathrm{start}` and :math:`y_\mathrm{end}`,

.. math::
    :label:

    y(t) = m t + y_\mathrm{start}, \qquad t_\mathrm{start} \leq t \leq t_\mathrm{end},

where the slope is given by :math:`m =\dfrac{y_\mathrm{end} - y_\mathrm{start}}{t_\mathrm{end} - t_\mathrm{start}}`.

.. list-table:: - Parameters
  :header-rows: 1

  * - Variable Name
    - Description
  * - :math:`C`
    - Given constant value
  * - :math:`t_\mathrm{start}`
    - Introduction year for the curve
  * - :math:`t_\mathrm{end}`
    - End year for the curve
  * - :math:`y_\mathrm{start}`
    - Value at time :math:`t_\mathrm{start}`
  * - :math:`y_\mathrm{end}`
    - Value at time :math:`t_\mathrm{end}`

Half Sigmoid
~~~~~~~~~~~~

The half sigmoid (half S-curve) takes value zero for :math:`t \leq t_0` and increases to value of :math:`A` at time :math:`t_f` according to

.. math::
    :label:

      y(t) = \begin{cases}
          0, & t \leq t_0; \\
          \dfrac{2 A}{1 + \left(\dfrac{t_p' / 2}{1 - t_p' / 2}\right)^{-a}}, & t_0 \lt t \leq t_f \ \mathrm{and} \ a \ge 1; \\
          \dfrac{2 A}{1 + \left(\dfrac{t_n' / 2}{1 - t_n' / 2}\right)^{-(2 - a)}} - A, & t_0 \lt t \leq t_f \ \mathrm{and} \ a \lt 1,
      \end{cases}

where

.. math::
    :label:

    t_p' &=  \dfrac{t - t_0}{t_f - t_0}, \\
    t_n' &=  \dfrac{t - (2 t_0 - t_f)}{t_f - t_0}.

.. list-table:: - Parameters
  :header-rows: 1

  * - Variable Name
    - Description
  * - :math:`a`
    - Shape parameter that determines how rapidly the curve increases to :math:`A`. When :math:`a = 1` the output waveform is linear, values :math:`a \lt 1` produce a convex shape, and values :math:`a \gt 1` form a concave shape.
  * - :math:`t_0`
    - Introduction year for the curve
  * - :math:`t_f`
    - Final year for the curve
  * - :math:`A`
    - Value at time :math:`t_f`

Full Sigmoid
~~~~~~~~~~~~

The full sigmoid (full S-curve) takes value zero for :math:`t \leq t_0` and increases to value of :math:`A` at time :math:`t_f` according to

.. math::
    :label:

      y(t) = \begin{cases}
          0, & t \leq t_0; \\
          \dfrac{A}{1 + \left(\dfrac{t'}{1 - t'}\right)^{-\dfrac{a + 3}{2}}}, & t_0 \lt t \leq t_f,
      \end{cases}

where

.. math::
    :label:

    t' =  \dfrac{t - t_0}{t_f - t_0}.

.. list-table:: - Parameters
  :header-rows: 1

  * - Variable Name
    - Description
  * - :math:`a`
    - Shape parameter that determines how rapidly the curve increases to :math:`A`
  * - :math:`t_0`
    - Introduction year for the curve
  * - :math:`t_f`
    - Final year for the curve
  * - :math:`A`
    - Value at time :math:`t_f`

Pulse
~~~~~

The pulse curve starts with a full sigmoid shape and takes value zero for :math:`t \leq t_0` and increases to value of :math:`A_\mathrm{peak}` at time :math:`t_\mathrm{peak}` which is concatenated with another full sigmoid shape that takes an initial value of :math:`A_\mathrm{peak}` for :math:`t \leq t_\mathrm{peak}` and decreases to value of :math:`A_{f}` at time :math:`t_f` according to:

.. math::
    :label:

      y(t) = \begin{cases}
          0, & t \leq t_0; \\
          \dfrac{A_\mathrm{peak}}{1 + \left(\dfrac{t_{1}'}{1 - t_{1}'}\right)^{-\dfrac{a + 3}{2}}}, & t_0 \lt t \leq t_\mathrm{peak}; \\
          A_\mathrm{peak} + \dfrac{A_{f} - A_\mathrm{peak}}{1 + \left(\dfrac{t_{2}'}{1 - t_{2}'}\right)^{-\dfrac{a + 3}{2}}}, & t_\mathrm{peak} \lt t \leq t_{f}, \\
      \end{cases}

where

.. math::
    :label:

    t_{1}' =  \dfrac{t - t_0}{t_\mathrm{peak} - t_0},  \qquad t_0 \lt t_\mathrm{peak} \lt t_f, \qquad  t_{2}' =  \dfrac{t - t_\mathrm{peak}}{t_{f} - t_\mathrm{peak}}.

.. list-table:: - Parameters
  :header-rows: 1

  * - Variable Name
    - Description
  * - :math:`a`
    - Shape parameter that determines the width of the pulse
  * - :math:`t_0`
    - Introduction year for the curve
  * - :math:`t_\mathrm{peak}`
    - Peak year for the curve
  * - :math:`t_f`
    - Final year for the curve
  * - :math:`A_{f}`
    - Value at time :math:`t_f`
  * - :math:`A_\mathrm{peak}`
    - Value at time :math:`t_\mathrm{peak}`

Piecewise Linear
~~~~~~~~~~~~~~~~

Given a set of points :math:`(t_i, y_i)`, where :math:`i = 1 \ldots i_\mathrm{max}` and it is assumed that :math:`t_i < t_{i + 1}` for all :math:`i`, the piecewise linear form is defined by

.. math::
    :label:

    y(t) =  \dfrac{y_{i^\ast + 1} - y_{i^\ast}}{t_{i^\ast + 1} - t_{i^\ast}} \cdot (t - t_{i^\ast}) + y_{i^\ast},

where :math:`i^\ast` is the point with the largest value of :math:`t_i` that still falls to the left of the evaluation input, :math:`t`, and is given by

.. math::
    :label:

    i^\ast = \underset{i=1,\ldots,i_\mathrm{max}}{\arg\,\max} \; t_i : t_i \leq t.
