主要内容

export (model)

ExportSimBiologymodels for deployment and standalone applications

Description

exportedModel= export(model)返回一个SimBiology.export.Modelobject,exportedModel, from a SimBiologymodel object,modelincluding all doses which are editable in the exported model. In addition, if themodelhas any active variants, they are automatically applied to determine the default initial values in the exported model. By default, all species, parameters, compartments, and doses are editable in the exported model. When you simulate the exported model, you can specify different initial values or different dose conditions.

exportedModel= export(model,editobjs)specifieseditobjs, which is a species, parameter, compartment, or vector of these objects that are editable in the exported model. All doses are exported and are editable in the exported model. If themodelhas any active variants, they are automatically applied to determine the default initial values in the exported model. When you simulate the exported model, you can specify different initial values foreditobjsor different dose conditions.

exportedModel= export(model,editobjs,modifiers)additionally specifiesmodifierswhich is a dose, variant, vector of these objects or an empty array[].

exportedModel = export(model,editobjs,editdoses,variants)additionally specifieseditdoses, a dose object or vector of dose objects andvariants, a variant object or vector of variant objects.

Method Summary

Methods for exported model objects

accelerate Prepare exportedSimBiologymodel for acceleration
getIndex 通用电气t indices intoValueInfoandInitialValuesproperties
getdose Return exportedSimBiologymodel dose object
isAccelerated Determine whether an exportedSimBiologymodel is accelerated
simulate Simulate exportedSimBiologymodel

Input Arguments

collapse all

SimBiology model, specified as a SimBiologymodel object.

Editable model quantities in the exported model, specified as a species, parameter, or compartment object or a vector of these objects.

Model modifiers, specified as a dose or variant object, a vector of these objects, or an empty array[].

Ifmodifiersis a vector of dose objects, then only these doses are editable in the exported model.

Ifmodifiersis an empty array[], then no doses are editable in the exported model, and all active variants are applied to determine the default initial values of model quantities in the exported model.

Ifmodifiersis a vector of variant objects, then specified variants are applied to determine the default initial values. All doses in the model are exported.

When you simulate the exported model, you can specify different initial values foreditobjs编辑或不同剂量条件able doses.

Editable doses, specified as a dose object or vector of dose objects. The specified dose objects are editable in the exported model.

Variants, specified as a variant object or a vector of objects. The specified variant objects are applied to determine the default initial values in the exported model.

Output Arguments

collapse all

Exported model, specified as aSimBiology.export.Modelobject.

Examples

collapse all

Export a SimBiology model object.

modelObj = sbmlimport('lotka'); exportedModel = export(modelObj)
exportedModel = Model with properties: Name: 'lotka' ExportTime: '26-Feb-2022 13:00:01' ExportNotes: ''

Display the editable values (compartments, species, and parameters) information for the exported model object.

{exportedModel.ValueInfo.Name}
ans =1x8 cellColumns 1 through 7 {'unnamed'} {'x'} {'y1'} {'y2'} {'z'} {'c1'} {'c2'} Column 8 {'c3'}

There are 8 editable values in the exported model. Export the model again, allowing only the parameters (c1,c2, andc3) to be editable.

parameters = sbioselect(modelObj,'Type','parameter'); exportedModelParam = export(modelObj,parameters); {exportedModelParam.ValueInfo.Name}
ans =1x3 cell{'c1'} {'c2'} {'c3'}

Export the model a third time, allowing the parameters and species to be editable.

PS = sbioselect(modelObj,'Type',{'species','parameter'}); exportedModelPS = export(modelObj,PS); {exportedModelPS.ValueInfo.Name}
ans =1x7 cell{'x'} {'y1'} {'y2'} {'z'} {'c1'} {'c2'} {'c3'}

Version History

Introduced in R2012b