<< minpluszeros MaxPlusAndPetrinet petriqueue >>

MaxPlusAndPetrinet >> MaxPlusAndPetrinet > petrinetsimulation

petrinetsimulation

GUI based Petri net simulation

Calling Sequence

finalmark = petrinetsimulation(forward,backward,initmark,namaplace,namatran)

Parameters

finalmark
: Petri net marking after simulation finished.
forward
: Forward incidence.
backward
: Backward incidence.
initmark
: initial marking of Petri net.
namaplace
: Column vector of string represents name of each place.
namatran
: Column vector of string represents name of each transition.

Description

This function is used for Petri net simulation using Graphical User Interface. The input of this function is Petri net that represented by forward incidence, backward incidence and initial marking. Name of each place and transition is used to help the user running the simulation.

Examples

f = [0 0 1;1 0 0;0 1 0]; // forward incidence

b = eye(3,3); // backward incidence

m = [0;1;0]; // initial marking

np = ['M';'H';'K']; // name of each place

nt = ['mh';'hk';'km']; // name of each transition

m = petrinetsimulation(f,b,m,np,nt); // run the function

Authors

See Also


Report an issue
<< minpluszeros MaxPlusAndPetrinet petriqueue >>