-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a function already to generate Petri.Model from LabelledPetriNet? #177
Comments
Do you mean integration with Petri.jl? I believe all integration with Petri.jl was removed because this package really just supercedes it. It supports all of the features that are in Petri.jl |
I wanted to generate SDEs and jump processes as well as the vector field; I didn't see this functionality in AlgebraicPetri.jl |
(I also want to add in a conversion to a discrete-time stochastic solver along the same lines of Gemlib). I suspect that I'll have to extend the model specification to split out discrete and continuous states, so I can lower to a PDMP https://docs.sciml.ai/JumpProcesses/stable/tutorials/jump_diffusion/) |
@sdwfrost you're right, the only simulation functionality available "natively" in AlgPetri right now is the ODE interpretation of the Petri net, as seen in these two functions for the vector field: AlgebraicPetri.jl/src/AlgebraicPetri.jl Lines 283 to 396 in df03fc6
I wrote the Also anything generating code like that could (and should) be done more elegantly with https://github.com/AlgebraicJulia/CompTime.jl but that package did not exist at the time. |
Thanks @slwu89 - if the idea is to develop AlgebraicPetri further (rather than integrate more tightly with Petri.jl), I'll close this issue and open a new one. |
As it says in the title, I have a problem where I want to convert a LabelledPetriNet to Petri.Model - I couldn't seem to find any conversion code - am I missing something?
The text was updated successfully, but these errors were encountered: