SystemModelParametricSimulate
SystemModelParametricSimulate[model,v,{p1,p2,…}]
simulates model for the variable v with parameters pi.
SystemModelParametricSimulate[model,{v1,v2,…},{p1,p2,…}]
simulates model for multiple variables vi.
SystemModelParametricSimulate[model,vars,tmax,…]
simulates from 0 to tmax.
SystemModelParametricSimulate[model,vars,{tmin,tmax},…]
simulates from tmin to tmax.
Details and Options
- SystemModelParametricSimulate returns parametric simulation results for system models.
- The model can have the following forms:
-
SystemModel[…] general system model StateSpaceModel[…] state-space model TransferFunctionModel[…] transfer function model AffineStateSpaceModel[…] affine state-space model NonlinearStateSpaceModel[…] nonlinear state-space model DiscreteInputOutputModel[…] discrete input-output model - SystemModelParametricSimulate gives results in terms of ParametricFunction objects.
- SystemModelParametricSimulate takes the same options as SystemModelSimulate.
List of all options
Examples
open allclose allBasic Examples (3)
Get a parametric solution for z with parameter a:
Evaluating with a numerical value of a gives an approximate function solution for z:
Plot the solutions for several different values of the parameter:
Get a parametric solution for z with respect to the initial value of y:
Plot the solutions for several different values of the parameter:
Scope (4)
Models (4)
Get a parametric solution for variables in a SystemModel with respect to a parameter:
Plot the solutions for several different values of the parameter:
Get a parametric solution for a variable in an AffineStateSpaceModel with respect to a parameter:
Plot the solutions for several different values of the parameter:
Get a parametric solution for a variable in a NonlinearStateSpaceModel with respect to a parameter:
Plot the solutions for several different values of the parameter:
Get a parametric solution for a variable in a DiscreteInputOutputModel with respect to a parameter:
Plot the solutions for several different values of the parameter:
Options (1)
Method (1)
Use Method to choose the underlying solver:
Use ParametricNDSolve as the solver:
ParametricNDSolve is often faster than other solvers:
Applications (3)
Optimize parameters for maximizing a throw by a trebuchet:
Retrieve a parametric function for the thrown distance, varying release time and rope length:
Maximize the throwing distance, constraining parameters to reasonable ranges:
Simulate using the optimal throwing parameters:
Show the distance until the first bounce:
Plot the trajectory of the thrown object using a stored plot:
Calibrate parameters in a model by comparing to measurement data:
Compute a parametric function for the inertia variable measured:
Set up a criteria function for model fitting:
Fit parameters to the test data:
Simulate with the fitted parameters:
Show the test data and the calibrated model together:
Fit model parameters to the mean of many measurements:
Create parametric functions for concentration variables based on parameters k1, k2 and k3:
Define a fitting function that evaluates at a time and parameter set:
Show the data and its distribution:
Compute the mean of the measurements at each time point:
Compute the standard deviation of measurements at each time point:
Construct the data to fit against, using the mean of measurements:
Weight each time point based on the standard deviation:
Fit parameters against the data:
Properties & Relations (1)
SystemModelSimulateSensitivity can be used to easily compute parameter sensitivity:
Text
Wolfram Research (2018), SystemModelParametricSimulate, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemModelParametricSimulate.html (updated 2022).
CMS
Wolfram Language. 2018. "SystemModelParametricSimulate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/SystemModelParametricSimulate.html.
APA
Wolfram Language. (2018). SystemModelParametricSimulate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemModelParametricSimulate.html