Difference between revisions of "Creating Arrays (Tables)"

Line 6: Line 6:
 
==[[Combining results from a table]]==
 
==[[Combining results from a table]]==
 
==[[Adding a dimension to a  variable]]==
 
==[[Adding a dimension to a  variable]]==
1. Drag an index node, drop it a few inches on top of ‘car type’ index node. Type ‘Year’
 
 
<br>
 
[[Image:Diagram Car cost1.1.jpg]]
 
 
2. Click on the key icon. Select ‘Description’ from the attribute popup menu.
 
 
<br>
 
[[Image:Car cost Description.jpg]]
 
 
3. Type ‘Year of ownership’, press alt+enter. Select ‘Definition’ from the popup menu.
 
 
<br>
 
[[Image:Car cost Definition.jpg]]
 
 
4. Select ‘List’ from the expr popup menu. First cell is entered as 1, press Enter key twice to have 3 cells with appropriate nos.
 
 
<br>
 
[[Image:List Year.jpg]]
 
 
5. Select ‘Maintenance cost’.
 
 
<br>
 
[[Image:Diagram Car cost1.2.jpg]]
 
 
6. Click on the ‘Edit table’ button. Edit table window should come up. Click on the ‘index’ icon.
 
 
<br>
 
[[Image:Edit table Maintenance cost.jpg]]
 
 
7. Select ‘Year’ in the index lists. Click arrow >>, then press ‘ok’.
 
 
<br>
 
[[Image:Indexes Year.jpg]]
 
 
8. Click on the 2nd column change units to ‘1500’ press arrow down key, type ‘2600’. Click on the 3rd column, enter ‘1700’ press arrow down key, enter ‘3000’.  Click the check button.
 
 
<br>
 
[[Image:Edit table Maintenance cost1.1.jpg]]
 
 
 
==[[H. Completing the model]]==
 
==[[H. Completing the model]]==
 
1. Click icon button. Select ‘Definition’ from array popup menu. Click expr button, select table.
 
1. Click icon button. Select ‘Definition’ from array popup menu. Click expr button, select table.

Revision as of 06:57, 11 September 2007

Creating an index variable

Creating an array (table)

Selecting an array index

Creating another array using the same index

Viewing results of an array calculation

Combining results from a table

Adding a dimension to a variable

H. Completing the model

1. Click icon button. Select ‘Definition’ from array popup menu. Click expr button, select table.

Definition fuel cost1.3.jpg

2. Click ‘Edit Table’ button. Edit table window should come up.

Mpy edit table.jpg


Index icon.jpg

3. Click the ‘index’ icon. Indexes window should appear. Select ‘Car Type’, click >>. Repeat the same procedure for ‘Year’. Click ‘ok’ button.

Index car type 1.1.jpg

4. Edit table should appear, zero is entered by default .


Edit table Mpy.jpg

5. Select the 1st column. Enter ‘12K’. Press arrow down key. Enter ‘12K’.


Edit table Mpy1.1.jpg


6. Select 2nd column, enter ‘20K’ press arrow down key enter ‘12K’. Repeat the same for the 3rd column, enter ‘12K’ for the 1st and 2nd row.

Edit table Mpy1.2.jpg

7. Select ‘fuel cost’. Click ‘Result’ from the menu items, select ‘mid value’. Result table window should appear.

Mid value Fuel Cost1.1.jpg

8. Examine mid value of fuel cost.

Result Fuel Cost1.1.jpg

9. Click diagram button to return to parent diagram. Select ‘Total cost’. Click the result button to examine the mid value.

Result total cost1.4.jpg

Comments


You are not allowed to post comments.