Simulation with AnyLogic/System Dynamics/Step 6. Defining initial values of stocks

Step 6. Defining Initial Values of Stocks

Now we are ready to specify the initial values of stocks.

Step 1. Creating a new model1.gifDefine the initial number of potential adopters

  1. Click the PotentialAdopters variable in the graphical editor.
  2. On the General page of the Properties view, type TotalPopulation in the Initial Value edit box. Use intelli-sense mechanism to avoid typing the whole names of variables and functions. To open the intelli-sense wizard, click at the desired position in the edit box, and then press Ctrl+space.
    Defining initial values of stocks.png
    The wizard listing model variables and functions appears. Scroll to the name you want to add, or type the first letters of the name until it becomes visible in the list. Finally, press Enter to insert the name.

We do not need to set up the initial value for the Adopters stock explicitly since there are no adopters initially and the stock is already initialized with zero by default.

Last modified on 31 July 2009, at 19:15