User Tools

Site Tools


tutorial_1-defining_inputs

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, located next to the search field.
  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
TaxRate0.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 LookupTable. Now only lookup table blocks are shown in the table.
  3. Right-click the 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.
  6. Enter the following data:
TimeAmount
0.0 3000
31.03000
59.03400
90 2500
120 3100
151 2300
182 0
212 0
243 0
273 3900
304 5900
334 2100

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”

TimeAmount
0.0 5300
31.00
59.00
90 10
120 0
151 8050
182 0
304 150
334 1900


Next

Previous

References

tutorial_1-defining_inputs.txt · Last modified: 2023/03/13 13:30 by dmytroh