Skip to content

This repository contains the Julia source code and data of the paper "Does Inequality Harm the Climate? An Agent-Based Model with Endogenous Climate Policy".

License

Notifications You must be signed in to change notification settings

ETACE/inequality-climate-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Does Inequality Harm the Climate? An Agent-Based Model with Endogenous Climate Policy

Version: Jan 2026

This agent-based model examines how income inequality shapes environmental outcomes through household consumption patterns and political support for climate policy.

Getting Started

These instructions will allow you to run the model on your system.

System Requirements and Installation

To run the code, you need to install Julia (v1.10.0). Additionally, the following packages need to be installed:

In order to install a package, start julia and execute the following command:

using Pkg; Pkg.add("<package name>")

Running The Model

The model implementation is located in the model/ folder. In order to run the model, the initial state has to be set up. Our baseline initialization is specified in the experiments/init_baseline.jl file. By default, the subset of data stored during a simulation run is defined in the experiments/data_collection.jl file.

To conduct an experiment and execute several runs of the model (batches) in parallel, execute run_exp.jl. This requires to set-up the experiment(s) in a configuration file, see experiments/baseline.jl as an example. In order to execute an experiment, use the following command:

julia -p <no_cpus> run_exp.jl <config-file> [--chunk <i>] [--no_chunks <n>]

The julia parameter -p <no_cpus> specifies how many CPU cores will be used in parallel. The --chunk and --no_chunk parameters are optional and can be used to break up the experiment into several chunks, e.g., to distribute execution among different machines.

Plots from experiments can be created by using the following command:

julia plot_exp.jl <config-file>

By default, data and plots will be stored in the data/ folder.

Quick Test Runs with main.jl

For quick tests and exploration of single mechanisms, you can run the simplified script main.jl. It executes a single run of the baseline model and provides a convenient way to check model behavior or inspect generated data without setting up a full experiment. To execute it, run:

julia main.jl

Note: main.jl is not intended for systematic experiments or batch execution. For proper experiments, please use run_exp.jl with the respective configuration files as described above.

Authors

Fiona Borsetzky, Dirk Kohlweyer

Further Links

  • ETACE - Economic Theory and Computational Economics, Bielefeld University

About

This repository contains the Julia source code and data of the paper "Does Inequality Harm the Climate? An Agent-Based Model with Endogenous Climate Policy".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages