{ "cells": [ { "cell_type": "markdown", "id": "badge", "metadata": { "id": "badge" }, "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_1/notebook_1.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": { "id": "title" }, "source": [ "# Session 1: Run a simple 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", "Keep in mind that some of the data have been completely invented for the purpose of this exercise (so please do not create your own trade route based on this example).\n", "\n", "We look at how Navigate would model the decisions of the shipowners and operators serving a line between San Antonio and Rotterdam, in a world moving towards decarbonisation: green fuels are starting to be produced at scale, technology options for engines and retrofits are available, and regulations incentivising the use of green fuels are in place.\n", "\n", "## The case\n" ] }, { "cell_type": "markdown", "id": "9274c537", "metadata": { "id": "9274c537" }, "source": [ "" ] }, { "cell_type": "markdown", "id": "thecase", "metadata": { "id": "thecase" }, "source": [ "*San Antonio to Rotterdam via the Panama Canal: the two bunker ports, the\n", "voyage, and the possible fuel plants.*\n", "\n", "The case follows the Panamax bulk carriers (~80,000 DWT) that carry copper concentrate\n", "from **San Antonio, Chile** to **Rotterdam**, roughly 7,600 nautical miles each way via the Panama Canal, returning in ballast (empty).\n", "\n", "It is 2026: the segment has 300 ships, and nearly all of them burn fuel oil. The ships are ageing and most of them have to be renewed before 2050, the horizon of the simulation.\n", "\n", "The ships are also exposed to two regulations: FuelEU Maritime and the EU ETS, both of which cover half of the voyage.\n", "\n", "Navigate does not follow one specific company. It represents the whole segment as a\n", "single `Fleet` (`bulk_carrier_80k_dwt`, from Navigate's assumptions library), whose decisions stand for those of the many shipowners and\n", "operators in it. **Operators** decide which fuel to bunker and where, and how\n", "fast to sail. **Owners** decide when to retrofit ships, order new ones and fit\n", "efficiency measures.\n", "\n", "Four ship designs are available on the market:\n", "\n", "| Configuration | Engine type |\n", "|---|---|\n", "| `bulk_carrier_80k_dwt_ice_oil` | conventional fuel oil |\n", "| `bulk_carrier_80k_dwt_ice_methane` | dual-fuel LNG |\n", "| `bulk_carrier_80k_dwt_ice_methanol` | dual-fuel methanol |\n", "| `bulk_carrier_80k_dwt_ice_ammonia` | dual-fuel ammonia |\n", "\n", "On the other side, we follow the behaviour of two groups of fuel producers: producers of e-fuels (e-ammonia or e-methanol) and producers of biofuel (bio-methanol). The e-fuel plants can be installed in Chile or in Europe, the biofuel plants only in Europe (to simplify the case).\n", "\n", "## What you'll do\n", "\n", "**Run the case.** Solve it once, from 2026 to 2050.\n", "\n", "**Read the results.** The fleet's emissions, what moving the cargo costs, and the fuel bunkered.\n", "\n", "**Local sensitivity analysis.** Change some of the input parameters, one scenario at a time, and see what happens.\n", "\n", "**Global sensitivity analysis.** Let Horizon vary several input parameters at once, and see the range of results.\n", "\n", "How the deck is built and the data behind it are the subject of [Session 3](https://colab.research.google.com/github/zerocarbonshipping/navigate-zcs/blob/main/docs/notebooks/notebook_3/notebook_3.ipynb).\n" ] }, { "cell_type": "markdown", "id": "b5707199", "metadata": { "id": "b5707199" }, "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). It sets up the Navigate model, loads the pre-made example that will be used to illustrate this part of the workshop, and defines two helpers for the notebook: one shows Lantern's plots in it, the other opens Lantern's viewer. Its code is hidden: on your own machine, show it and set `ROOT` to a folder of your own first." ] }, { "cell_type": "code", "execution_count": 1, "id": "setup", "metadata": { "cellView": "form", "colab": { "base_uri": "https://localhost:8080/" }, "execution": { "iopub.execute_input": "2026-12-01T09:09:15.804437Z", "iopub.status.busy": "2026-12-01T09:09:15.804327Z", "iopub.status.idle": "2026-12-01T09:09:40.891967Z", "shell.execute_reply": "2026-12-01T09:09:40.890703Z" }, "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/copper_trade\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_1/copper_trade\", f\"{ROOT}/copper_trade\", dirs_exist_ok=True)\n", "%cd {ROOT}/copper_trade\n", "\n", "# notebook helpers: show the pages Lantern writes in the notebook, and open Lantern's viewer\n", "import html\n", "import subprocess\n", "from pathlib import Path\n", "\n", "from IPython.display import HTML, display\n", "\n", "# STEP 3's scenarios: their names in the order they were run, which its plots compare, and the\n", "# folder their results go to, which Lantern's viewer loads again on Refresh\n", "scenarios = []\n", "Path(\"parquets\").mkdir(exist_ok=True)\n", "\n", "def show(*pages):\n", " # the pages side by side, each in a frame of its own\n", " frames = \"\"\n", " for page in pages:\n", " with open(page, encoding=\"utf-8\") as file:\n", " frames += f''\n", " display(HTML(f'