Skip to content

Changing parameters

The default parameters from load_params() are given as a nested dictionary. Every item of this dictionary can be changed. For a complete overview of all parameters that can be changed, see Parameters.

Example 1: carbon budget

In this example, the carbon budget is changed to 500 GtCO2.

from mimosa import MIMOSA, load_params

params = load_params()

params["emissions"]["carbonbudget"] = "500 GtCO2"  # (1)!

model1 = MIMOSA(params)
model1.solve()

model1.save("run_example_carbonbudget")
  1. Change the parameter of emissions > carbonbudget to the string "500 GtCO2"

Example 2: high damages, high TCRE, low discounting

Multiple parameters can also be changed at the same time. In this example, the high end of the damages and of the climate sensitivity (TCRE) are used, combined with the low end of the discount rate (PRTP).

from mimosa import MIMOSA, load_params

params = load_params()

params["economics"]["damages"]["quantile"] = 0.95
params["temperature"]["TCRE"] = "0.82 delta_degC/(TtCO2)"
params["economics"]["PRTP"] = 0.001

model2 = MIMOSA(params)
model2.solve()

model2.save("run_example2")