Indicate object in use during simulation
Active property indicates whether a simulation
is using a SimBiology® object. A SimBiology model is organized
into a hierarchical group of objects. Use the
to include or exclude objects during a simulation.
Event, Reaction, or Rule — When an event, a reaction, or rule object
Activeproperty is set to
false, the simulation does not include the event, reaction, or rule. This is a convenient way to test a model with and without a reaction or rule.
Configuration set — For the
configsetobject, use the method
setactiveconfigsetto set the object
Variant — Set the
trueif you always want the variant to be applied before simulating the model. You can also pass the variant object as an argument to
sbiosimulate; this applies the variant only for the current simulation. For more information on using the
Activeproperty for variants, see
Schedule dose and Repeat dose — To use a dose object in a simulation, you must add the dose object to a model object and set the Active property of the dose object to true.
This property of the
RepeatDose objectwill be removed in a future release. Explicitly specify a dose or an array of doses as an input argument when you simulate a model using
|Applies to||Objects: configset, event, observable, reaction, RepeatDose, rule, ScheduleDose, variant|
Create a model object.
modelObj = sbiomodel ('my_model');
Add a reaction object and verify that the
Activeproperty setting is
reactionObj = addreaction (modelObj, 'a + b -> c + d'); get (reactionObj, 'Active')
ans = 1
set (reactionObj, 'Active', false); get (reactionObj, 'Active')
ans = 0