Skip to content

How to access a model instance defined with the DSL #409

@SergeStinckwich

Description

@SergeStinckwich

When a model is expressed with the DSL like below, how you can access the model?

KModel SEIRS
    attribute: #(status -> S E I R);
    parameters: #(beta gamma mu lambda sigma nu);
	 lambda: #(beta*I/N);
    equations: #(
         S:t= mu*N - lambda*S - mu*S + nu*R.
         E:t= lambda*S - sigma*E - mu*E.
         I:t= sigma*E - gamma*I - mu*I.
         R:t= gamma*I - mu*R - nu*R.).

Composition LPAI
    model: 'SEIRS'.

Scenario Scr1
    on: 'LPAI';
    mu: 1/(76*365);
    beta: 0.21;
    gamma: 1/14;
    sigma: 1/7;
    nu: 1/365;
    S: 0.999;
    E: 0.001;
    I: 0.

Simulation InfluenzaSim rungeKutta  
    scenario: 'Scr1';
    from: 0;
    to: 1000;
    step: 1.

Visualization InfluenzaViz diagram
    for: 'InfluenzaSim';
    xLabel: 'Time (days)';
	open

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions