getconfigset
Get configuration set object from model object
Syntax
configsetObj =
getconfigset(modelObj, 'NameValue')
configsetObj =
getconfigset(modelObj)
configsetObj =
getconfigset(modelObj,'active')
Arguments
| Model object. Enter a variable name
for a model object. |
| Name of the configset object. |
| Object holding the simulation-specific information. |
Description
returns the configuration set attached to configsetObj =
getconfigset(modelObj, 'NameValue')modelObj that is named
, to
NameValue. configsetObj
returns a vector of all attached
configuration sets, to configsetObj =
getconfigset(modelObj).configsetObj
retrieves the active
configuration set.configsetObj =
getconfigset(modelObj,'active')
A configuration set object stores simulation-specific information. A SimBiology model can
contain multiple configsets with one being active at any given time. The
active configuration set contains the settings that are used during the simulation.
Use the setactiveconfigset function to define the active
configset. always
contains at least one modelObjconfigset object with the name configured to
'default'. Additional configset objects can be added
to with the method
modelObjaddconfigset.
Examples
Retrieve the default
configsetobject from themodelObj.modelObj = sbiomodel('cell'); configsetObj = getconfigset(modelObj) Configuration Settings - default (active) SolverType: ode15s StopTime: 10 SolverOptions: AbsoluteTolerance: 1.000000e-06 RelativeTolerance: 1.000000e-03 SensitivityAnalysis: false RuntimeOptions: StatesToLog: all CompileOptions: UnitConversion: false DimensionalAnalysis: true SensitivityAnalysisOptions: Inputs: 0 Outputs: 0Configure the
SolverTypetossa.set(configsetObj, 'SolverType', 'ssa') get(configsetObj) Active: 1 CompileOptions: [1x1 SimBiology.CompileOptions] Name: 'default' Notes: '' RuntimeOptions: [1x1 SimBiology.RuntimeOptions] SensitivityAnalysisOptions: [1x1 SimBiology.SensitivityAnalysisOptions] SolverOptions: [1x1 SimBiology.SSASolverOptions] SolverType: 'ssa' StopTime: 10 MaximumNumberOfLogs: Inf MaximumWallClock: Inf TimeUnits: 'second' Type: 'configset'
Version History
Introduced in R2006a