Tutorial 1-Defining inputs

3/5

In this lesson we will assign values to parameters and lookup tables.

Assigning parameter values

  1. Open the blocks window by selecting Window | Blocks from the menu bar.

  2. Select Parameter from the type drop down list in the title bar.

  3. The table now lists all parameters of the model. Like with the expression blocks of the previous lesson, you can either right-click a parameter and choose Edit from the pop-up menu or directly assign a value in the table.

  4. Assign the following parameter values:

Parameter Value
Salary 210
Rent 42
TaxRate 0.43

Assigning values to Fees

Time depending inputs are represented by lookup table blocks. You cannot enter time-dependent values directly in the blocks window, but must do so by editing the object.

  1. Open the blocks window by selecting Window | Blocks from the menu bar.

  2. In the Type drop-down list, select Lookup table. Now only lookup table blocks are shown in the table.

  3. Right-click the first lookup table named Fees and choose Edit from the pop-up menu.

  4. Select the Values tab. Select Use Input Nearest from the Interpolation drop down list.

  5. The first column of the table is for time-points and the second is for values. Enter the following data:

    Time Amount
    0.0 3000
    31.0 3000
    59.0 3400
    90 2500
    120 3100
    151 2300
    182 0
    212 0
    243 0
    273 3900
    304 5900
    334 2100

    6. Click Ok to close the window.

Screenshot

Assigning values to Sales

Follow the same procedure as above, and assign the following values to Sales:

Interpolation = “Use Input Nearest”

Time Amount
0.0 5300
31.0 0
59.0 0
90 10
120 0
151 8050
182 0
304 150
334 1900


Next

Previous

References