--- alias: user-guide-oib-extensions-optimizer tags: - connect iot description: "Optimizer documentation details configuration options and commands for event processing" --- # Optimizer ### Communication Settings | Name | Type | Possible Values | Default Value | Description | | ------------------- | ------- | ------------------------------------------------------------ | ------------- | ------------------------------------------------------------ | | enableMode | Enum | `None`
`OnePerEnterprise`
`OnePerSite`
`OnePerLine` | `None` | How should activate Optimizer instance:
`None` - No instance will be used
`OnePerEnterprise` - One Instance for all Lines (Enterprise level)
`OnePerSite` - One Instance for all Lines (Site level)
`OnePerLine` - One Instance per Line | | includeRawEventData | Boolean | | false | Should the original OIB event data be included in the IoT Event property list (serialized in JSON format).
**Warning**: usually, these events are very big and will consume network, cpu and logging resources | ### Commands #### Optimizer.Command.GetOptimizerResultsForRecipe | Command Parameter Name | Type | Mandatory | Possible Values | Default Value | Description | | ---------------------- | ------ | --------- | --------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | RecipeFullPath | String | Yes | | | Full SIPLACE Pro object path (including Folders). | | LineFullPath | String | Yes | | | The Line Full Path to get result from (eg:"Virtual Lines\\Virtual Line 01") (Only needed if multiple lines being controlled by instance) | Example of a reply: ```json { "Optimizer.Property.Setup.Name": "Demo Setups\\Virtual Line ASM Simple Product Setup @ 19-10-28 03:07:01 [0]", "Optimizer.Property.Setup.Line.Name": "Virtual Lines\\Virtual Line 01", "Optimizer.Property.Setup.Line.Stations": [ { "Name": "Virtual Stations\\Virtual SX4 01", "StationType": "SIPLACE SX4", "PlacementAreas": [ { "Number": 1, "Heads": [ { "HeadType": "C&P 20 10xx", "Location": 1, "HeadCycleTime": 3910 }, { "HeadType": "C&P 20 10xx", "Location": 4, "HeadCycleTime": 3910 } ], "CycleTime": 4334, "BuildTime": 3910 }, { "Number": 2, "Heads": [ { "HeadType": "C&P 20 10xx", "Location": 3, "HeadCycleTime": 4503 }, { "HeadType": "C&P 20 10xx", "Location": 2, "HeadCycleTime": 4503 } ], "CycleTime": 4755, "BuildTime": 4503 } ], "CycleTime": 4755 } ] } ```