| MathSBML Home Page | MathSBML Site Map |
resetParameter |
|
resetParameter[model, variable, value] resets the values of constants in model, which is the output of SBMLRead. resetParameter[model, variable→value] is equivalent to resetParameter[model, variable, value]. resetParameter[model, {var1→value1,var2→value2,...}] will reset a set of parameter values to the specified values. resetParameter new in version 2.5.15 The original model must be loaded with evaluateParameters→False for this function to work. ExampleDownload notebook file
newModel[];
addCompartment[C1, size -> 1];
addSpecies[A, initialAmount -> 100];
addSpecies[B, initialAmount -> 100];
addSpecies[X, initialAmount -> 0];
addParameter[K -> .5];
addReaction[A + B -> X, kineticLaw -> K*k*A*B, parameters -> {k -> 1}];
m = loadSimulator[context -> None, evaluateParameters -> False];
sim = SBMLNDSolve[m, .1]; SBMLPlot[sim];
[31 May 2006]
|