Skip to main content

Demo library

Project description

Solow Library

A Solow simulator to help understand the basics of the Solow Model.

The model is based on the standard Undergraduate thaught Solow Model

with Cobb-Douglas Production functions. For now, the model doesn't take

into account technological growth. The default population and capital

settings are both set to 1 unit at time zero.

Installation


pip install solow-sim

Get started

To start experimenting

from solow_library import user_interface

user_interface

Then, run the python file and follow the instructions.

To play around by yourself,

from solow_library import solow

Formal Documentation should be coming one day, however, here are the

main functions one should be interested in:

Creating an Economy:

name = "USA"

savings = 0.05

depreciation = 0.05

population_growth = 0.03

capital_ratio = 0.4

time = 200

usa = solow.Economy(name, savings, depreciation,

              population_growth, capital_ratio, time)

print(usa)

Access the Time Paths:

print(usa.data)

# Or for any variables {'Time', 'Capital', 'Population', 'Output', 'Output',

# 'Interest', 'Wage'}

print(usa.data['Wage'])

Plot Time Paths:

usa.plot_all()

Introduce A Population Shock:

shock_size = 0.2

shock_time = 100

usa.population_shock(shock_size,shock_time)

usa.plot_all_shock()

Access time paths after the Shock:

print(usa.data)

#Or, for any of the previous variables with ' - Pop.Shock' added at the end

print(usa.data['Wage - Pop.Shock'])

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

solow-sim-0.1.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solow_sim-0.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file solow-sim-0.1.3.tar.gz.

File metadata

  • Download URL: solow-sim-0.1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for solow-sim-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f7ea6d88501fc77dc3b2baa1b59568a4b5ff2104a15541e8c4fce688b9075004
MD5 95cbaf2c6d54d37053e72c2f04a065d5
BLAKE2b-256 8261fa41576dcbf669db7f5a1ac2b1cb0b51c2e290558d1b57c69e6f94900252

See more details on using hashes here.

File details

Details for the file solow_sim-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: solow_sim-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for solow_sim-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53d0ad3ea917138158edc5555ffd6bb719b78c93b5cdcbf2e31382a280605b47
MD5 79bf779530b10bb427a208644469f19a
BLAKE2b-256 02cf97f56d4cb090ef2e0e2c96d17d14ee70bdaee33e01c5ee737c32bca47ba3

See more details on using hashes here.

Supported by

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