Giter Club home page Giter Club logo

csim's Introduction

csim

Competitive Search with endogenous Incomplete Markets

Python codes and (Data) Jupyter Notebook for paper Inflationary Redistribution vs. Trading Opportunities by Timothy Kam and Junsang Lee

Stationary monetary equilibrium in a competitive search environment with limited and endogenous asset-market participation

Code solves and simulates stationary equilibrium behavior and non-degenerate distribution of agents

A current version of the paper can be found here

  • CSSEGMOD: Class file

  • MAIN: Script for running an instance of the model

  • SETOPS: Some Python tools for set operations (custom coded)

  • SETOUTPATHS: Determine where to save results (.NPZ files) and figures (.PNG and .EPS files)

  • Users need to customize to own computer setting

Python 2.7/3.6 code for solving and simulating monetary equilibria in the model of Kam and Lee (2020). Code uses MPI4Py and OpenMPI for parallel computation. (c) Copyright 2020-, Timothy Kam and Junsang Lee. Contact: [email protected]

Code Example

To run the MAIN.PY file in normal mode (serial):

python main.py

or, in IPython:

run main

To run the MAIN.PY file using OpenMPI:

mpirun -n YourNumberOfCPUs python main.py

or, if you have chmod MAIN.PY to be BASH Executable you can also invoke as

mpirun -n YourNumberOfCPUs ./main.py

Same goes for CALIBRATE.PY or COMPARESTEADYSTATES.PY

Contributors

Written by Timothy Kam, with Junsang Lee.

License

The GNU GPL v.3.0 terms apply everywhere to these codes and subsequent uses and modifications of them (see LICENCE). Please cite this original source in all your work (i.e., your own paper and source codes) as: * Paper: T. Kam and J. Lee (2020): Inflationary Redistribution vs Trading Opportunities * Source: https://github.com/phantomachine/csim/

See CHANGELOG file for recent updates/bug-fix details.

csim's People

Contributors

phantomachine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.