Difference between revisions of "Defining Utility as a deterministic table"

 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
1. Double click on ‘Utility’. Click on the Units field, type ‘$’. Press tab key to get to get to Description field. Type ‘The utility, or value to me,  given party location and weather outcome, assigned in dollars.’ Select ‘other’ from expr popup menu.
+
[[Category: Party Problem model]]
 +
[[Category: Definitions]]
  
[[Image:Object Utility.jpg]]
 
  
2. Object finder window should appear. Click Library popup menu, select array.
+
*Double click on ‘Utility’ to bring up its object window
 +
*Click on the Units field, type ‘$’.
 +
*Press tab key to get to get to Description field.
 +
*Type ‘The utility, or value to me,  given party location and weather outcome, assigned in dollars.
 +
*Open pulldown menu of expression.
 +
*Select Other
  
[[Image:Object LibraryJPG.jpg]]
+
:[[Image:Object Utility.jpg]]
  
<br>
+
'''Expected: Object finder window should appear'''
[[Image:Object Array.jpg]]
 
  
3. Scroll down array, select ‘Determtable()’. Click ‘indexes’ button. Indexes window should come up.
+
:[[Image:Object LibraryJPG.jpg]]
  
[[Image:Object finder indexes.jpg]]
+
*Click Library popup menu, select array -> Table Functions
 +
:[[Image: Object array.png]]
  
4. Click ‘ok’ button to accept the indexes.
+
*Scroll down on the main window and select ‘Determtable()’.
 +
*Click ‘indexes’ button.
 +
<small>Indexes window should appear</small>
 +
*Select Party Location and Weather as your indexes
  
[[Image:Indexes P.L.W.jpg]]
+
:[[Image:Object finder indexes.jpg]]
  
5. Click ‘ok’ on the Object finder window. An Edit table window should appear.
+
*Click ‘ok’ button.  
6. Click on the first column. Type ‘100’, press arrow down key. Type ‘90’, press arrow down key. Type ‘40’. Click on the second column. Enter ‘0,20,50’ respectively. Click the checkbox.
 
  
[[Image:Edit table utility.jpg]]
+
:[[Image:Indexes P.L.W.jpg]]
  
7. Click on the Diagram button to return to the diagram window.
+
*Click ‘ok’ on the Object finder window.
 +
 
 +
'''Expected: Determ edit table should appear.'''
 +
*If necessary, change the row index to 'Party location' and the columns Domain of weather.
 +
*Click on column Sunny, row header Outdoor.
 +
*Change 0 To 100
 +
*Arrow down
 +
*Replace o to 90
 +
*Arrow down
 +
*Change o to 40
 +
*Click on column header Rainy, row header Porch
 +
*Replace 0 with 20
 +
*Arrow down
 +
*Replace cell value 0 with 50
 +
*Click the green checkbox.
 +
 
 +
:[[Image:Edit table utility.jpg]]
 +
 
 +
*Press result button
 +
 
 +
'''Expected: Result table of Utility will appear with row headers, Indoors, Outdoor, Porch and cell values 0, 20,50 will show'''
 +
 
 +
*Click on the Diagram button to return to the diagram window.
 +
 
 +
==See Also==
 +
* [[Creating the Party Problem model (based on chapter 6 of tutorial)]]
 +
* [[Tutorial: Decision trees]]

Latest revision as of 08:16, 21 January 2019


  • Double click on ‘Utility’ to bring up its object window
  • Click on the Units field, type ‘$’.
  • Press tab key to get to get to Description field.
  • Type ‘The utility, or value to me, given party location and weather outcome, assigned in dollars.’
  • Open pulldown menu of expression.
  • Select Other
Object Utility.jpg

Expected: Object finder window should appear

Object LibraryJPG.jpg
  • Click Library popup menu, select array -> Table Functions
Object array.png
  • Scroll down on the main window and select ‘Determtable()’.
  • Click ‘indexes’ button.

Indexes window should appear

  • Select Party Location and Weather as your indexes
Object finder indexes.jpg
  • Click ‘ok’ button.
Indexes P.L.W.jpg
  • Click ‘ok’ on the Object finder window.

Expected: Determ edit table should appear.

  • If necessary, change the row index to 'Party location' and the columns Domain of weather.
  • Click on column Sunny, row header Outdoor.
  • Change 0 To 100
  • Arrow down
  • Replace o to 90
  • Arrow down
  • Change o to 40
  • Click on column header Rainy, row header Porch
  • Replace 0 with 20
  • Arrow down
  • Replace cell value 0 with 50
  • Click the green checkbox.
Edit table utility.jpg
  • Press result button

Expected: Result table of Utility will appear with row headers, Indoors, Outdoor, Porch and cell values 0, 20,50 will show

  • Click on the Diagram button to return to the diagram window.

See Also

Comments


You are not allowed to post comments.