DICE — Dynamic Integrated Climate Economy model
Loading runs...
#What this model assumes
- Temperature is a downstream output of an economic optimization, not the model's primary target.
- Only two policy paths exist: a no-policy baseline and the path its own cost-benefit optimizer picks as economically best.
- Its discount rate and damage-function assumptions drive the result and are a long-standing point of debate in the economics literature.
- Covers 2015-2510 in 5-year steps.
#Changelog
- DICE-2016R2 — Nordhaus's 2017 revision -- updated damage function, carbon cycle, and discounting relative to DICE-2013; the version this project runs.
- DICE-2013R — Revised carbon cycle and updated damage/abatement cost parameters relative to DICE-2007.
- DICE-2007 — Earlier widely-cited revision of Nordhaus's Dynamic Integrated Climate-Economy model.
#How to run DICE locally
Add the pinned Ipopt solver and the DICE.jl package directly from its repository. These exact versions avoid a real segfault in a newer Ipopt/DICE.jl combination.
using Pkg Pkg.add(Pkg.PackageSpec(name="Ipopt", version="1.0.2")) Pkg.add(url="https://github.com/possibleplanets/DICE.jl", rev="754e9ba250e549f3f385a9b5e9c7f39117d29b4d") Pkg.pin(Pkg.PackageSpec(name="Ipopt", version="1.0.2"))Solve a named policy path and read its atmospheric temperature series back out.
using DICE result = solve(OptimalPrice, v2016R2()) result.results.Tₐₜ # [0.85, 1.016, 1.184, 1.354, 1.524, ..., 4.001, 3.997, 3.993, 3.989] (°C, from ~1900) # 100 values total, years 2015-2510 in 5-year stepsResource footprint
Installing Julia, Ipopt, and DICE.jl takes about 1.1 to 1.2GB of disk space. The first solve on a fresh install spends several minutes precompiling Julia packages; after that, each solve takes about 8 to 17 seconds on 1 to 2 CPUs. No commercial solver license is needed.
#How to run DICE through the REST API
Submit a run with your API key, then poll it until it finishes.
curl -X POST https://possibleplanets.org/v1/models/dice/runs \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"params": {"scenario": "optimal"}}' # -> {"run_id": "a1b2c3d4-5e6f-4789-9abc-def012345678", "status": "queued"} curl https://possibleplanets.org/v1/runs/a1b2c3d4-5e6f-4789-9abc-def012345678 \ -H "Authorization: Bearer YOUR_API_KEY" # -> { # "status": "succeeded", # "result": { "years": [2015, 2020, ..., 2505, 2510], // 100 steps, every 5 years "T_atmos": [0.85, 1.016, 1.184, ..., 3.993, 3.989], // same real run as above "scc": [...], "forcing": [...], "utility": [...] // also real fields, see run.jl }, # "duration_seconds": 19.63 # } # T_atmos at year 2100 = 3.48°C, peaking at 4.15°C around year 2240Cached results don't need an API key.
Cost
This model runs on 2 vCPUs and 1 GiB of memory for about 20 seconds per run, which costs roughly $0.64 per 1,000 runs on Daytona. Results that are already cached are free.
Possible Planets