<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/qm/ptc/qmptc0121m000" xml:lang="en">
   <Header>
      <Title>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="manual">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="manual">Expression</GUIRef> field.</ListItem>
            </List>
         </Note>
         <Paragraph>You can define an
		  expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="manual">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 space-and-orientation="indented-estimated">
            <Paragraph>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="manual">Algorithm Unit</GUIRef> field. For example, if you enter cm3 in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="manual">Algorithm Unit</GUIRef> field, you must enter the following expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="manual">Expression</GUIRef> field:</Paragraph>
         <Formula space-and-orientation="indented-estimated">
            <Paragraph>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">Order Specific Inspection 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>Algorithm</Title>
         </Header>
         <FuncDesc>An expression that is used to compute a characteristic by means
		of other variables or fixed characteristics.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="qmptc021.seak">
         <Header>
            <Title>Search Key</Title>
         </Header>
         <FuncDesc>An alternative form of a description used for convenience
		during searching. Typically, it is an abbreviation, an acronym, or a mnemonic
		alternative to a full description.</FuncDesc>
      </FieldHelp>
      <FieldHelp ID="qmptc021.expr">
         <Header>
            <Title>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 space-and-orientation="indented-estimated">
               <Paragraph>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="manual">Algorithm Unit</GUIRef> field. For example, if you enter cm3 in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.cual" role="manual">Algorithm Unit</GUIRef> field, you must enter the following expression in the <GUIRef href="/baanerp/qm/ptc/qmptc0121m000#qmptc021.expr" role="manual">Expression</GUIRef> field:</Paragraph>
            <Formula space-and-orientation="indented-estimated">
               <Paragraph>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>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, ERP Enterprise checks the units of the algorithm and the related
			 characteristics, because both units must have the same physical quantity. ERP Enterprise 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>