{ "cells": [ { "cell_type": "markdown", "id": "badge", "metadata": {}, "source": [ "\n", "\n", "> **Recommended: run this notebook in Google Colab, nothing to install.**\n", ">\n", "> [](https://colab.research.google.com/github/zerocarbonshipping/navigate-zcs/blob/main/docs/notebooks/notebook_2/notebook_2.ipynb)\n", ">\n", "> The notebook opens with the results of an earlier run. To start from a clean notebook, choose Edit → Clear all outputs in Colab's menu first.\n", ">\n", "> Click the ▶ button on each cell (or press Shift+Enter) to see the results and move on to the next one.\n", ">\n", "> If you can't or don't want to use Colab, the documentation website shows the pre-run results." ] }, { "cell_type": "markdown", "id": "title", "metadata": {}, "source": [ "# Session 2: Run a global case\n", "\n", "> **Disclaimer**\n", ">\n", "> Navigate is an open-source analytical model intended for research and scenario analysis of maritime decarbonisation pathways. The model, its assumptions and any outputs are provided for illustrative and analytical purposes only.\n", ">\n", "> Model outputs depend on the assumptions selected by the user and should not be interpreted as forecasts, benchmarks, recommendations or commercially optimal outcomes, nor as legal, financial or investment advice.\n", ">\n", "> Users are responsible for selecting and adapting assumptions appropriate to their own circumstances and for exercising their own independent judgement when interpreting or relying on any model outputs.\n", "\n", "Navigate ships a set of global **reference scenarios** under\n", "`simulations/scenarios/`, which are full decks built and maintained by the Center. This session looks at how the decks differ and at the regulatory assumptions behind them, runs three of them (on a coarse time grid for fast solving, or year by year), and then changes their assumptions. Keep in mind that the simulations in this notebook are illustrative.\n", "\n", "## The case\n" ] }, { "cell_type": "markdown", "id": "map", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "id": "thecase", "metadata": {}, "source": [ "*The reference scenario's geography: five fuel-supply regions, the 2050 electricity\n", "cost that feeds them, the production pathways each can host, and the EU jurisdiction\n", "the ETS and FuelEU reach.*\n", "\n", "In these decks, 23 fleets sail 23 routes that represent a global average profile, so geography does not really matter in this simulation.\n", "\n", "## What you'll do\n", "\n", "**Look at the scenarios.** See how each scenario is written as a Navigate simulation (a deck), and the regulatory assumptions behind it.\n", "\n", "**Run the reference scenarios.** Solve them and compare their results.\n", "\n", "**Local sensitivity analysis.** Pick one of the reference scenarios, change some of the input parameters and see what happens.\n", "\n", "**Global sensitivity analysis.** Let Horizon vary several input parameters at once, and see the range of results." ] }, { "cell_type": "markdown", "id": "setupmd", "metadata": {}, "source": [ "## STEP 1: Setup\n", "\n", "Run the cell below on Colab or [locally](https://zerocarbonshipping.github.io/navigate-zcs/notebooks/index.html#running-a-notebook-on-your-own-machine) to set up the Navigate model, Horizon and Lantern." ] }, { "cell_type": "code", "execution_count": 1, "id": "setup", "metadata": { "cellView": "form", "jupyter": { "source_hidden": true }, "tags": [ "remove-output", "hide-input" ] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/tmp/notebook\n", "Note: you may need to restart the kernel to use updated packages.\n", "env: ASSUMPTIONS_DATA_DIR=/tmp/notebook/navigate-zcs/assumptions\n", "/tmp/notebook/global_case\n" ] } ], "source": [ "# @title Install Navigate and its tools, and set up the session\n", "ROOT = \"/content\"\n", "# ROOT = \"/tmp/notebook\" # running locally: any folder of your own, without spaces in its path\n", "%cd {ROOT}\n", "\n", "!git clone -q --depth 1 -b main https://github.com/zerocarbonshipping/navigate-zcs {ROOT}/navigate-zcs\n", "%pip install -q {ROOT}/navigate-zcs horizon-zcs lantern-zcs\n", "%env ASSUMPTIONS_DATA_DIR={ROOT}/navigate-zcs/assumptions\n", "\n", "import shutil\n", "\n", "shutil.copytree(f\"{ROOT}/navigate-zcs/docs/notebooks/notebook_2/global_case\", f\"{ROOT}/global_case\", dirs_exist_ok=True)\n", "%cd {ROOT}/global_case\n", "\n", "# notebook helpers: show the pages Lantern writes in the notebook, open Lantern's viewer, and show a deck's files\n", "# in tabs, coloured as VS Code colours them\n", "import html\n", "import json\n", "import os\n", "import subprocess\n", "import uuid\n", "from pathlib import Path\n", "\n", "from IPython.display import HTML, display\n", "from pygments import highlight\n", "from pygments.formatters import HtmlFormatter\n", "from pygments.lexer import RegexLexer\n", "from pygments.token import Comment, Keyword, Name, Number, Operator, String, Text\n", "\n", "# STEP 4's scenarios: their names in the order they were run, which its plots compare\n", "scenarios = []\n", "\n", "def show(*pages, height=360):\n", " # the pages side by side, each in a frame of its own, height pixels tall\n", " frames = \"\"\n", " for page in pages:\n", " with open(page, encoding=\"utf-8\") as file:\n", " frames += f''\n", " display(HTML(f'
{lines}'\n",
" panels += f'1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 # BASECASE_NO_REGULATION - simulations/scenarios/basecase_no_regulation,5 # on the coarse grid (--set GRID=coarse) or year by year (--set GRID=yearly).67 DEFINE {8 Load DefaultModelDefinition910 # fleets11 Load DefaultFleet1213 # voyages14 Load DefaultPort1516 # fuels17 Load DefaultEmission18 Load DefaultFeedstock19 Load DefaultFuel20 Load DefaultProducer21 Load DefaultPlant22 Load DefaultRegion23 Load DefaultSource24 Load DefaultTransport2526 # calibration27 Load DefaultCalibration28 }2930 EVENTS {31 Load DefaultConverterAvailable32 Include \"includes/time_steps_%GRID%.inc\"33 }
1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 # BASECASE_MID_REGULATION - simulations/scenarios/basecase_mid_regulation,5 # on the coarse grid (--set GRID=coarse) or year by year (--set GRID=yearly).67 DEFINE {8 Load DefaultModelDefinition910 # fleets11 Load DefaultFleet1213 # voyages14 Load DefaultPort1516 # fuels17 Load DefaultEmission18 Load DefaultFeedstock19 Load DefaultFuel20 Load DefaultProducer21 Load DefaultPlant22 Load DefaultRegion23 Load DefaultSource24 Load DefaultTransport2526 # regulations27 Load DefaultRegulation28 Include \"includes/mid_regulation.inc\"2930 # calibration31 Load DefaultCalibration32 }3334 EVENTS {35 Load DefaultConverterAvailable36 Include \"includes/time_steps_%GRID%.inc\"37 }
1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 # BASECASE_STRONG_REGULATION - simulations/scenarios/basecase_strong_regulation,5 # on the coarse grid (--set GRID=coarse) or year by year (--set GRID=yearly).67 DEFINE {8 Load DefaultModelDefinition910 # fleets11 Load DefaultFleet1213 # voyages14 Load DefaultPort1516 # fuels17 Load DefaultEmission18 Load DefaultFeedstock19 Load DefaultFuel20 Load DefaultProducer21 Load DefaultPlant22 Load DefaultRegion23 Load DefaultSource24 Load DefaultTransport2526 # regulations27 Load DefaultRegulation28 Include \"includes/strong_regulation.inc\"2930 # calibration31 Load DefaultCalibration32 }3334 EVENTS {35 Load DefaultConverterAvailable36 Include \"includes/time_steps_%GRID%.inc\"37 }
1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 # BUSINESS_AS_USUAL - simulations/scenarios/business_as_usual,5 # on the coarse grid (--set GRID=coarse) or year by year (--set GRID=yearly).67 DEFINE {8 Load DefaultModelDefinition910 # fleets11 Load DefaultFleetInternational12 Load DefaultFleetDomestic1314 # voyages15 Load DefaultPort16 Load DefaultVoyageInternational17 Load DefaultVoyageDomestic1819 # fuels20 Load DefaultEmission21 Load DefaultFeedstock22 Load DefaultFuel23 Load DefaultProducer24 Load DefaultPlant25 Load DefaultRegion26 Load DefaultSource27 Load DefaultTransport2829 # regulations30 Load DefaultRegulation3132 # calibration33 Load DefaultCalibration34 }3536 EVENTS {37 Load DefaultConverterAvailable38 Include \"includes/time_steps_%GRID%.inc\"39 }
1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 # A copy of simulations/scenarios/0_includes/mid_regulation.inc.56 Regulation \"gfs\" {7 \tMeasure = INTENSITY8 \tScheme = FLEXIBLE910 \tScope = WTW11 \tIncludeSlip = TRUE1213 \tEmissions = Emission(\"*\")14 \tFuels = Fuel(\"*\")15 \t\t16 \tJurisdiction = [Port(\"port_global\"), Port(\"port_europe\")]17 \t18 \tRemedialCost = Forecast(\"gfs_remedial_unit\")19 \t20 \tset_vessel_threshold(\"*\", Forecast(\"gfs_target_reduction\"))21 \t22 \tset_include_vessel(\"*\", TRUE)23 }242526 Forecast \"gfs_target_reduction\" {27 \tTable = [28 \t\t\"01-01-2025\",\t1.00;29 \t\t\"31-12-2027\",\t1.00;30 \t\t\"01-01-2028\",\t0.96;31 \t\t\"01-01-2029\",\t0.94;32 \t\t\"01-01-2030\",\t0.95;33 \t\t\"01-01-2035\",\t0.75;34 \t\t\"01-01-2050\",\t0.30;35 \t]36 \t37 \tMultiplier = 93.338 \tExtrapolate = FLAT39 }4041 Forecast \"gfs_remedial_unit\" {42 \tTable = [43 \t\t\"01-01-2025\",\t0;44 \t\t\"31-12-2027\",\t0;45 \t\t\"01-01-2028\",\t300;46 \t\t\"01-01-2050\",\t300;47 \t]48 \t49 \tExtrapolate = FLAT50 }
1 # SPDX-FileCopyrightText: 2026 Fonden Mærsk Mc-Kinney Møller Center for Zero Carbon Shipping2 # SPDX-License-Identifier: CC-BY-4.034 Regulation \"gfs\" {5 \tMeasure = INTENSITY6 \tScheme = FLEXIBLE78 \tScope = WTW9 \tIncludeSlip = TRUE1011 \tEmissions = Emission(\"*\")12 \tFuels = Fuel(\"*\")13 \t\t14 \tJurisdiction = [Port(\"port_global\"), Port(\"port_europe\")]15 \t16 \tRemedialCost = Forecast(\"gfs_remedial_unit\")17 \t18 \tset_vessel_threshold(\"*\", Forecast(\"gfs_target_reduction\"))19 \t20 \tset_include_vessel(\"*\", TRUE)21 }222324 Forecast \"gfs_target_reduction\" {25 \tTable = [26 \t\t\"01-01-2025\",\t1.00;27 \t\t\"31-12-2027\",\t1.00;28 \t\t\"01-01-2028\",\t0.96;29 \t\t\"01-01-2029\",\t0.94;30 \t\t\"01-01-2030\",\t0.92;31 \t\t\"01-01-2031\",\t0.876;32 \t\t\"01-01-2032\",\t0.832;33 \t\t\"01-01-2033\",\t0.788;34 \t\t\"01-01-2034\",\t0.744;35 \t\t\"01-01-2035\",\t0.70;36 \t\t\"01-01-2040\",\t0.50;37 \t\t\"01-01-2050\",\t0.00;38 \t]39 \t40 \tMultiplier = 93.341 \tExtrapolate = FLAT42 }4344 Forecast \"gfs_remedial_unit\" {45 \tTable = [46 \t\t\"01-01-2025\",\t0;47 \t\t\"31-12-2027\",\t0;48 \t\t\"01-01-2028\",\t800;49 \t\t\"01-01-2050\",\t800;50 \t]51 \t52 \tExtrapolate = FLAT53 }