| # Algorithms in quality management Quality inspections are not always simply a matter of taking measurements. Based on measurements, complex calculations must sometimes be performed, and these calculations may or may not include product specifications as part of the calculation. For this purpose, algorithms are used. Example By measuring the amount of sugar in wine, you can determine the amount of alcohol the wine is going to contain. The procedure for using algorithms in the Quality Management package Step 1. Define an algorithm in the Algorithms (qmptc0121m000) session. You must wait until step 4 before you can enter an expression in the Expression field yet. Step 2. If you did not define any variables yet, define the variables of the expression in the Algorithm Variables (qmptc0123m000) session. Step 3. Link the variables you want to use in the algorithm to the characteristics or aspect/characteristic combinations in the Algorithm Variables (qmptc0122m000) session. The used characteristics must be of characteristic type Fraction or Integer, and the method must be Algorithm (see the Characteristics (qmptc0101m000) session). Step 4. Go back to the Algorithms (qmptc0121m000) session, select the algorithm to which you want to link an expression, and enter an expression (composed of the linked variables) in the Expression field. You can use standard mathematical expressions (logarithms, sine, cosine, and so on) in algorithms (see Syntax for expressions). The result of calculating an algorithm is entered in the Inspection Order Test Data (qmptc1115m000) session or the Sample - Test Data by Serial Number (qmptc1116m000) session. In the Application menu, click Evaluate Algorithm to calculate the algorithm. |