skip to main content
Corticon Studio: Rule Modeling Guide : Logical analysis and optimization : Testing, analysis, and optimization : Rulesheet analysis and optimization
 

Try Corticon Now
Rulesheet analysis and optimization
Analysis and optimization is the process of examining and correcting or improving the logical construction of Rulesheets, without using test data. As with testing, the analysis process verifies that our rules are functioning correctly. Testing, however, does nothing to inform the rule builder about the execution efficiency of the Rulesheets. Optimization of the rules ensures they execute most efficiently, and provide the best performance when deployed in production.
The following example illustrates the point:
Two rules are implemented to profile life insurance policy applicants into two categories, high risk and low risk. These categories might be used later in a business process to determine policy premiums.
Figure 213. Simple Rules for Profiling Insurance Policy Applicants
To test these rules, we create a new scenario in a Ruletest, as shown:
Figure 214. A Test Scenario Created in a Ruletest
In this scenario, we have created a single example of Person, a non-smoker aged 45. Based on the rules we just created, we expect that the Condition in Rule 1 will be satisfied (People aged 55 or younger…) and that the person's riskRating will be assigned the value of low. To confirm our expectations, we run the Ruletest:
Figure 215. Ruletest
As we see in that figure, our expectations are confirmed: Rule 1 fires and riskRating is assigned the value of low. Furthermore, the .post command displays the appropriate rule statement. Based on this single scenario, can we say conclusively that these rules will operate properly for other possible scenarios; i.e., for all instances of Person? How do we answer this critical question?