Giter VIP home page Giter VIP logo

auroramaurizio / pear Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 118 KB

PEAR is a Python program that takes advantage of Petri nets and logical conditions to develop a screening tool aimed at studying the effect of perturbations in interconnected systems.

License: MIT License

Python 100.00%
interconnection perturbation-analysis petri-nets screening damage-propagation safety-monitoring python-package

pear's Introduction

PEAR: Petri-net Evolution Analysis Report

Table of contents

Description

PEAR is a Python program that takes advantage of Petri nets and logical conditions to develop a screening tool aimed at studying the effect of perturbations in interconnected systems.

Petri nets

A Petri net is a mathematical model that allows the representation and description of a process, but also the modeling of the process evolution in terms of its new state after the occurrence of a perturbation event. Edges in the graph, called arcs (graphycally represented as arrows), are directed and connect places (graphycally represented as circles) to transitions (graphycally represented as rectangles) or transitions to places. To simulate a dynamic process, a number of tokens is assigned to each place in order to indicate the presence of some quantitative property. This assignment of tokens to places encodes the state of the system and is called a marking. The tokens move among the places when some event happens (transition firing). A transition can only fire when it is enabled, meaning that each of its input places has at least one token in the current marking. The firing of a transition is triggered by a specific event that occurs in the environment. The order in which events are generated depends upon the event which generates them and the hyerarchy of the system. When a transition fires, it removes one token from each place connected by input arcs and gives one token to each place connected by output arcs until a stop condition is met.

Dependencies and installation

PEAR requires snakes.

Installing from source

You can clone the repository using

> git clone https://github.com/auroramaurizio/PEAR

To install the package just type:

> python setup.py install

To uninstall the package you have to rerun the installation and record the installed files in order to remove them:

> python setup.py install --record installed_files.txt
> cat installed_files.txt | xargs rm -rf

Authors

License

See the LICENSE file for license rights and limitations (MIT).

pear's People

Contributors

auroramaurizio avatar

Watchers

 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.