Published April 17, 2025 | Version v1.0.0
Software documentation Open

PythonProgram_DAEs

Authors/Creators

Description

The Python program includes two sources files (main.py & NSmodel.py) designed to do all the computations for the paper titled "DAEs-driven Dynamics and North-South Protection of IPRs" (by Hwan C. Lin). This paper now is titled "A Dynamic Modelling Approach to North-South Disparities in IPR Protection" and published in Oxford Economic Papers:

https://doi.org/10.1093/oep/gpaf024.

The main tasks of the Python program are to solve a North-South dynamical system of differential algebraic equations (DAEs) and compute intertemporal welfare effects.

The Python program is coded using Anaconda Python 3.12.7.

To run this Python program, one should save the two source files into the same folder of your computer. The file of main.py is the driver, while the file of NSmodel.py declares a Python class including class members and class functions. 

Specifically, the Python program accomplishes the following:

  1. Solve the North-South dynamical system of DAEs with the Python solver "scipy.integrate.solve_bvp" for a nonlinear stable manifold and the time paths of variables that evolve in transition to steady state;
  2. Compute steady state equlibirums for various scenarios;
  3. Compute intertemporal welfare effects for the North and South when Southern IPRs are tightened to match the Northern standard.
  4. Robustness checks on the coefficient of creative destruction.

The Python program includes detailed remarks in order for the code to be reader-friendly. The two source files (main.py & NSmodel.py), which have been updated to reduce typographical errors in the code's remarks, are also available at Github:

 https://github.com/hwanclin/PythonProgram_DAEs

 

Files

Files (64.8 kB)

Name Size Download all
md5:6754dd3158b1bc1199113093e601dcc1
42.7 kB Download
md5:00a3f484245ec8fa139eba264a9ec466
22.1 kB Download

Additional details

Software

Repository URL
https://github.com/hwanclin/PythonProgram_DAEs
Programming language
Python