WSMInitialValues


is an option for functions such as WSMSimulate that specifies initial values for variables.

DetailsDetails

  • Setting sets initial values to in the simulation or model.
  • corresponds to the start property in the model.
  • Using for a simulation does not recompile the model.
  • Setting runs simulations in parallel, with taking initial values .

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Simulate with default initial values:

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

Modify to have initial value :

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

Simulate with a range of initial values:

In[1]:=
Click for copyable input

Vary the initial angles of the balls in the cradle:

In[2]:=
Click for copyable input

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

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

Create a model with a start value for a variable:

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