Skip to main content

A library for System Modeling Runtime Environment (SMRE)

Project description

SysMPy

About

SysMPy is an open-source library for System Modeling Runtime Environment (SMRE), an integrated software environment which offers several built-in libraries to support systems analysis and design, based on a convenient systems modeling script language, which forms a fundamental building block of SMRE.

Install SysMPy via PIP

Example 1: Three action nodes

pip install sysmpy

Systems Modeling Script (SMS) Example

This tutorial walks you through how to run a simple SysMPy project. It will show you how to write a simple system modeling script and execute it.

Example 1: Simple Three Action Model

This tutorial uses a simple project named a simple three action model. If you are unfamiliar with Python, take a time to study Python (https://www.python.org/).

SMS has a simple form as shown the following code. To define a process, a class Process(.) can be used. The return object from it provides a built-in function Action(.). By including the name of an Action, the Action node is defined along the process.

from sysmpy import *
import asyncio

p = Process("Process")
act1 = p.Action("Action1")
act2 = p.Action("Action2")
act3 = p.Action("Action3")

The following figure shows an illustrative graph from the above code.

                +---------------+
                |               |
                |     start     |
                |               |
                +---------------+
                        | Process
                        |
                +---------------+
                |               |
                |     Action1   |
                |               |        
                +---------------+        
                        |
                        |
                +---------------+
                |               |
                |     Action2   |
                |               |        
                +---------------+        
                        |
                        | 
                +---------------+
                |               |
                |      End      |
                |               |
                +---------------+

After writing the action model, we can run a simulation. To execute the simulation, asyncio.run(.) is used with the built-in function sim() of the process p.

asyncio.run(p.sim())

Prerequisites for Matlab

The following package would be needed to run some examples for Matlab.

Members

Developers:

  • Dr. Cheol Young Park
  • Dr. Shou Matsumoto
  • Mr. DaePhil Han
  • Mr. EunHak Lee
  • Mr. SeongRae Lim
  • Mr. Hong Gyu Han

Advisers:

  • Prof. Joongyoon Lee
  • Dr. GwanTaik Lim
  • Prof. YoungWon Park

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

SysMPy-0.0.9.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

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

SysMPy-0.0.9-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file SysMPy-0.0.9.tar.gz.

File metadata

  • Download URL: SysMPy-0.0.9.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for SysMPy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b42d511b655901387958c7f4099463344e0a1809fc598e5288068a042a4c355f
MD5 f2317a3e5be4e3ac1a3ff16384304941
BLAKE2b-256 44f7943196302fc52a2090d9fc9c557dc80d7e6f1d559c43a2786550c640b2e1

See more details on using hashes here.

File details

Details for the file SysMPy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: SysMPy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for SysMPy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 58fa886d2b89a1c34bfad4a8c52a6fccbf5e86c85d90cd6a388d7d84d7a3fd7c
MD5 257208b2210331f0c99a2b0271174dec
BLAKE2b-256 e78eaacddf5a4ec1cdc2000551f83cbfcd3a82acc564b52a8c5cdd79d5457e19

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