Metis Smart Modeling - Rules
From Metis Documentation
(→Table Selection) |
(→Optimal Selection) |
||
Line 419: | Line 419: | ||
[[File:MetisSmartModelingSCRuleOptimal.PNG|center|700x600px]] | [[File:MetisSmartModelingSCRuleOptimal.PNG|center|700x600px]] | ||
+ | |||
+ | |||
+ | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. | ||
+ | On the left, in the “Groups of rules” dropdown list, select “Server Software 2.” | ||
+ | Click on add. A window opens where the new rule will be created. | ||
+ | In the “Type” field, select “Optimal” from the dropdown list. In the “comment” field, enter a name for the rule, for example “determine best license package.” | ||
+ | Click on the add button near the “input” field. A window opens where it is possible to select positions, variables, and attributes. Select “Variables.” | ||
+ | In the list below, select “$NB_Licences.” Click on confirm. | ||
+ | Click on the add button near the “Q in” field. The same window from before opens, but it is only possible to select positions or variables. In this example a position is added. | ||
+ | In the description field, enter “cal” and then click on filter. | ||
+ | From the results, select the position “Windows Server 2008 CAL 1x” and then click on confirm. | ||
+ | Repeat the previous steps, but this time select “Windows Server 2008 CAL 5x” and click on confirm. | ||
+ | In “Q in” field for “Windows Server 2008 CAL 5x” set the value to “5.” | ||
+ | Click on the add button near “Q in” once again. | ||
+ | Repeat the previous steps and select the “Windows Server 2008 CAL 25x” position and click on confirm. | ||
+ | Enter “25” in the “Q in” field for “Windows Server 2008 CAL 25x” | ||
+ | The rule now states that based on the number of licences, various solutions are possible. When executed, the rule looks up the prices of the various outputs to determine the cheapest and most suitable option. | ||
+ | To test this new rule, click on the “test” button. | ||
+ | The test window opens. Enter “10” in the “test value” cell and click on the “Test” button. | ||
+ | The results are shown below. Now enter “23” and click on “test.” | ||
+ | Close the test window. Click on confirm to save the rule. It now appears in the list of rules. | ||
+ | |||