Creating Arrays (Tables)

Revision as of 03:48, 11 September 2007 by ReneeB (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

E. Creating another array using the same index

1. Double click on ‘Fuel cost’ module to open the diagram inside. Click the key icon to open the attribute panel. Select ‘miles per gallon’. Select ‘Definition’ from the attributes pop up menu.
Attribute panel Mpg.jpg

2. Select table from the expr popup menu. Question box should appear. Click ‘ok’.

Table.jpg

3. Select ‘car type’. Click >> arrow. Click ‘ok’. An edit table should come up.

Index car type.jpg

4. Select the first cell. Type ‘Uniform (25,35)’. Press arrow down key. Type ‘Uniform(15,25)’. Click the check button.

Edit table car type.jpg

F. Viewing results of an array calculation

1. Click on the ‘result button’. A result button should come up. Click ‘table view’ button.

Table Mpg.jpg


Result Mpg.jpg

2. Click on the diagram button to return to diagram window. Select ‘fuel price’ node. Select ‘mid value’ from the ‘Result menu’. Result window should appear.


Mid value.jpg


Result Fuel Price.jpg

3. Click ‘diagram button’ to return to diagram window. Select ‘miles per year’ node. Click the ‘result’ button from the menu items. Result window should appear.


Result Mpy.jpg

4. Select ‘fuel cost’ node. Select ‘mid value’ from the Result menu items.


Mid value Fuel Cost.jpg

5. A ‘Result window’ should come up. Click ‘table view button’


Result Fuel Cost.jpg

6. Close ‘Result’ window. Click on the ‘Diagram’ button to return to ‘car cost’ window.

7. Select ‘Maintenance cost’ node. Click ‘result’ button. A graph result window should appear. Click ‘table’ button. Diagram should change to table window.


Result Maintenance cost.jpg

8. Click on the ‘Diagram’ button. Select ‘Total cost’. Click ‘key icon’ to open attribute panel. Click on the ‘Attributes popup menu’. Select ‘Definition’.


Total Cost attribute.jpg

9. Select ‘mid value’ from the Result menu.


Result total cost1.1.jpg

F. Combining results from a table

1. Click at the left side of the definition field, type Sum(. Click at the end of definition field, type ,Car_type). Click the check button to accept the definition.

Diagram Car cost.jpg

2. Click ‘Result’ button.


Result total cost1.2.jpg

3. Close the Result window.

G. 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’


Diagram Car cost1.1.jpg

2. Click on the key icon. Select ‘Description’ from the attribute popup menu.


Car cost Description.jpg

3. Type ‘Year of ownership’, press alt+enter. Select ‘Definition’ from the popup menu.


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.


List Year.jpg

5. Select ‘Maintenance cost’.


Diagram Car cost1.2.jpg

6. Click on the ‘Edit table’ button. Edit table window should come up. Click on the ‘index’ icon.


Edit table Maintenance cost.jpg

7. Select ‘Year’ in the index lists. Click arrow >>, then press ‘ok’.


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.


Edit table Maintenance cost1.1.jpg

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.