Skip to content
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

Initialization of compartments depends on their order in the model #422

Open
SergeStinckwich opened this issue Feb 15, 2022 · 0 comments
Open

Comments

@SergeStinckwich
Copy link
Collaborator

When you want to initialize compartment's model in a scenario, you need to know the order of their definition in the model. This is really error-prone.

Example in this model:

KModel MultiSpecies
    attribute: #(species -> humans birds).

Composition Influenza
    model: 'SEIRS';
    model: 'MultiSpecies'.

Scenario Scr1
    on: 'Influenza';
    mu_species: #(0.000365 0.00137);
    beta_species: #(#(0 0.21) #(0 0.42));
    gamma_species: #(0.25 0.233);
    sigma_species: #(0.5 0.67);
    nu: 0.00274;
    lambda: #(beta*I/N sum);
    N: #(species);
    S_species: #(500 4990);
    I_species: #(0 10).

mu_species: #(0.000365 0.00137); initialization depends on the order of species defined in MultiSpecies concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant