Model configuration
1. Model request
The model request is the top-level object of the Field Service Routing API. It contains the configuration of the model and the dataset to optimize.
Id | Required | Format | Description |
---|---|---|---|
modelInput |
true |
object |
The modelInput is the dataset to optimize. |
config |
false |
object |
Configuration of the model and its dataset. |
2. Configuration
The configuration object contains parameters influencing the optimization process.
Id | Required | Format | Description |
---|---|---|---|
model |
false |
object |
Configuration of the model, e.g. its constraints weights. |
Dataset |
false |
object |
Configuration of the requested model dataset, e.g. its termination. |
3. dataset configuration
Id | Required | Format | Description |
---|---|---|---|
name |
false |
string |
Optional model dataset name. If omitted, a default name is generated. |
termination |
false |
object |
Model dataset termination configuration. |
false |
number |
The maximum number of threads to be used for solving, must be greater than or equal to |
4. Termination configuration
Id | Required | Format | Description |
---|---|---|---|
spentLimit |
false |
string (ISO 8601 duration) |
Maximum duration (e.g. PT1H) to keep the solver running. |
false |
string (ISO 8601 duration) |
Maximum unimproved score duration. If the score has not improved during this period (e.g. PT5M), terminate the solver. Warning: using this option will disable the default diminished returns termination which is recommended for most use cases. |
Diminished returns terminates the solver early if expected improvements are minimal, saving on CPU costs. This termination is desirable since it terminates based on the relative rate of improvement, and behaves similarly on different hardware and different problem instances. You can find more details in the documentation. |
Next
-
See the full API spec or try the online API.
-
Learn more about field service routing from our YouTube playlist.
-
Learn about configuration parameters and profiles.