Skip to main content

MIMOSA: Integrated Assessment Model for Cost-Benefit Analysis

Project description

MIMOSA: Mathematical Integrated Model for Optimal and Stylised Assessment

MIMOSA is a recent simple IAM based on FAIR, with 26 regions covering the whole world. It is a relatively simple Cost-Benefit IAM but still covers the relevant technological and socio-economic dynamics. Temperature is a linear function of cumulative CO2 emissions. MIMOSA uses the DICE sea-level rise module. The mitigation costs, population, initial capital stock and baseline GDP and CO2 emissions are regional. The direct regional mitigation costs are calculated as area under the Marginal Abatement Cost (MAC) curve, and have been calibrated to the IPCC AR6 WGIII database.

Documentation and usage:

Please refer to the extensive model documentation on https://utrechtuniversity.github.io/mimosa/.

General

The model is written in the Python optimisation package Pyomo. It is mainly an AbstractModel (object containing all the variables, parameters and constraints, without the actual data values), which is then transformed into a ConcreteModel by putting all the parameter values in it. This ConcreteModel is sent to the solver (IPOPT, an open-source large-scale nonlinear optimisation suite).



Schematic overview of the MIMOSA model. From [1].

Installing and running MIMOSA

MIMOSA can be installed using pip:

pip install mimosa

Since MIMOSA is an optimisation model, an optimisation engine needs to be specified. This can be installed locally (see With IPOPT installed locally), but an easier way is to use a free cloud-based optimisation service called NEOS.

Using the NEOS server

The MIMOSA runs can easily be sent to the NEOS server (https://neos-server.org) for remote optimisation. First, on their website, sign up for a free account. You can then run MIMOSA with NEOS enabled by providing it with the email address you used to sign up for NEOS:
from mimosa import MIMOSA, load_params

params = load_params()

model1 = MIMOSA(params)
model1.solve(use_neos=True, neos_email="your.email@email.com")
model1.save("run1")

Depending on the MIMOSA parameters chosen and on how busy the NEOS server is, running the model might take a while (typically a couple of minutes).

With IPOPT installed locally

A faster way to run MIMOSA, and which doesn't require an internet connection, is to install the open-source optimisation engine IPOPT locally:

conda install -c conda-forge ipopt

However, this sometimes fails on Windows. To fix it, go to https://www.coin-or.org/download/binary/Ipopt/ and download the latest win64-version. Unzip the files. A subfolder bin should contain the file ipopt.exe. The next step is to add this folder to your PATH environment: Windows > Edit the system environment variables > Environment variables... > Select "Path" and click Edit... > Click New and browse to the folder you just unzipped. Make sure to select the bin subfolder as this folder contains the file ipopt.exe.

Once IPOPT is installed, MIMOSA can be ran without NEOS:

from mimosa import MIMOSA, load_params

params = load_params()

model1 = MIMOSA(params)
model1.solve()  # No NEOS required
model1.save("run1")

How to cite

When using MIMOSA, please cite [1] (global version) and [2] (regional version).

References

[1] van der Wijst, KI., Hof, A.F. & van Vuuren, D.P. On the optimality of 2°C targets and a decomposition of uncertainty. Nature Communications 12, 2575 (2021). https://doi.org/10.1038/s41467-021-22826-5

[2] van der Wijst, KI., Bosello, F., Dasgupta, S. et al. New damage curves and multimodel analysis suggest lower optimal temperature. Nature Climate Change 13, 434–441 (2023). https://doi.org/10.1038/s41558-023-01636-1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimosa-0.1.6.tar.gz (433.6 kB view hashes)

Uploaded Source

Built Distribution

mimosa-0.1.6-py3-none-any.whl (552.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page