Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getconfigset (model)

Get configuration set object from model object

Syntax

configsetObj = getconfigset(modelObj, 'NameValue')
configsetObj = getconfigset(modelObj)
configsetObj = getconfigset(modelObj,'active')

Arguments

modelObjModel object. Enter a variable name for a model object.
NameValueName of the configset object.
configsetObjObject holding the simulation-specific information.

Description

configsetObj = getconfigset(modelObj, 'NameValue') returns the configuration set attached to modelObj that is named NameValue, to configsetObj.

configsetObj = getconfigset(modelObj) returns a vector of all attached configuration sets, to configsetObj.

configsetObj = getconfigset(modelObj,'active') retrieves the active configuration set.

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. modelObj always contains at least one configset object with the name configured to 'default'. Additional configset objects can be added to modelObj with the method addconfigset.

Examples

  1. Retrieve the default configset object from the modelObj.

    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:                     0
  2. Configure the SolverType to ssa.

    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'

Introduced in R2006a

Was this topic helpful?