Products & Services Solutions Academia Support User Community Company

Learn more about SimBiology   

Scoping Parameters for Reactions, Rules, and Events

Definition of Parameter Scope

Parameters are quantities used to define the behavior of a modeled system. Parameters can either be constant or change over time. SimBiology parameters are generally used to define rate constants.

A SimBiology parameter is defined either globally at the model level or locally at the kinetic law level. Scope refers to this definition of the parameter at the model or kinetic law level.

If you create a new parameter in the Project Settings-Parameters pane, the scope is set by default to the model. When you create a new parameter to define a reaction rate equation in the Project Settings-Reactions pane's Kinetic Law tab, you can choose whether to assign the parameter locally to the kinetic law or globally to the model.

SimBiology parameters are resolved hierarchically:

Using a Parameter in Events and Rules

When you want to refer to a parameter in an event or rule expression, or in more than one reaction rate equation, the parameter scope must be at the model level.

If you want to vary a parameter that is being referenced in a reaction rate equation, that parameter must have a unique name, and have scope at the model level. See Definition of Parameter Scope for more information.

Changing the Scope of a Parameter

When you want to refer to a parameter in an expression for a rule, or in more than one reaction rate equation, the parameter scope must be at the model level.

To change the scope of a parameter in the SimBiology desktop:

  1. In the Project Explorer, click Parameters, to open the Parameters pane.

  2. In the Parameters table, right-click a parameter row select Change Parameter Scope to change the scope of the selected parameter from kinetic law to model, or the reverse.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS