Skip to Main Content Skip to Search
Product Documentation

sbioaccelerate - Prepare model object for accelerated simulations

Syntax

sbioaccelerate(modelObj)
sbioaccelerate(modelObj, configsetObj)
sbioaccelerate(modelObj, variantObj)
sbioaccelerate(modelObj, doseObj)
sbioaccelerate(modelObj, configsetObj, variantObj)
sbioaccelerate(modelObj, configsetObj, doseObj)
sbioaccelerate(modelObj, configsetObj, variantObj, doseObj)

Description

Use sbioaccelerate to prepare a model for accelerated simulations before running sbiosimulate. You must use the same model, configset, and dose input arguments when calling both functions, however, you can use any or no variant input arguments when calling sbioaccelerate.

sbioaccelerate(modelObj) prepares a model object (modelObj) for accelerated simulation using its active configset, active variants and active doses. A SimBiology model can contain multiple configsets with one being active at any given time. The active configset contains the settings that will be used to prepare the model for acceleration.

sbioaccelerate(modelObj, configsetObj) uses the configset configsetObj. A configset object stores simulation specific information.

sbioaccelerate(modelObj, variantObj) uses the variant object or array of variant objects variantObj. A variant object's settings supersede model property-values.

sbioaccelerate(modelObj, doseObj) simulates modelObj using the dose object or array of dose objects doseObj. A SimBiology Dose object defines additions that are made to species amounts or parameter values.

sbioaccelerate(modelObj, configsetObj, variantObj), sbioaccelerate(modelObj, configsetObj, doseObj) uses the configset configsetObj and variant object or variant array variantObj or dose object or dose array doseObj. Note if the third argument is empty it is assumed to be variantObj.

sbioaccelerate(modelObj, configsetObj, variantObj, doseObj)

Input Arguments

modelObj

SimBiology model object.

configsetObj

Specify the configuration set object to use in the simulation. For more information about configuration sets, see Configset object.

variantObj

Specify the variant object to apply to the model during the simulation. For more information about variant objects, see Variant object.

doseObj

Specify the dose object to apply to the model during the simulation. For more information about dose objects, see ScheduleDose object and RepeatDose object.

Examples

This example shows how to prepare a model for accelerated simulation.

% Create a SimBiology model from an SBML file.
  m = sbmlimport('lotka.xml');
  
% Prepare the model for accelerated simulation.
  sbioaccelerate(m);
        
% Simulate the model for different initial amounts of x.
  x = sbioselect(m, 'type', 'species', 'name', 'x');
      for i=1:10
          x.initialAmount = i;
          sd(i) = sbiosimulate(m);
      end
        
 % Plot the results.
   sbioplot(sd);  		

See Also

sbiosimulate

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS