From e1f79988d6b1c6e76a569d3cab824b643253e7be Mon Sep 17 00:00:00 2001 From: Mahmoud Bentriou <mahmoud.bentriou@centralesupelec.fr> Date: Sat, 12 Dec 2020 14:09:15 +0100 Subject: [PATCH] test of birth-death model process with macro --- tests/unit/macro_network_model.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unit/macro_network_model.jl b/tests/unit/macro_network_model.jl index 4447a07..d65d669 100644 --- a/tests/unit/macro_network_model.jl +++ b/tests/unit/macro_network_model.jl @@ -26,6 +26,17 @@ set_x0!(model_ER, [100,100,0,0]) set_param!(model_ER, [1.0,1.0,1.0]) simulate(model_ER) +model_birth_death = @network_model begin + Birth: (X => 2X, λ*X) + Death: (X => ∅, μ*X) +end "Birth-death process" + +model_birth_death_2 = @network_model begin + Birth: (X => 2X, λ*X) + Death: (X => 0, μ*X) +end "Birth-death process" + + return true #= -- GitLab