![]() |
|||
![]()
|
![]() |
![]() |
![]() |
8.2.2. Value Ordering Rules The value ordering means which value the salesman is going to suggest first out of many alternative values for a certain variable. For instance, in the case of a businessman, the suit color is given by the following sequence: navy-blue, gray, and brown. {{ Value-ordering-rule-1 IF (customer.occupation IS business) THEN (suit.color IS (ORDER navy-blue gray brown)) Importance: 0.7 }} The relationships between variables and the associated constraints and rules can be depicted in the constraint and rule graph of Figure 5. The oval bubbles mean variables, and the ones enclosed in rectangles denote the seed variables. The directed arcs show the rules, while the undirected arcs indicate constraints. 9. REASONING PROCEDURE IN SALESMAN EXPERT SYSTEMIn this section, we illustrate an example of reasoning with UNIK-SES. Although the dialog is assisted by menu-driven windows, we illustrate the reasoning process with rules and constraints to show the logic behind the screen. Let us suppose the customer is a young teacher, who is tall and heavy with a pale-looking face. He is going to buy a shirt, suit, and necktie. Figure 6 shows the customer's input screen in the browser, which will be saved in the objects as follows. {{Customer (occupation: teacher) (face-color: pale) (age: 20-29) (height: 180-190) (body-type: heavy)}} {{(buying-plan (purpose: teaching) (budget-upper-bound: 700)} {{ goal (target-variables: suit shirt neck-tie) }} Let us assume the customer does not set any values for the seed variables. The system UNIK-SES begins reasoning with its knowledge and default strategy to generate values from steps 1 to 5.
Up to now, UNIK-SES has automatically generated the specification for the customer using rules. In step 6, the system finds that there are no applicable rules although there are variables still left to be determined, such as design of shirt, design and material of necktie, etc. In this case, there are two options that can be pursued. One is constraint propagation by ordering the undetermined variables and assigning their values according to the value ordering strategy. The other is an interactive reasoning with the customer by requesting the customer to select values of the variables he wants. In this example, suppose that the customer selects "horizontal-stripe" for the design of his suit, "checkered" for the design of his shirt, and "brown" for the color of his suit. Then, the system begins reasoning with these values.
Figure 7 is a suggested specification waiting for customer's interaction. However, the value that the customer input violates the incompatibility constraint-I1: the horizontal stripe does not suit a heavy person. In such a case, the system shows the incompatibility constraint and recommends other possible values on the design of his suit. Of course, the customer can adhere to his previous decision. In this example, suppose the customer selects "no-pattern" for his suit and the system resumes reasoning with the changed value.
At any step, the customer may stop the reasoning and accept the currently suggested items. Then the system stops reasoning and displays the resulting specification of the customer's choice. Figure 8 shows the final specification.
For every step of the process, a user-friendly interface is neccessary because the system has to be directly accessable to the customers. Thus, a graphical user interface is under development using HTML (HyperText Mark-up Language), CGI (Common Gateway Interface) programming (NCSA, 1995), and JavaScript. For the given specification, UNIK-SES can display the combination of suit, shirt, and necktie in a multimedia-based screen as, illustrated in Figure 9. Upon reviewing the display, the customer may select the combination as a final decision or may request UNIK-SES to resume the reasoning process and modify the current specification.
|
![]() |
|
Use of this site is subject certain Terms & Conditions. Copyright (c) 1996-1999 EarthWeb, Inc.. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Please read our privacy policy for details. |