Sha256: 6749aa73152ac446d9ecdaaae223078628c8327ceeb4f5858735c8586057748f
Contents?: true
Size: 344 Bytes
Versions: 39
Compression:
Stored size: 344 Bytes
Contents
#encoding: utf-8 require 'y_petri' include YPetri A = Place( default_marking: 0.5 ) B = Place( default_marking: 0.5 ) A_pump = Transition( stoichiometry: { A: -1 }, rate: proc { 0.005 } ) B_decay = Transition( stoichiometry: { B: -1 }, rate: 0.05 ) net run! simulation places.map &:marking simulation.settings print_recording plot_state; nil
Version data entries
39 entries across 39 versions & 1 rubygems