WSMParameterValues

WSMParameterValues
is an option for functions such as WSMSimulate that specifies values for parameters.

DetailsDetails

  • Using WSMParameterValues for a simulation does not recompile the model.
  • WSMParameterValues takes the following values:
  • {p1c1,}set parameters pi to ci
    {p1{c1,c2,},}run simulations in parallel, with pi taking values cj
  • Each pi can be either a string or DotName.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Simulate with default parameters:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Change the offset to 2:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=

Simulate with a range of parameters:

In[1]:=
Click for copyable input

Vary the part of the momentum that is transferred to the next ball in the cradle:

In[2]:=
Click for copyable input

The angles of the first and last ball in the cradle for different parameters:

In[3]:=
Click for copyable input
Out[3]=

Create a model with a parameter value for par:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input