Giter Site home page Giter Site logo

peacemath's Introduction

PeaceMath

A GUI for the ordinary differential equation model of the Sustainable Peace Map

coded in Python 3.4.1 with Tkinter

MATHEMATICAL MODEL REFERENCES

Liebovitch, LS, Coleman PT, Futran D, Lee D, Lichter T, Burgess N, Maksumov D, and Ripla C. (in press). Modeling the dynamics of sustainable peace. In U. Strawinska-Zanko and L. S. Liebovitch (Eds.), Mathematical Modeling of Social Relationships, New York, NY, Springer.

L. S. Liebovitch, P. T. Coleman, A. Bechhofer, C. Colon, J. Donahue, C. Eisenbach, L. Guzman-Vargas, D. Jacobs, A. Khan, C. Li, D. Maksumov, J. Mucia, M. Persaud, M. Salimi, L. Schweiger, and Q. Wang. 2019. Complexity analysis of sustainable peace: mathematical models and data science measurements. New Journal of Physics, Published 8 July 2019. https://iopscience.iop.org/article/10.1088/1367-2630/ab2a96.

VIDEO OF PROGRAM USE https://drive.google.com/drive/u/0/folders/0B3t7HoVL1Ct7dGtqX3JkSDE2T00

LATEST VERSIONS ARE:

1. data.py

2. teal.py

3. tealclass.py

NOTE: due to changes in event handling in matplotlib and tkinter in Python 3.7, the following files (with small changes) have been confirmed to work in Python 3.7.1 and should be used instead of those listed above in using Python 3.7.

2. teal_37.py

3. tealclass_37.py

HOW TO RUN THESE PROGRAMS

Run Python Scripts in this order:

1. data.py (this only needs to be done once)

2. tealclass.py

3. teal.py

The data files should be in the same directory of the programs: b8.txt, btextbxy8.txt, c8.txt, ic8.txt, m8.txt b105.txt, btextbxy105.txt, c105.txt, ic105.txt, m105.txt b111.txt, btextbxy111.txt, c111.txt, ic111.txt, m111.txt b202.txt, btextbxy202.txt, c202.txt, ic202.txt, m202.txt

When asked for "ONLY NUMBER n and I will find cn.txt, etc. (#/a, Def=a)"

type either:
8 (return)
105 (return
111 (return)
202 (return)

When asked for "Want to CHANGE parameters (y/n), def=n"

type: (return)

NOTE: for OS10.9.5 or Linux the programs should run, but for WINDOWS you may need to change the comment in tealclass.py class App:

    # self.mainloop() TO THE EXECUTABLE STATEMENT self.root.mainloop()

TO CHANGE INITIAL CONDITIONS: use the left hand entry widgets and ENTER

TO CHANGE THE CONNECTION MATRIX: click on a textbox, use the left hand entry widget, and ENTER (this will also show only the links into and out of that textbox, use ALL Cij to show all the links)

TO RUN THE CALCULATION: use CALCULATE

TO SWITCH FROM THE LINKS TO THE INITIAL CONDITIONS use IC on the links input

TO RESTORE THE ORIGINAL INITIAL CONDITIONS use ORIGINAL on the initial conditions input

peacemath's People

Contributors

larryliebovitch 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.