<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/qm/ptc/qmptc0121m000" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Algorithms (qmptc0121m000)</Title>
	</Header>
	<HelpTopic><AimSection><Paragraph>Use this session to display <Link href="/baanerp/tc/glossary/glossary#Algorithms.tc" role="glossary">algorithms</Link>.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph>In the details session, you can define and/or maintain algorithms.</Paragraph>
			<Note><SectionTitle>Note</SectionTitle>
				<List><ListIntro>When you define a new algorithm, you cannot fill out the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="formfield">Expression</GUIRef> field until you have completed the following procedure:</ListIntro>
					<ListItem>Define an algorithm in this session.</ListItem>
					<ListItem>If you have not defined any variables, define the variables of the expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0123m000" role="session">Algorithm Variables (qmptc0123m000)</GUIRef> session.</ListItem>
					<ListItem>Link the variables to the algorithm in the <GUIRef href="/baanerp/qm/ptc/qmptc0122m000" role="session">Algorithm - Variables (qmptc0122m000)</GUIRef> session.</ListItem>
					<ListItem>Select the algorithm to which you want to link an expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000" role="session">Algorithms (qmptc0121m000)</GUIRef> session, and fill out the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="formfield">Expression</GUIRef> field.</ListItem>
				</List>
			</Note>
			<Paragraph>You can define an expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="formfield">Expression</GUIRef> field that contains variables with different characteristic units.</Paragraph>
			<Paragraph>For example, to calculate the content of a barrel, enter the following expression:</Paragraph>
			<Formula><Paragraph UserLevel="Novice" UserType="Taskuser">area (in cm2) * height (in meters)</Paragraph>
			</Formula>
			<Paragraph>However, make sure that you convert the expression to the algorithm unit that you enter in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="formfield">Algorithm Unit</GUIRef> field. For example, if you enter cm3 in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="formfield">Algorithm Unit</GUIRef> field, you must enter the following expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="formfield">Expression</GUIRef> field:</Paragraph>
			<Formula><Paragraph UserLevel="Novice" UserType="Taskuser">area (in cm2) * height (in meters) * 100</Paragraph>
			</Formula>
			<Paragraph>A maximum of 99 variable codes can be used to formulate the expression of an algorithm (see session <GUIRef href="/baanerp/qm/ptc/qmptc0123m000" role="session">Algorithm Variables (qmptc0123m000)</GUIRef>. Any desired variable can be defined and assigned to a variable code using subsession <GUIRef href="/baanerp/qm/ptc/qmptc0122m000" role="session">Algorithm - Variables (qmptc0122m000)</GUIRef>.</Paragraph>
			<Note><SectionTitle>Note</SectionTitle>
				<Paragraph>If the expression for an algorithm is not valid, the algorithm cannot be used in sessions <GUIRef href="/baanerp/qm/ptc/qmptc1101m000" role="session">Inspection Order - Lines (qmptc1101m000)</GUIRef> and <GUIRef href="/baanerp/qm/ptc/qmptc0151m000" role="session">Inspection Order - Lines (qmptc0151m000)</GUIRef>. If an algorithm is inserted, the general data must be entered and saved first by means of option "Update". After this, it is possible to enter an expression.</Paragraph>
			</Note>
		</GeneralSection>
		<RelatedTopics><SectionTitle>Related topics</SectionTitle>
			<RelTopic><Link href="/baanerp/qm/onlinemanual/000002" role="manual">Algorithms in quality management</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/qm/onlinemanual/000004" role="manual">Syntax for expressions</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/qm/onlinemanual/000005" role="manual">Quality ID's and quality combinations</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="qmptc021.algo"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Algorithm</Title>
			</Header>
			<FuncDesc><Link href="/baanerp/tc/glossary/glossary#Algorithms.tc" role="glossary">algorithm</Link>
			</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="qmptc021.seak"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Search Key</Title>
			</Header>
			<FuncDesc><Link href="/baanerp/tp/glossary/glossary#000001" role="glossary">search key</Link>
			</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="qmptc021.expr"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Expression</Title>
			</Header>
			<FuncDesc>Indicates the way in which the algorithm value is calculated.</FuncDesc>
			<SimpleSection><Paragraph>You can define an expression that contains variables with different characteristic units. For example, you can calculate the content of a barrel by entering the following expression:</Paragraph>
				<Formula><Paragraph UserLevel="Novice" UserType="Taskuser">Area (in cm2) * Height (in meters)</Paragraph>
				</Formula>
				<Paragraph>However, make sure that you convert the expression to the algorithm unit that you enter in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="formfield">Algorithm Unit</GUIRef> field. For example, if you enter cm3 in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="formfield">Algorithm Unit</GUIRef> field, you must enter the following expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="formfield">Expression</GUIRef> field:</Paragraph>
				<Formula><Paragraph UserLevel="Novice" UserType="Taskuser">Area (in cm2) * Height (in meters) * 100</Paragraph>
				</Formula>
			</SimpleSection>
			<RelatedTopics><SectionTitle>Related topics</SectionTitle>
				<RelTopic><Link href="/baanerp/qm/onlinemanual/000004" role="manual">Syntax for expressions</Link>
				</RelTopic>
			</RelatedTopics>
		</FieldHelp>
		<FieldHelp ID="qmptc021.cual"><Header>
				<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">Algorithm Unit</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tc/glossary/glossary#Units.tc" role="glossary">unit</Link> in which the result of the algorithm is expressed.</FuncDesc>
			<Note><SectionTitle>Note</SectionTitle>
				<Paragraph>When an algorithm is inserted, SSA ERP checks the units of the algorithm and the related characteristics, because both units must have the same physical quantity. SSA ERP does not check whether the correct <Link href="/baanerp/td/glossary/glossary#ConverFactor.td" role="glossary">conversion factors</Link> are used.</Paragraph>
			</Note>
		</FieldHelp>
	</Fields>
</Session>
