Skip to content

events, constant and boundary condition species for SDEs and Jumps #414

@isaacsas

Description

@isaacsas

We've had several requests in the past for constant species, and my general advice was if one wanted A to be constant don't write A --> B but write A --> A + B or 0 --> B with rate k*A. The problem with the first is that A is treated as a variable internally. SBML includes an explicit "constant" tag for species, so this is something commonly used in models. Along those lines we could

  1. Have a way of marking A in a DSL reaction as a constant species. The Antimony DSL would have one write $A --> B to indicate it is constant. If we had something like that in the DSL we could then move it to being a parameter before actually generating the corresponding Reaction.
  2. Use the metadata system to indicate a variable is constant. Not making it a parameter internally though would mean a lot of the current codebase would have to have special cases added to handle a constant state appropriately. So I think just modifying the DSL to allow tagging a species as constant would make more sense.

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