Metis Smart Modeling - Rules
From Metis Documentation
(→What is a rule?) |
|||
Line 157: | Line 157: | ||
|} | |} | ||
- | + | == Rule types == | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
Rules which can be configured in Metis are divided into 7 categories: | Rules which can be configured in Metis are divided into 7 categories: | ||
Line 270: | Line 247: | ||
- | + | === Single Selection === | |
The single selection rule tests an input and calculates the defined output based on a simple logical relation. The Input "object" can be of any type available, but the output one can only be a position or a variable. If the input is set to be a variable, its value may come directly from a field placed in a mask or a default value. The output quantity ("Q out") is determined by the input quantity ("Q in"). If they are both set to "1", then for every number of input there will be an output. On the other hand, if the "Q out" fields is set to 2, it means that for every input there will be 2 output. | The single selection rule tests an input and calculates the defined output based on a simple logical relation. The Input "object" can be of any type available, but the output one can only be a position or a variable. If the input is set to be a variable, its value may come directly from a field placed in a mask or a default value. The output quantity ("Q out") is determined by the input quantity ("Q in"). If they are both set to "1", then for every number of input there will be an output. On the other hand, if the "Q out" fields is set to 2, it means that for every input there will be 2 output. | ||
Line 331: | Line 308: | ||
EXAMPLE OF USE BASED ON SCENARIO | EXAMPLE OF USE BASED ON SCENARIO | ||
- | + | === Table Selection=== | |
The goal is to determine an output quantity within several ranges of input values. | The goal is to determine an output quantity within several ranges of input values. | ||
Line 369: | Line 346: | ||
EXAMPLE OF USE BASED ON SCENARIO | EXAMPLE OF USE BASED ON SCENARIO | ||
- | + | === Optimal Selection === | |
This very performing rule enables the automatic selection of the best alternative depending on the output quantity required and the related price. This rule is particularly appreciated in selecting products when one input corresponds to several possible output results. | This very performing rule enables the automatic selection of the best alternative depending on the output quantity required and the related price. This rule is particularly appreciated in selecting products when one input corresponds to several possible output results. | ||
Line 412: | Line 389: | ||
EXAMPLE OF USE BASED ON SCENARIO | EXAMPLE OF USE BASED ON SCENARIO | ||
- | + | === Maximal Selection === | |
This type of rule can be used when several input values influence a specific output. Each line will be used as a single criterion and Metis will return the higher result possible. | This type of rule can be used when several input values influence a specific output. Each line will be used as a single criterion and Metis will return the higher result possible. | ||
Line 432: | Line 409: | ||
EXAMPLE OF USE BASED ON SCENARIO | EXAMPLE OF USE BASED ON SCENARIO | ||
- | + | === Minimal Selection === | |
This type of rule uses the same logic as the Maximal Rule, but the lowest value will be returned as an output result. | This type of rule uses the same logic as the Maximal Rule, but the lowest value will be returned as an output result. | ||
Line 445: | Line 422: | ||
EXAMPLE OF USE BASED ON SCENARIO | EXAMPLE OF USE BASED ON SCENARIO | ||
- | + | === Formulas === | |
Mathematical formula | Mathematical formula | ||
Line 748: | Line 725: | ||
|} | |} | ||
- | + | === External Selection=== | |
For very complex rules, an external file might be used to implement them in Metis Smart Modeling. The purpose of this rule type is to allow the development of algorithms which may not be handled in Metis. The file linked to such rule should a compiled program which can be started by providing at least one parameter and which returns '''only one''' value. This file can be searched through the External File Name button on the right. In order for a new file to be displayed in that list it has to be "imported" through the ... . | For very complex rules, an external file might be used to implement them in Metis Smart Modeling. The purpose of this rule type is to allow the development of algorithms which may not be handled in Metis. The file linked to such rule should a compiled program which can be started by providing at least one parameter and which returns '''only one''' value. This file can be searched through the External File Name button on the right. In order for a new file to be displayed in that list it has to be "imported" through the ... . | ||
Line 757: | Line 734: | ||
}} | }} | ||
- | + | == Testing rules == | |
All rules which have been created in Metis Smart Modeling can be tested in various ways, either on their own or as part of the group they belong. This section of the manual will focus on testing a rule by itself, for more information about other tests please refer to XXX. | All rules which have been created in Metis Smart Modeling can be tested in various ways, either on their own or as part of the group they belong. This section of the manual will focus on testing a rule by itself, for more information about other tests please refer to XXX. |