pm4py.algo.simulation.playout.petri_net package

Submodules

pm4py.algo.simulation.playout.petri_net.algorithm module

class pm4py.algo.simulation.playout.petri_net.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

BASIC_PLAYOUT = <module 'pm4py.algo.simulation.playout.petri_net.variants.basic_playout' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\simulation\\playout\\petri_net\\variants\\basic_playout.py'>
EXTENSIVE = <module 'pm4py.algo.simulation.playout.petri_net.variants.extensive' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\simulation\\playout\\petri_net\\variants\\extensive.py'>
STOCHASTIC_PLAYOUT = <module 'pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\simulation\\playout\\petri_net\\variants\\stochastic_playout.py'>
pm4py.algo.simulation.playout.petri_net.algorithm.apply(net, initial_marking, final_marking=None, parameters=None, variant=<Variants.BASIC_PLAYOUT: <module 'pm4py.algo.simulation.playout.petri_net.variants.basic_playout' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\simulation\\playout\\petri_net\\variants\\basic_playout.py'>>)[source]

Do the playout of a Petrinet generating a log

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • final_marking – (if provided) Final marking of the Petri net

  • parameters – Parameters of the algorithm

  • variant

    Variant of the algorithm to use:
    • Variants.BASIC_PLAYOUT: selects random traces from the model, without looking at the

    frequency of the transitions - Variants.STOCHASTIC_PLAYOUT: selects random traces from the model, looking at the stochastic frequency of the transitions. Requires the provision of the stochastic map or the log. - Variants.EXTENSIVE: gets all the traces from the model. can be expensive

Module contents