Difference between revisions of "Completing the model"

 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
1. Click icon button. Select ‘Definition’ from array popup menu. Click expr button, select table.
+
[[Category: Models]]
  
[[Image:Definition fuel cost1.3.jpg]]
+
1. Bring up object window of <code>Miles per year</code>. Redefine it as edit table index by <code>Car type</code> and <code>Year</code>.
  
2. Click ‘Edit Table’ button. Edit table window should come up.
+
2. Enter the values as shown in screenshot below
  
[[Image:Mpy edit table.jpg]]
+
[[Image:Chapter 5 completing miles.PNG]]
  
<br>
+
3. Select <code>Fuel cost</code>. Re-define it as an edit table indexed by <code>Car type</code>, and <code>Year</code>.
[[Image: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.
+
4. Enter the values in your edit table.
  
[[Image:Index car type 1.1.jpg]]
+
:[[Image:Chapter 5 completing fuel.PNG]]
  
4. Edit table should appear, zero is entered by default .
+
5. '''Ctrl+R'''. {Your test result would be similar with the screenshot}
  
<br>
+
6. Go back to main diagram.
[[Image:Edit table Mpy.jpg]]
 
  
5. Select the 1st column. Enter ‘12K’. Press arrow down key. Enter ‘12K’.
+
7. Bring up result table of <code>Total cost</code>.
  
 +
8. Compare your result table with the screenshot below.
  
[[Image:Edit table Mpy1.1.jpg]]
+
:[[Image:Chapter 5 completing total cost.PNG]]
  
 
+
==See Also==
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.
+
* [[Creating Arrays (Tables)]]
 
 
[[Image:Edit table Mpy1.2.jpg]]
 
 
 
7. Select ‘fuel cost’. Click ‘Result’ from the menu items, select ‘mid value’. Result table window should appear.
 
 
 
[[Image:Mid value Fuel Cost1.1.jpg]]
 
 
 
8. Examine mid value of fuel cost.
 
 
 
[[Image: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.
 
 
 
[[Image:Result total cost1.4.jpg]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
:'''a.''' Bring up ‘object window’ of ‘Maintenance cost’node.
 
:'''b.''' Type ‘$/year’ on ‘Units’ field
 
:'''c.''' In ‘Description’ field, type ‘Annual car maintenance costs such as oil changes’
 
:'''d.''' Enter ‘2400’ in the ‘Definition’ field
 
:'''e.''' Press ‘alt+enter’ to accept
 
[[Image:Object Maintenance cost.jpg]]
 
:'''f.''' Bring up ‘object window’ of ‘Total cost’ node.
 
:'''g.''' Type ‘$/year’ on ‘Units’ field.
 
:'''h.''' Type ‘Total annual cost of driving and maintaining a car’ in ‘Description’ field.
 
:'''i.''' On ‘Definition’ field, click ‘inputs’. Select ‘Fuel_cost’. Key in ‘+’ sign. Click ‘inputs’ again, this time select ‘Maintenance cost’
 
[[Image:Object Total Cost.jpg]]
 
:'''j.''' Click Result button to evaluate total cost.
 
[[Image:Result button.jpg]]
 
:'''k.''' The Result window should come up and it’s value should be '''2971'''
 
[[Image:Mid button total cost.jpg]]
 
:'''k.''' Click ‘mid’ button, select ‘probability density’
 
[[Image:Probability Density.jpg]]
 
:'''l.''' You should have a result table.
 
[[Image:Result total cost.jpg]]
 
:'''m.''' Click on the graph button. You should have a graph result that looks like the one below.
 
[[Image:Graph result total cost.jpg]]
 

Latest revision as of 19:37, 18 March 2016


1. Bring up object window of Miles per year. Redefine it as edit table index by Car type and Year.

2. Enter the values as shown in screenshot below

Chapter 5 completing miles.PNG

3. Select Fuel cost. Re-define it as an edit table indexed by Car type, and Year.

4. Enter the values in your edit table.

Chapter 5 completing fuel.PNG

5. Ctrl+R. {Your test result would be similar with the screenshot}

6. Go back to main diagram.

7. Bring up result table of Total cost.

8. Compare your result table with the screenshot below.

Chapter 5 completing total cost.PNG

See Also

Comments


You are not allowed to post comments.