All Downloads are FREE. Search and download functionalities are using the official Maven repository.

examples.filter.mlrj2 Maven / Gradle / Ivy

//constants
k1 : 0.1;

//functions

// remove all A species from the given species
filterA :: sol -> sol;
filterA [] = [];
filterA x + xs = (if (name(x) == 'A') then [] else x) + filterA(xs);

//species
Cell()[];
A();

//initial solution
>>INIT[10 Cell[100 A]];

//reaction rules
Cell[sol?]:c -> Cell[filterA(sol?)] @ k1 * #c;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy