<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/qm/onlinemanual/000002" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Algorithms in quality management</Title>
		<Keyword><Level1>Algorithms in quality management (QM)</Level1>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph>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.</Paragraph>
		<GeneralSection><SectionTitle>Example</SectionTitle>
			<Paragraph></Paragraph>
			<Paragraph>By measuring the amount of sugar in wine, you can determine the amount of alcohol the wine is going to contain.</Paragraph>
		</GeneralSection>
		<GeneralSection><ProcedureSection><SectionTitle>The procedure for using algorithms in the Quality Management package</SectionTitle>
				<Steps><Step><StepTitle></StepTitle>
						<Paragraph>Define an algorithm in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000" role="session">Algorithms (qmptc0121m000)</GUIRef> session. You must wait until step 4 before you can enter an expression in the <GUIRef href="qmptc021.expr" role="tablefield">Expression</GUIRef> field yet.</Paragraph>
					</Step>
					<Step><StepTitle></StepTitle>
						<Paragraph>If you did not define any variables yet, define the variables of the expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0123m000" role="session">Algorithm Variables (qmptc0123m000)</GUIRef> session.</Paragraph>
					</Step>
					<Step><StepTitle></StepTitle>
						<Paragraph>Link the variables you want to use in the algorithm to the characteristics or aspect/characteristic combinations in the <GUIRef href="/baanerp/qm/ptc/qmptc0122m000" role="session">Algorithm - Variables (qmptc0122m000)</GUIRef> session. The used characteristics must be of characteristic type Fraction or Integer, and the method must be Algorithm (see the <GUIRef href="/baanerp/qm/ptc/qmptc0101m000" role="session">Characteristics (qmptc0101m000)</GUIRef> session).</Paragraph>
					</Step>
					<Step><StepTitle></StepTitle>
						<Paragraph>Go back to the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000" role="session">Algorithms (qmptc0121m000)</GUIRef> session, select the algorithm to which you want to link an expression, and enter an expression (composed of the linked variables) in the <GUIRef href="qmptc021.expr" role="tablefield">Expression</GUIRef> field. You can use standard mathematical expressions (logarithms, sine, cosine, and so on) in algorithms (see <Link href="/baanerp/qm/onlinemanual/000004" role="manual">Syntax for expressions</Link> ).</Paragraph>
					</Step>
				</Steps>
			</ProcedureSection>
			<Paragraph>The result of calculating an algorithm is entered in the <GUIRef href="/baanerp/qm/ptc/qmptc1115m000" role="session">Sample - Test Data by Characteristic (qmptc1115m000)</GUIRef> session or the <GUIRef href="/baanerp/qm/ptc/qmptc1116m000" role="session">Sample - Test Data by Serial Number (qmptc1116m000)</GUIRef> session. In the Application menu, click Evaluate Algorithm to calculate the algorithm.</Paragraph>
		</GeneralSection>
	</GeneralSection>
</ManualTopic>
