Download OpenAPI specification:
Welcome to the adiutaOpt API documentation!
This document specifies all endpoints and schema requirements. If you notice an error, please contact us.
The typical process of an optimization request looks as follows:
The overview site can be found here.
A string consisting of three parts following the pattern "YYYY-MM-DD":
While the schema does not check for validity, the optimization algorithms do. Including invalid dates (e.g. 2020-02-31) leads to a validation error.
Examples:
"2020-04-10"A string of either format "hh:mm" or "-hh:mm":
Times are always interpreted relative to a date in the same object as the Time field. This allows times to exceed 24h or even become negative, as the value gets "added" to midnight of the date. For example, the following times applied to the respective date (in Date format) are equivalent:
"07:25"Values are:
3An integer representing the vehicle type:
4A version consisting of the date of release [0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]+, which can have a patch suffix p[0-9]+.
"1970-01-01_0p0"See https://semver.org/ for a full description of semantic versioning. The regex here is a subset of allowed semantic versions.
"v1.2.3"The authentication is performed via AWS Cognito (Developer-Guide). It is recommended to use one of the SKDs provided by AWS to simplify the authentication process considerably. Examples for SDKs:
Authentication provides three tokens: the access-token, the ID-token and the refresh-token. All three are JSON Web Tokens.
Authorization: 'ID-token'
auth_time) and when it will expire (exp). Currently, an ID-token expires after one hour and requests with expired ID-tokens are rejected automatically. You can get a new ID-token by using the refresh-token without having to re-enter your credentials.const user = ""; // your username const pw = ""; // your password const userPoolID = ""; // UserPoolID, see configuration details const clientID = ""; // ClientId, see configuration details const AmazonCognitoIdentity = require('amazon-cognito-identity-js'); module.exports.login = () => new Promise((resolve, reject) => { const userPool = new AmazonCognitoIdentity.CognitoUserPool({ UserPoolId: userPoolID, ClientId: clientID }); const authenticationDetails = new AmazonCognitoIdentity.AuthenticationDetails({ Username: user, Password: pw, }); const cognitoUser = new AmazonCognitoIdentity.CognitoUser({ Username: user, Pool: userPool }); cognitoUser.authenticateUser(authenticationDetails, { onSuccess: function (result) { const token = result.getIdToken().getJwtToken(); resolve(token); }, onFailure: function (err) { reject(); } }); })
Post a request to be solved.
If a new optimization request was received and was successfully processed, the endpoint will return 201 and the key with which the solution can be retrieved. This does not mean that calculating a solution will succeed, as logic errors, invalid ids and many other checks are performed later - these kinds of issues will result in an ErrorPlan, retrievable from the solution endpoint. Only schema violations are being checked in this request, they will result in the request being rejected with code 422.
Usually, if an optimization request was received but an identical request was already posted before, the endpoint will return 200 and the key with which the solution can be retrieved, which is identical to the key from the earlier request. This is not the case for certain errors which allow a repeat request (marked by the allowRepeat property of an ErrorPlan). Repeats for such requests are allowed after a certain amount of time has passed, trying to post before this cooldown has expired will result in rejection (code 429) where the retry-after header contains the remaining time in seconds until the request will be accepted again. If the repeat request was accepted, the endpoint returns code 201 and a new key to get the solution with.
Request to this endpoint have a content size limit which depends on the used content-type. Requests with content-type: application/json must contain a "plain-text" json payload which must be less than 6Mb in size. For sending larger requests, you must use content-type: application/vnd.adiutabyte.adiutaopt.json+[gzip,deflate,br]. These requests must contain the json data, compressed with gzip, deflate (zlib) or brotli, the payload size limit is 4.5Mb for the compressed data.
required | "application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) The |
| adiutaopt-version | string (optional) A specific version to process the request under. Valid versions can be retrieved with the /packages-list endpoint ( Using a specific version is not recommended for "general" application but for testing, debugging or other developer actions. Versions represent a specific state of the application, they cannot be changed, bug-fixed or extended in any way. For that reason, support for these requests may be limited. |
object (Client) Contains information about the client which sends this request. | |
required | object (MixedPlannerMeta) Meta information about what to consider in the optimization. |
required | object (MixedPlannerOptimizationParameters) Parameters for the optimizer. |
required | Array of objects (MixedPlannerInputTask) Array of tasks to be planned by the optimizer. |
required | Array of objects (MixedPlannerInputWorker) Array of available workers. |
Array of objects (MixedPlannerLocationSite) Array of available location sites. | |
object (MixedPlannerHistory) History data the optimizer can learn from to apply to the current request. History analysis is done differently for each of our customers, if you know what issues you want to address/ what results you want to see from such methods, please contact us so we can set up a solution. | |
object (MixedPlannerTravelOverride) Manual distance matrix data | |
Array of objects or objects (MixedPlannerObstacle) Deprecated Obstacles for the travel calculation. | |
| recovery | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated List of ids. |
object (DeveloperOptions) Options for developers. Do not use! |
A basic TSP
{- "meta": {
- "dateFrom": "2019-12-03",
- "dateTo": "2019-12-03",
- "accuracyMode": 1,
- "postProcessing": true
}, - "parameters": {
- "preset": 0
}, - "tasks": [
- {
- "date": "2019-12-03",
- "duration": 60,
- "taskID": 200,
- "timeEarliest": "0:00",
- "timeLatest": "24:00",
- "location": {
- "lat": 50.88,
- "lng": 6.95
}
}, - {
- "date": "2019-12-03",
- "duration": 60,
- "taskID": 201,
- "timeEarliest": "0:00",
- "timeLatest": "24:00",
- "location": {
- "lat": 50.89,
- "lng": 6.96
}
}, - {
- "date": "2019-12-03",
- "duration": 60,
- "taskID": 202,
- "timeEarliest": "06:00",
- "timeLatest": "12:00",
- "location": {
- "lat": 50.9,
- "lng": 6.97
}
}
], - "workers": [
- {
- "workerID": 1,
- "shiftDate": "2019-12-03",
- "shiftStart": "06:00",
- "shiftEnd": "20:00",
- "startLocation": {
- "lat": 50.878847,
- "lng": 6.9647284
}, - "endLocation": {
- "lat": 50.878847,
- "lng": 6.9647284
}
}
]
}"VGVzdEtleUZvckFQSURvY3VtZW50YXRpb24uYXNk=="Retrieve the solution from this endpoint with the key you got when posting the request. The solution can either be a solved request or an ErrorPlan.
Responses from this endpoint have a content size limit which depends on the used content-type of the response, which can be specified with the accept header. If the response size would exceed that limit, the endpoint returns code 409 instead. Responses of type application/json can include payloads of up to 6Mb, all other types can return up to 4.5Mb of (compressed) data.
| planID required | string Key returned in the 200/201 response of the POST request |
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
curl \ --request GET \ --url '[see url above]/[key obtained from POST request]' \ --header 'Authorization: Bearer [ID-Token obtained from Authentication (JWT)]'
{- "requestID": "string",
- "client": {
- "clientID": "logisticscenter_a"
}, - "meta": {
- "dateFrom": "2020-04-10",
- "dateTo": "2020-04-10",
- "resCapacity": false,
- "resCategory": false,
- "resQualification": false,
- "postProcessing": false,
- "accuracyMode": 1.7e+308,
- "outputLanguage": 1,
- "tightSchedule": false,
- "tourStartsOnShiftStart": false,
- "minTravelTime": 2147483647,
- "travelTimeMin": 2147483647,
- "integrateDurationExtensions": true,
- "integrateGermanBreakRegulations": false,
- "enablePlanSplitting": true,
- "allowUnassignedTasks": false,
- "removeInvalidTasks": true,
- "useInitialClustering": false,
- "dontOptimizeResets": false,
- "minConcurrentSolutions": 1,
- "minTaskDuration": 2147483647,
- "useDensityClustering": false,
- "disableTaskTimeWindowRelaxation": false
}, - "parameters": {
- "preset": 4,
- "fairDistribution": 9,
- "localityClustering": 9,
- "shortPaths": 9,
- "timeliness": 9,
- "travelTimeRelax": 9,
- "workerPrefs": 9,
- "workerReduction": 9,
- "workTimeRelax": 9,
- "genderPref": 9,
- "profitability": 9
}, - "tasks": [
- {
- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false,
- "timeScheduled": "07:25",
- "timeWindowViolation": -2147483648,
- "travelTime": 2147483647,
- "travelDistance": 1.7e+308,
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "finalassignedOrder": 1,
- "info": "string",
- "allowedWorkers": [
- 2147483647
], - "profit": -1.7e+308,
- "performResetBeforeAtID": 2147483647,
- "travelTimeToReset": 2147483647,
- "travelDistanceToReset": 1.7e+308,
- "rotated": true,
- "gapBeforeTask": 2147483647
}
], - "workers": [
- {
- "workerID": 2147483647,
- "shiftID": 2147483647,
- "externalID": "string",
- "startLocation": {
- "lat": -90,
- "lng": -180
}, - "startLocationSiteID": 2147483647,
- "endLocation": {
- "lat": -90,
- "lng": -180
}, - "endLocationSiteID": 2147483647,
- "shiftDate": "2020-04-10",
- "shiftStart": "07:25",
- "shiftEnd": "07:25",
- "shiftPriority": 3,
- "hoursPerWeek": 1,
- "capacity": 1.7e+308,
- "capacityInitial": 1.7e+308,
- "capacityResetLocationSiteIDs": [
- 2147483647
], - "capacityResetDuration": 2147483647,
- "maxResets": 2147483647,
- "volume": 1.7e+308,
- "volumeInitial": 1.7e+308,
- "weight": 1.7e+308,
- "weightInitial": 1.7e+308,
- "finalCapacityResetThreshold": 1.7e+308,
- "finalVolumeResetThreshold": 1.7e+308,
- "finalWeightResetThreshold": 1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "desiredCategory": 2147483647,
- "prefCategories": [
- 2147483647
], - "breakLocationSiteID": 2147483647,
- "breakStartEarliest": "07:25",
- "breakEndLatest": "07:25",
- "breakDuration": 2147483647,
- "noAutomaticBreak": false,
- "vehicleType": 4,
- "gender": 3,
- "costsPerKM": 1.7e+308,
- "costsPerMinute": 1.7e+308,
- "costsInitial": 1.7e+308,
- "maxDesiredTotalDistance": 1.7e+308,
- "maxDesiredSingleDistance": 1.7e+308,
- "dontVary": false,
- "dontAlter": false,
- "allowPreassignedTasksOnly": false,
- "expectedWorkingMinutes": 2147483647,
- "maxAssignableTasks": 2147483647,
- "minAssignableTasks": 2147483647,
- "breakScheduled": "07:25",
- "info": "string",
- "travelHomeTime": 2147483647,
- "travelHomeDistance": 1.7e+308,
- "performFinalResetAtID": 2147483647,
- "travelTimeToFinalReset": 2147483647,
- "travelDistanceToFinalReset": 1.7e+308,
- "tourStart": "07:25",
- "tourEnd": "07:25",
- "totalTravelTime": 2147483647,
- "totalTravelDistance": 1.7e+308,
- "totalTaskTime": 2147483647
}
], - "locationSites": [
- {
- "locationSiteID": 2147483647,
- "location": {
- "lat": -90,
- "lng": -180
}, - "externalID": "string"
}
], - "obstacles": [
- {
- "description": "string",
- "factor": 1.7e+308,
- "restriction": 1,
- "travelTimeIncrease": 1.7e+308,
- "type": "polyline",
- "points": [
- {
- "lat": -90,
- "lng": -180
}
]
}
], - "statistics": {
- "configuration": [
- {
- "label": "Kurze Wege",
- "value": 1
}
], - "workload": [
- {
- "workerID": 2147483647,
- "values": [
- 1
]
}
], - "travelTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "travelDistances": [
- {
- "workerID": 2147483647,
- "distance": 1.7e+308
}
], - "taskTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "taskBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "travelBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "workTimeDistribution": [
- {
- "type": "Arbeitszeit",
- "time": 2147483647
}
], - "preferredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "preferredGender": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "desiredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "vehicleTypeDistances": [
- {
- "vehicleType": 4,
- "distance": 1.7e+308
}
], - "impact": [
- {
- "label": "string",
- "value": 1,
- "absolute": 1.7e+308
}
], - "unassignedTaskIDs": [
- 2147483647
], - "unassignableTaskIDs": [
- 2147483647
], - "timeWindowViolationTaskIDs": [
- 2147483647
], - "routeLength": 1.7e+308,
- "onTime": 100,
- "planProfitability": -1.7e+308,
- "history": {
- "tasks": [
- {
- "taskID": 2147483647,
- "preassignedWorker": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "timeEarliestLimit": "07:25",
- "timeLatestLimit": "07:25",
- "preferenceWeights": [
- {
- "workerID": 2147483647,
- "value": 1.7e+308
}
], - "genderWeights": [
- {
- "gender": 3,
- "value": 1.7e+308
}
], - "prefGender": 3,
- "group": 2147483647,
- "desiredGroup": 2147483647,
- "timePriority": 5,
- "initassignedWorker": 2147483647,
- "weakPredecessorTasks": [
- 2147483647
], - "taskGaps": [
- {
- "taskID": 2147483647,
- "minGap": -2147483648,
- "maxGap": -2147483648
}
]
}
], - "workers": [
- {
- "workerID": 2147483647,
- "hasShortHistory": true,
- "hasNoHistory": true
}
]
}
}, - "info": {
- "text": "string",
- "balance": "string",
- "dist": "string",
- "pref": "string",
- "relax": "string",
- "time": "string",
- "feasible": true,
- "constructionSites": null
}, - "anomalies": [
- {
- "anomalyKey": "string",
- "severity": "high",
- "text": "string",
- "taskID": 2147483647,
- "workerID": 2147483647
}
], - "backendVersion": {
- "version": "v1.0.0",
- "optVersion": "1970-01-01_0p0",
- "rev": "strings",
- "schema": "v1.2.3"
}, - "recovery": [
- 2147483647
], - "developerOptions": {
- "recovery": [
- 2147483647
], - "debugSolution": "string"
}
}Same behavior as the GET request but returns no content for any of the responses.
| planID required | string Key returned in the 200/201 response of the POST request |
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
Get the currently deployed version.
Responses from this endpoint have a content size limit which depends on the used content-type of the response, which can be specified with the accept header. If the response size would exceed that limit, the endpoint returns code 409 instead. Responses of type application/json can include payloads of up to 6Mb, all other types can return up to 4.5Mb of (compressed) data.
| adiutaopt-version | string (optional) A specific version to process the request under. Valid versions can be retrieved with the /packages-list endpoint ( Using a specific version is not recommended for "general" application but for testing, debugging or other developer actions. Versions represent a specific state of the application, they cannot be changed, bug-fixed or extended in any way. For that reason, support for these requests may be limited. |
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
curl \ --request GET \ --url '[see url above]' \ --header 'Authorization: Bearer [ID-Token obtained from Authentication (JWT)]'
{- "schema": "v1.7.0",
- "version": "2024-10-01_0",
- "meta_data": "v19",
- "api_scripts": "v1.6.2"
}Same behavior as the GET request but returns no content for any of the responses.
| adiutaopt-version | string (optional) A specific version to process the request under. Valid versions can be retrieved with the /packages-list endpoint ( Using a specific version is not recommended for "general" application but for testing, debugging or other developer actions. Versions represent a specific state of the application, they cannot be changed, bug-fixed or extended in any way. For that reason, support for these requests may be limited. |
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
Get a list of all available packages. The Name of each package can be used in a POST request in header adiutaopt-version, the algorithm will then run on the specified version.
Responses from this endpoint have a content size limit which depends on the used content-type of the response, which can be specified with the accept header. If the response size would exceed that limit, the endpoint returns code 409 instead. Responses of type application/json can include payloads of up to 6Mb, all other types can return up to 4.5Mb of (compressed) data.
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
curl \ --request GET \ --url '[see url above]' \ --header 'Authorization: Bearer [ID-Token obtained from Authentication (JWT)]'
[- {
- "Name": "a6b69c77bedb7",
- "LastModified": "2024-08-16T12:41:09.000Z",
- "Content": {
- "schema": "v2.7.0",
- "version": "2024-10-01_0",
- "meta_data": "v26"
}
}, - {
- "Name": "d63ca460db7bc",
- "LastModified": "2024-08-16T09:16:09.000Z",
- "Content": {
- "schema": "v2.3.0",
- "version": "2024-10-01_0p0",
- "meta_data": "v26"
}
}
]Same behavior as the GET request but returns no content for any of the responses.
"application/json" (string) or "application/vnd.adiutabyte.adiutaopt.json+gzip" (string) or "application/vnd.adiutabyte.adiutaopt.json+deflate" (string) or "application/vnd.adiutabyte.adiutaopt.json+br" (string) (optional) The | |
"identity" (string) or "gzip" (string) or "deflate" (string) (optional) The |
A string consisting of three parts following the pattern "YYYY-MM-DD":
While the schema does not check for validity, the optimization algorithms do. Including invalid dates (e.g. 2020-02-31) leads to a validation error.
Examples:
"2020-04-10"Unsigned 64bit number with the upper limit of a signed 64bit number
1.7e+308Unsigned 32 bit integer with the upper limit of a signed 32bit integer
2147483647Unsigned 32 bit integer (not zero) with the upper limit of a signed 32bit integer
1| dateFrom required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... Planning horizon start, usually the earliest date on any of the tasks. |
| dateTo required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... Planning horizon end, usually the latest date on any of the tasks. |
| resCapacity | boolean Default: false Activate/Deactivate whether capacities should be considered in the optimization. |
| resCategory | boolean Default: false Activate/Deactivate whether category types should be considered in the optimization. |
| resQualification | boolean Default: false Activate/Deactivate whether qualifications should be considered in the optimization. |
| postProcessing | boolean Default: false Enables dynamic traffic for calculating travel times (e.g. rush hour). Recommended for use cases where such dynamic travel times actually make a difference, otherwise leave it at false or carefully evaluate outcomes. |
| accuracyMode | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 1 Manages a solution refinement process. An accuracy > 0.0 can improve the solution significantly but will take longer to calculate, effects increase with higher accuracyMode. |
| outputLanguage | integer (LanguageType) [ 0 .. 1 ] Default: 0 Defines which language should be used in the output. |
| tightSchedule | boolean Default: false If set to true, any buffer between tasks (time spent neither working, driving, nor on break) is avoided if possible. Tasks with a |
| tourStartsOnShiftStart | boolean Default: false Per default, the worker tour starts not at their |
| minTravelTime | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 A global lower limit to travel time, travel times below this will be raised. |
| travelTimeMin | integer (Integer_u32) [ 0 .. 2147483647 ] Deprecated Alias for |
| integrateDurationExtensions | boolean Deprecated |
| integrateGermanBreakRegulations | boolean Default: false Adds mandatory breaks to workers according to the German Working Time Act if set. Using manual breaks is recommended whenever possible. |
| enablePlanSplitting | boolean Deprecated Default: true |
| allowUnassignedTasks | boolean Default: false If this flag is set to false, all tasks will be assigned by the algorithm (for exceptions regarding unassignable tasks, see |
| removeInvalidTasks | boolean If this flag is set to false and the input data contains tasks that cannot be assigned to any worker (e.g. no worker has a qualification high enough for the task), an If this field is not set, it will assume the value of |
| useInitialClustering | boolean Default: false Use only clustering as a first optimization step instead of the default algorithms. Developer feature, use at your own risk! |
| dontOptimizeResets | boolean Default: false Per default, travel from and to capacity reset locations is part of the optimization. This option prevents considering these travels in the optimization. |
| minConcurrentSolutions | integer (Integer_u32_1) [ 1 .. 2147483647 ] Default: 1 Number of concurrently calculated solutions. Developer feature, use at your own risk! |
| minTaskDuration | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 Minimum value for an input task's |
| useDensityClustering | boolean Default: false Uses a location-based density-clustering to restrict the possible solution space, potentially saving runtime and improving solution quality under certain conditions. |
| disableTaskTimeWindowRelaxation | boolean Default: false Per default, time windows of tasks are slightly relaxed before optimization depending on their |
{- "dateFrom": "2020-04-10",
- "dateTo": "2020-04-10",
- "resCapacity": false,
- "resCategory": false,
- "resQualification": false,
- "postProcessing": false,
- "accuracyMode": 1.7e+308,
- "outputLanguage": 1,
- "tightSchedule": false,
- "tourStartsOnShiftStart": false,
- "minTravelTime": 2147483647,
- "travelTimeMin": 2147483647,
- "integrateDurationExtensions": true,
- "integrateGermanBreakRegulations": false,
- "enablePlanSplitting": true,
- "allowUnassignedTasks": false,
- "removeInvalidTasks": true,
- "useInitialClustering": false,
- "dontOptimizeResets": false,
- "minConcurrentSolutions": 1,
- "minTaskDuration": 2147483647,
- "useDensityClustering": false,
- "disableTaskTimeWindowRelaxation": false
}| preset | integer [ 0 .. 4 ] Sets the parameters to a predefined preset. Additionally specified parameters will override the preset parameters. Preset descriptions: Preset 0 (Eco Oriented):
Preset 1 (Worker Oriented):
Preset 2 (Customer Oriented):
Preset 3 (Fleet Oriented):
Preset 4 (Random):
Preset 4 is a dummy preset that must be used for testing only and never in production environments. Due to the random nature of the preset, we are not able to provide full support for any optimization request using this preset. |
| fairDistribution | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Distribute the tasks fairly among the workers. A fair distribution is one where every worker has the same ratio of total task duration to shift length. Consequently, only tasks with non-zero durations affect the fair distribution. |
| localityClustering | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Build local clusters for the workers to work within if possible. |
| shortPaths | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Calculate a solution with low total travel time. |
| timeliness | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Optimize towards fulfilling time windows. |
| travelTimeRelax | integer (Integer_0_9) [ 0 .. 9 ] Deprecated An integer 0-9 |
| workerPrefs | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Try to satisfy any tasks' worker preferences. |
| workerReduction | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Reduce the number of necessary workers by creating imbalanced schedules with respect to task duration. This requires the tasks to have durations greater than zero. |
| workTimeRelax | integer (Integer_0_9) [ 0 .. 9 ] Deprecated An integer 0-9 |
| genderPref | integer (Integer_0_9) [ 0 .. 9 ] Deprecated An integer 0-9 |
| profitability | integer (Integer_0_9) [ 0 .. 9 ] Default: 0 Optimize towards high profitability. This requires workers to have costs or, if |
{- "preset": 4,
- "fairDistribution": 9,
- "localityClustering": 9,
- "shortPaths": 9,
- "timeliness": 9,
- "travelTimeRelax": 9,
- "workerPrefs": 9,
- "workerReduction": 9,
- "workTimeRelax": 9,
- "genderPref": 9,
- "profitability": 9
}A string of either format "hh:mm" or "-hh:mm":
Times are always interpreted relative to a date in the same object as the Time field. This allows times to exceed 24h or even become negative, as the value gets "added" to midnight of the date. For example, the following times applied to the respective date (in Date format) are equivalent:
"07:25"| lat required | number [ -90 .. 90 ] latitude |
| lng required | number [ -180 .. 180 ] longitude |
{- "lat": -90,
- "lng": -180
}Unsigned 32 bit integer with the upper limit of a signed 32bit integer
[- 2147483647
]Values are:
3| taskID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of this task. Task IDs need to be unique for all tasks in the input data |
| externalID | string A string to identify the task in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
| clientID | integer (Integer_u32) [ 0 .. 2147483647 ] A unique id to identify a client to whom different tasks can be attributed. Only use when instructed to do so. |
| baseScheduleTime | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ A time for identifying history assignments. Only use when instructed to do so. |
| date required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... The date for the day to be planned. |
| duration | integer (Integer_u32) [ 0 .. 2147483647 ] The time in minutes it takes to complete this task. Exactly one of |
| durationInSeconds | integer (Integer_u32) [ 0 .. 2147483647 ] The time in seconds it takes to complete this task. Exactly one of |
| timeEarliest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The earliest possible starting time of this task. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| timeLatest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The latest time at which this task should be finished. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| forbTimeEarliest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The start of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after integrations. This is a strict restriction and might fail validation if it is impossible to keep. |
| forbTimeLatest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The end of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after it. This is a strict restriction and might fail validation if it is impossible to keep. |
| timePriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 The priority of the time window:
Tasks with high time priority are more likely to get scheduled inside their given time window. Tasks with time priority 0 completely ignore their given time window. For tasks with a |
object (GeoCoord) The coordinates where the task has to be performed. Not defining a location will allow the task to be performed anywhere. | |
| locationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
object (GeoCoord) The coordinates where the task will end. Moving between | |
| finishLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
| rotatable | boolean Default: false If set to true, the algorithm can swap |
| description | string Deprecated |
| prefWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of preferred workers. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| unpreferredWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of workers to which an assignment is undesirable but not forbidden. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| antiWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated Alias for |
| forbWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of forbidden workers. This is a strict restriction and might fail validation if it is impossible to keep. |
| capacity | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The capacity requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| weight | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The weight requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| volume | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The volume requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] The minimum qualification of the employee required to perform the task (e.g. years of experience). The algorithm tries to avoid high discrepancies between worker and task qualification. The importance of avoiding overqualification depends on the parameter This is a strict restriction and might fail validation if it is impossible to keep. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill all of these categories This is a strict restriction and might fail validation if it is impossible to keep. |
| antiCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Categories of other tasks which exclude joint performance with this task. This is a strict restriction and might fail validation if it is impossible to keep. |
| exchangeableCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill at least one of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| twinCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The assigned worker will need to perform at least two tasks with each of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The When there are multiple workers with the same
This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedOrder | integer (Integer_s32) [ -2147483648 .. 2147483647 ] Tasks with a value > 0 will be assigned to the start of the tour of the This is a strict restriction and might fail validation if it is impossible to keep. |
| desiredWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the worker who is desired (strong preference) to take over this task. This is a preference and can be violated for other preferences or restrictions. |
| initassignedOrder | integer (Integer_u32) [ 0 .. 2147483647 ] The order within the initially assigned worker's tour. Requires |
| initassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] A hint for large optimization data sets, e.g. solution data from a previous optimization request. The field can also be used for |
| initassignedShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] A |
| prefGender | integer (GenderType) [ 0 .. 3 ] The assigned worker needs to have this gender. This is a weak restriction and will be considered only if it is possible to keep it. It will not fail the validation if it is impossible to keep it. |
| precedingTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Tasks in this list and this task will be performed by the same worker and all listed tasks will have to be finished before this task starts. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] One of these tasks has be carried out right before this task by the same worker. Putting multiple values in the array does not mean they are carried out in that order - if you want to have a predecessor-chain, you need to set the direct predecessor on each task in the chain (see examples). Do not put redundant values in here, as having more than one value in the array has negative impact on performance and solution quality. This is a strict restriction and might fail validation if it is impossible to keep. |
| revenue | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The revenue which will be achieved with this task. |
| travelTimeExtra | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 Fixed amount of time added to this task's travel time. |
| group | integer (Integer_u32) [ 0 .. 2147483647 ] A group ID. Tasks with the same group ID get assigned to the same worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorGroup | integer (Integer_u32) [ 0 .. 2147483647 ] Tasks with the same 'predecessorGroup' ID will be scheduled as a single batch of tasks without any tasks with different or no predecessorGroupIDs scheduled between them. The order of tasks within a batch can vary. This is a strict restriction and might fail validation if it is impossible to keep. |
| assignmentPriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 A priority for assignment (see
If For tasks with an |
| ignoreHistory | boolean Default: false If true, this tasks get ignored in all history analysis |
{- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false
}An integer representing the vehicle type:
4| workerID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the worker. Multiple workers with identical ID are allowed, those represent multiple "shifts" of the same person. |
| shiftID | integer (Integer_u32) [ 0 .. 2147483647 ] A second ID in case there are multiple workers with the same |
| externalID | string A string to identify the worker in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
object (GeoCoord) The location where the worker begins their working day. Leaving it empty means the worker starts on the location of their first task, this can be used in situations where workers start their day at home and any travel time to their first client does not count as working time. | |
| startLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as startLocation. |
object (GeoCoord) The location where the worker finishes their working day. Leaving it empty means the worker will end their tour at their last task, this can be used in situations where travel time home does not count as working time. | |
| endLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
| shiftDate required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... The date of this shift. |
| shiftStart required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time this shift starts. This is a preference and can be violated for other preferences or restrictions. |
| shiftEnd required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time this shift ends. This is a preference and can be violated for other preferences or restrictions. |
| shiftPriority | integer (Integer_0_3) [ 0 .. 3 ] Default: 1 The priority to keep the defined shift start and end times:
|
| hoursPerWeek | integer [ 1 .. 90 ] Deprecated |
| capacity | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The available capacity of the worker or their vehicle. |
| capacityInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially occupied capacity on shift start of this worker or their vehicle. |
| capacityResetLocationSiteIDs | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] If during the tour the worker capacity gets filled up and this field is set, the worker will travel to the best available location sites in the given list and unload all their stored |
| capacityResetDuration | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 The time in minutes needed for a capacity reset. |
| maxResets | integer (Integer_u32) [ 0 .. 2147483647 ] The maximum number of allowed capacity resets on this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| volume | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The available volume of the worker or their vehicle. |
| volumeInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially loaded volume on shift start of this worker or their vehicle. |
| weight | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The weight the worker or their vehicle is able to handle. |
| weightInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially loaded weight on shift start of this worker or their vehicle. |
| finalCapacityResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current capacity exceeds this threshold, a final reset is automatically added. |
| finalVolumeResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current weight exceeds this threshold, a final reset is automatically added. |
| finalWeightResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current volume exceeds this threshold, a final reset is automatically added. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] The qualification of the worker. Workers can perform any task with equal or lower qualification requirement, the optimizer tried to not "overqualify" workers for tasks by keeping worker and task qualification close. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The worker can only carry out tasks if he has each category the task requires. |
| desiredCategory | integer (Integer_u32) [ 0 .. 2147483647 ] The worker has a strong preference towards tasks with this category. The categories listed here is automatically considered valid as if they're listed in This is a preference and can be violated for other preferences or restrictions. |
| prefCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Tasks with any of these categories will be preferred by this worker. Categories listed here are automatically considered valid as if they're listed in This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| breakLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] Deprecated Unsigned 32 bit integer with the upper limit of a signed 32bit integer |
| breakStartEarliest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The earliest start of the break a worker has to do. This is a preference and can be violated for other preferences or restrictions. |
| breakEndLatest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The latest end of the break a worker has to do. This is a preference and can be violated for other preferences or restrictions. |
| breakDuration | integer (Integer_u32) [ 0 .. 2147483647 ] The duration in minutes of the break. |
| noAutomaticBreak | boolean Default: false If |
| vehicleType | integer (MixedPlannerVehicleType) [ 0 .. 4 ] Default: 0 The vehicle type used by this worker. |
| gender | integer (GenderType) [ 0 .. 3 ] The gender type of the worker. |
| costsPerKM | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The costs per km for this worker (e.g. fuel costs). |
| costsPerMinute | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The costs per minute working time (carrying out tasks) for this worker (e.g. monthly salary converted to minutes). |
| costsInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 Costs that occur if there is at least one task assigned to the worker. |
| maxDesiredTotalDistance | number (Number_u64) [ 0 .. 1.7e+308 ] The maximum total travel distance per shift that a worker wants to perform. This is a preference and can be violated for other preferences or restrictions. |
| maxDesiredSingleDistance | number (Number_u64) [ 0 .. 1.7e+308 ] The maximum travel distance for each individual travel that a worker wants to perform. This is a preference and can be violated for other preferences or restrictions. |
| dontVary | boolean Default: false A worker with This is a strict restriction and might fail validation if it is impossible to keep. |
| dontAlter | boolean Default: false Workers with This is a strict restriction and might fail validation if it is impossible to keep. |
| allowPreassignedTasksOnly | boolean Default: false If this flag is true, only tasks preassigned to this worker can be assigned to it. Tasks not preassigned to this worker cannot be assigned to it. This is a strict restriction and might fail validation if it is impossible to keep. |
| expectedWorkingMinutes | integer (Integer_u32) [ 0 .. 2147483647 ] The target value for working time ( This is a preference and can be violated for other preferences or restrictions. |
| maxAssignableTasks | integer (Integer_u32) [ 0 .. 2147483647 ] The maximum number of tasks that can be assigned to this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| minAssignableTasks | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 The minimum number of tasks that must be assigned to this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
{- "workerID": 2147483647,
- "shiftID": 2147483647,
- "externalID": "string",
- "startLocation": {
- "lat": -90,
- "lng": -180
}, - "startLocationSiteID": 2147483647,
- "endLocation": {
- "lat": -90,
- "lng": -180
}, - "endLocationSiteID": 2147483647,
- "shiftDate": "2020-04-10",
- "shiftStart": "07:25",
- "shiftEnd": "07:25",
- "shiftPriority": 3,
- "hoursPerWeek": 1,
- "capacity": 1.7e+308,
- "capacityInitial": 1.7e+308,
- "capacityResetLocationSiteIDs": [
- 2147483647
], - "capacityResetDuration": 2147483647,
- "maxResets": 2147483647,
- "volume": 1.7e+308,
- "volumeInitial": 1.7e+308,
- "weight": 1.7e+308,
- "weightInitial": 1.7e+308,
- "finalCapacityResetThreshold": 1.7e+308,
- "finalVolumeResetThreshold": 1.7e+308,
- "finalWeightResetThreshold": 1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "desiredCategory": 2147483647,
- "prefCategories": [
- 2147483647
], - "breakLocationSiteID": 2147483647,
- "breakStartEarliest": "07:25",
- "breakEndLatest": "07:25",
- "breakDuration": 2147483647,
- "noAutomaticBreak": false,
- "vehicleType": 4,
- "gender": 3,
- "costsPerKM": 1.7e+308,
- "costsPerMinute": 1.7e+308,
- "costsInitial": 1.7e+308,
- "maxDesiredTotalDistance": 1.7e+308,
- "maxDesiredSingleDistance": 1.7e+308,
- "dontVary": false,
- "dontAlter": false,
- "allowPreassignedTasksOnly": false,
- "expectedWorkingMinutes": 2147483647,
- "maxAssignableTasks": 2147483647,
- "minAssignableTasks": 2147483647
}| locationSiteID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site. IDs need to be unique among all |
required | object (GeoCoord) Coordinates of the location site. |
| externalID | string A string to identify the location site in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
{- "locationSiteID": 2147483647,
- "location": {
- "lat": -90,
- "lng": -180
}, - "externalID": "string"
}| date required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... Date this assignment was on. |
| baseScheduleTime | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ A baseline orientation when the corresponding task was supposed to be scheduled. |
| baseWorker | integer (Integer_u32) [ 0 .. 2147483647 ] A baseline orientation for the worker to be assigned. |
| timeScheduled | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time the corresponding task was scheduled (meaning the time the final plan had this task scheduled on, not to be confused with |
| assignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The worker the corresponding task was assigned to in the final planned version. |
| assignedShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the assigned shift of the assigned worker. |
| timeVariance | integer (Integer_u32) [ 0 .. 2147483647 ] The time variance the corresponding task was scheduled with at the time. |
| timePriority | integer (Integer_0_5) [ 0 .. 5 ] The |
| timeScheduledAutomatically | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time the corresponding task was scheduled on by the optimizer at the time. |
| assignedWorkerAutomatically | integer (Integer_u32) [ 0 .. 2147483647 ] The worker the corresponding task was assigned to by the optimizer at the time. |
| assignedShiftIDAutomatically | integer (Integer_u32) [ 0 .. 2147483647 ] The shift the corresponding task was assigned to by the optimizer at the time. |
| actualStartTime | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time the task was actually started, for instance as determined by mobile tracking. |
| actualWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The worker the task was actually carried out by, for instance as determined by mobile tracking. |
| actualShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] The shift the task was actually carried out on, for instance as determined by mobile tracking. |
| prevTask | integer (Integer_u32) [ 0 .. 2147483647 ] The task that was assigned directly before this task at the time. (If that task is present in either history or planning tasks). |
| prevTaskAutomatically | integer (Integer_u32) [ 0 .. 2147483647 ] Unsigned 32 bit integer with the upper limit of a signed 32bit integer |
| prevActualTask | integer (Integer_u32) [ 0 .. 2147483647 ] The task that was carried out directly before this task at the time. (If that task is present in either history or planning tasks) |
{- "date": "2020-04-10",
- "baseScheduleTime": "07:25",
- "baseWorker": 2147483647,
- "timeScheduled": "07:25",
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "timeVariance": 2147483647,
- "timePriority": 5,
- "timeScheduledAutomatically": "07:25",
- "assignedWorkerAutomatically": 2147483647,
- "assignedShiftIDAutomatically": 2147483647,
- "actualStartTime": "07:25",
- "actualWorker": 2147483647,
- "actualShiftID": 2147483647,
- "prevTask": 2147483647,
- "prevTaskAutomatically": 2147483647,
- "prevActualTask": 2147483647
}| taskID required | integer (Integer_u32) [ 0 .. 2147483647 ] Task ID for referencing task in planning tasks. |
| clientID required | integer (Integer_u32) [ 0 .. 2147483647 ] Client ID for referencing tasks in planning tasks. |
required | Array of objects (MixedPlannerHistoryAssignment) All considered historical assignments of this task. |
{- "taskID": 2147483647,
- "clientID": 2147483647,
- "scheduling": [
- {
- "date": "2020-04-10",
- "baseScheduleTime": "07:25",
- "baseWorker": 2147483647,
- "timeScheduled": "07:25",
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "timeVariance": 2147483647,
- "timePriority": 5,
- "timeScheduledAutomatically": "07:25",
- "assignedWorkerAutomatically": 2147483647,
- "assignedShiftIDAutomatically": 2147483647,
- "actualStartTime": "07:25",
- "actualWorker": 2147483647,
- "actualShiftID": 2147483647,
- "prevTask": 2147483647,
- "prevTaskAutomatically": 2147483647,
- "prevActualTask": 2147483647
}
]
}| workerID required | integer (Integer_u32) [ 0 .. 2147483647 ] ID of a worker that is not present in the input data. Has to be unique among all history workers. |
| gender | integer (GenderType) [ 0 .. 3 ] Same as in input worker. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] Same as in input worker. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Same as in input worker. |
{- "workerID": 2147483647,
- "gender": 3,
- "qualification": 2147483647,
- "categories": [
- 2147483647
]
}required | Array of objects (MixedPlannerHistoryTask) All tasks that are connected to tasks in the optimization either by |
required | Array of objects (MixedPlannerHistoryWorker) Workers that are not included in the optimization but are referenced in history-tasks, e.g. as |
{- "tasks": [
- {
- "taskID": 2147483647,
- "clientID": 2147483647,
- "scheduling": [
- {
- "date": "2020-04-10",
- "baseScheduleTime": "07:25",
- "baseWorker": 2147483647,
- "timeScheduled": "07:25",
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "timeVariance": 2147483647,
- "timePriority": 5,
- "timeScheduledAutomatically": "07:25",
- "assignedWorkerAutomatically": 2147483647,
- "assignedShiftIDAutomatically": 2147483647,
- "actualStartTime": "07:25",
- "actualWorker": 2147483647,
- "actualShiftID": 2147483647,
- "prevTask": 2147483647,
- "prevTaskAutomatically": 2147483647,
- "prevActualTask": 2147483647
}
]
}
], - "workers": [
- {
- "workerID": 2147483647,
- "gender": 3,
- "qualification": 2147483647,
- "categories": [
- 2147483647
]
}
]
}Array of objects (MixedPlannerTravelOverrideDense) Dense travel override to set distance matrix for the entire data set. | |
Array of objects (MixedPlannerTravelOverrideSparse) Sparse travel override to set individual distance matrix override for a few travels. |
{- "dense": [
- {
- "vehicleTypes": [
- 4
], - "travelTime": [
- 1.7e+308
], - "travelDistance": [
- 1.7e+308
]
}
], - "sparse": [
- {
- "sourceIDs": [
- 2147483647
], - "targetIDs": [
- 2147483647
], - "vehicleTypes": [
- 4
], - "travelTime": [
- 1.7e+308
], - "travelDistance": [
- 1.7e+308
]
}
]
}| type required | string Enum: "polygon" "polyline" Obstacle type, can be either a 1D-polyline or a 2D-polygon. Value: "polyline" |
required | Array of objects >= 2 items Coordinates of the polygon/polyline. |
| description | string Textual information to this obstacle. |
| factor | number (Number_u64) [ 0 .. 1.7e+308 ] Travel through this obstacle creates travel time increase by this factor. |
| restriction | number (Fraction) [ 0 .. 1 ] Travel through this obstacle is forbidden, regardless of which value is set. Should be used with 1.0. |
| travelTimeIncrease | number (Number_u64) [ 0 .. 1.7e+308 ] Flat travel time increase in minutes when traveling through obstacle. |
{- "type": "polygon",
- "points": [
- {
- "lat": -90,
- "lng": -180
}
], - "description": "string",
- "factor": 1.7e+308,
- "restriction": 1,
- "travelTimeIncrease": 1.7e+308
}| recovery | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] [developer feature] Contains recovery data that can be used to reproduce timeout behaviour. |
| debugSolution | string [developer feature] Contains data for (re-)producing specific solutions. |
{- "recovery": [
- 2147483647
], - "debugSolution": "string"
}object (Client) Contains information about the client which sends this request. | |
required | object (MixedPlannerMeta) Meta information about what to consider in the optimization. |
required | object (MixedPlannerOptimizationParameters) Parameters for the optimizer. |
required | Array of objects (MixedPlannerInputTask) Array of tasks to be planned by the optimizer. |
required | Array of objects (MixedPlannerInputWorker) Array of available workers. |
Array of objects (MixedPlannerLocationSite) Array of available location sites. | |
object (MixedPlannerHistory) History data the optimizer can learn from to apply to the current request. History analysis is done differently for each of our customers, if you know what issues you want to address/ what results you want to see from such methods, please contact us so we can set up a solution. | |
object (MixedPlannerTravelOverride) Manual distance matrix data | |
Array of objects or objects (MixedPlannerObstacle) Deprecated Obstacles for the travel calculation. | |
| recovery | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated List of ids. |
object (DeveloperOptions) Options for developers. Do not use! |
{- "client": {
- "clientID": "logisticscenter_a"
}, - "meta": {
- "dateFrom": "2020-04-10",
- "dateTo": "2020-04-10",
- "resCapacity": false,
- "resCategory": false,
- "resQualification": false,
- "postProcessing": false,
- "accuracyMode": 1.7e+308,
- "outputLanguage": 1,
- "tightSchedule": false,
- "tourStartsOnShiftStart": false,
- "minTravelTime": 2147483647,
- "travelTimeMin": 2147483647,
- "integrateDurationExtensions": true,
- "integrateGermanBreakRegulations": false,
- "enablePlanSplitting": true,
- "allowUnassignedTasks": false,
- "removeInvalidTasks": true,
- "useInitialClustering": false,
- "dontOptimizeResets": false,
- "minConcurrentSolutions": 1,
- "minTaskDuration": 2147483647,
- "useDensityClustering": false,
- "disableTaskTimeWindowRelaxation": false
}, - "parameters": {
- "preset": 4,
- "fairDistribution": 9,
- "localityClustering": 9,
- "shortPaths": 9,
- "timeliness": 9,
- "travelTimeRelax": 9,
- "workerPrefs": 9,
- "workerReduction": 9,
- "workTimeRelax": 9,
- "genderPref": 9,
- "profitability": 9
}, - "tasks": [
- {
- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false
}
], - "workers": [
- {
- "workerID": 2147483647,
- "shiftID": 2147483647,
- "externalID": "string",
- "startLocation": {
- "lat": -90,
- "lng": -180
}, - "startLocationSiteID": 2147483647,
- "endLocation": {
- "lat": -90,
- "lng": -180
}, - "endLocationSiteID": 2147483647,
- "shiftDate": "2020-04-10",
- "shiftStart": "07:25",
- "shiftEnd": "07:25",
- "shiftPriority": 3,
- "hoursPerWeek": 1,
- "capacity": 1.7e+308,
- "capacityInitial": 1.7e+308,
- "capacityResetLocationSiteIDs": [
- 2147483647
], - "capacityResetDuration": 2147483647,
- "maxResets": 2147483647,
- "volume": 1.7e+308,
- "volumeInitial": 1.7e+308,
- "weight": 1.7e+308,
- "weightInitial": 1.7e+308,
- "finalCapacityResetThreshold": 1.7e+308,
- "finalVolumeResetThreshold": 1.7e+308,
- "finalWeightResetThreshold": 1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "desiredCategory": 2147483647,
- "prefCategories": [
- 2147483647
], - "breakLocationSiteID": 2147483647,
- "breakStartEarliest": "07:25",
- "breakEndLatest": "07:25",
- "breakDuration": 2147483647,
- "noAutomaticBreak": false,
- "vehicleType": 4,
- "gender": 3,
- "costsPerKM": 1.7e+308,
- "costsPerMinute": 1.7e+308,
- "costsInitial": 1.7e+308,
- "maxDesiredTotalDistance": 1.7e+308,
- "maxDesiredSingleDistance": 1.7e+308,
- "dontVary": false,
- "dontAlter": false,
- "allowPreassignedTasksOnly": false,
- "expectedWorkingMinutes": 2147483647,
- "maxAssignableTasks": 2147483647,
- "minAssignableTasks": 2147483647
}
], - "locationSites": [
- {
- "locationSiteID": 2147483647,
- "location": {
- "lat": -90,
- "lng": -180
}, - "externalID": "string"
}
], - "history": {
- "tasks": [
- {
- "taskID": 2147483647,
- "clientID": 2147483647,
- "scheduling": [
- {
- "date": "2020-04-10",
- "baseScheduleTime": "07:25",
- "baseWorker": 2147483647,
- "timeScheduled": "07:25",
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "timeVariance": 2147483647,
- "timePriority": 5,
- "timeScheduledAutomatically": "07:25",
- "assignedWorkerAutomatically": 2147483647,
- "assignedShiftIDAutomatically": 2147483647,
- "actualStartTime": "07:25",
- "actualWorker": 2147483647,
- "actualShiftID": 2147483647,
- "prevTask": 2147483647,
- "prevTaskAutomatically": 2147483647,
- "prevActualTask": 2147483647
}
]
}
], - "workers": [
- {
- "workerID": 2147483647,
- "gender": 3,
- "qualification": 2147483647,
- "categories": [
- 2147483647
]
}
]
}, - "travelOverride": {
- "dense": [
- {
- "vehicleTypes": [
- 4
], - "travelTime": [
- 1.7e+308
], - "travelDistance": [
- 1.7e+308
]
}
], - "sparse": [
- {
- "sourceIDs": [
- 2147483647
], - "targetIDs": [
- 2147483647
], - "vehicleTypes": [
- 4
], - "travelTime": [
- 1.7e+308
], - "travelDistance": [
- 1.7e+308
]
}
]
}, - "obstacles": [
- {
- "description": "string",
- "factor": 1.7e+308,
- "restriction": 1,
- "travelTimeIncrease": 1.7e+308,
- "type": "polyline",
- "points": [
- {
- "lat": -90,
- "lng": -180
}
]
}
], - "recovery": [
- 2147483647
], - "developerOptions": {
- "recovery": [
- 2147483647
], - "debugSolution": "string"
}
}| keyword required | string Validation keyword. |
| instancePath required | string JSON Pointer to the location in the data instance (e.g., |
| schemaPath required | string JSON Pointer to the location of the failing keyword in the schema |
| params required | object Params property is the object with the additional information about error. It can be used to generate error messages (e.g., using ajv-i18n package). |
| propertyName | string Set for errors in |
| message | string The error message. |
| schema | any The value of the failing keyword in the schema. |
| parentSchema | object The schema containing the keyword. |
| data | any The data validated by the keyword. |
{- "keyword": "string",
- "instancePath": "string",
- "schemaPath": "string",
- "params": { },
- "propertyName": "string",
- "message": "string",
- "schema": null,
- "parentSchema": { },
- "data": null
}| taskID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of this task. Task IDs need to be unique for all tasks in the input data |
| externalID | string A string to identify the task in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
| clientID | integer (Integer_u32) [ 0 .. 2147483647 ] A unique id to identify a client to whom different tasks can be attributed. Only use when instructed to do so. |
| baseScheduleTime | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ A time for identifying history assignments. Only use when instructed to do so. |
| date required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... The date for the day to be planned. |
| duration | integer (Integer_u32) [ 0 .. 2147483647 ] The time in minutes it takes to complete this task. Exactly one of |
| durationInSeconds | integer (Integer_u32) [ 0 .. 2147483647 ] The time in seconds it takes to complete this task. Exactly one of |
| timeEarliest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The earliest possible starting time of this task. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| timeLatest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The latest time at which this task should be finished. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| forbTimeEarliest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The start of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after integrations. This is a strict restriction and might fail validation if it is impossible to keep. |
| forbTimeLatest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The end of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after it. This is a strict restriction and might fail validation if it is impossible to keep. |
| timePriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 The priority of the time window:
Tasks with high time priority are more likely to get scheduled inside their given time window. Tasks with time priority 0 completely ignore their given time window. For tasks with a |
object (GeoCoord) The coordinates where the task has to be performed. Not defining a location will allow the task to be performed anywhere. | |
| locationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
object (GeoCoord) The coordinates where the task will end. Moving between | |
| finishLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
| rotatable | boolean Default: false If set to true, the algorithm can swap |
| description | string Deprecated |
| prefWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of preferred workers. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| unpreferredWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of workers to which an assignment is undesirable but not forbidden. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| antiWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated Alias for |
| forbWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of forbidden workers. This is a strict restriction and might fail validation if it is impossible to keep. |
| capacity | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The capacity requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| weight | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The weight requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| volume | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The volume requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] The minimum qualification of the employee required to perform the task (e.g. years of experience). The algorithm tries to avoid high discrepancies between worker and task qualification. The importance of avoiding overqualification depends on the parameter This is a strict restriction and might fail validation if it is impossible to keep. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill all of these categories This is a strict restriction and might fail validation if it is impossible to keep. |
| antiCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Categories of other tasks which exclude joint performance with this task. This is a strict restriction and might fail validation if it is impossible to keep. |
| exchangeableCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill at least one of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| twinCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The assigned worker will need to perform at least two tasks with each of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The When there are multiple workers with the same
This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedOrder | integer (Integer_s32) [ -2147483648 .. 2147483647 ] Tasks with a value > 0 will be assigned to the start of the tour of the This is a strict restriction and might fail validation if it is impossible to keep. |
| desiredWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the worker who is desired (strong preference) to take over this task. This is a preference and can be violated for other preferences or restrictions. |
| initassignedOrder | integer (Integer_u32) [ 0 .. 2147483647 ] The order within the initially assigned worker's tour. Requires |
| initassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] A hint for large optimization data sets, e.g. solution data from a previous optimization request. The field can also be used for |
| initassignedShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] A |
| prefGender | integer (GenderType) [ 0 .. 3 ] The assigned worker needs to have this gender. This is a weak restriction and will be considered only if it is possible to keep it. It will not fail the validation if it is impossible to keep it. |
| precedingTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Tasks in this list and this task will be performed by the same worker and all listed tasks will have to be finished before this task starts. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] One of these tasks has be carried out right before this task by the same worker. Putting multiple values in the array does not mean they are carried out in that order - if you want to have a predecessor-chain, you need to set the direct predecessor on each task in the chain (see examples). Do not put redundant values in here, as having more than one value in the array has negative impact on performance and solution quality. This is a strict restriction and might fail validation if it is impossible to keep. |
| revenue | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The revenue which will be achieved with this task. |
| travelTimeExtra | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 Fixed amount of time added to this task's travel time. |
| group | integer (Integer_u32) [ 0 .. 2147483647 ] A group ID. Tasks with the same group ID get assigned to the same worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorGroup | integer (Integer_u32) [ 0 .. 2147483647 ] Tasks with the same 'predecessorGroup' ID will be scheduled as a single batch of tasks without any tasks with different or no predecessorGroupIDs scheduled between them. The order of tasks within a batch can vary. This is a strict restriction and might fail validation if it is impossible to keep. |
| assignmentPriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 A priority for assignment (see
If For tasks with an |
| ignoreHistory | boolean Default: false If true, this tasks get ignored in all history analysis |
| timeScheduled required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The planned time to start this task by the assigned worker. |
| timeWindowViolation | integer (Integer_s32) [ -2147483648 .. 2147483647 ] If the task is scheduled outside its time window, this value displays the discrepancy in minutes - the value is < 0 if the task was scheduled earlier than its time window and > 0 otherwise. If the task is scheduled within its time window, the field does not get added. Examples:
|
| travelTime required | integer (Integer_u32) [ 0 .. 2147483647 ] The time in minutes needed to travel from the previous task to this task. If a reset is performed ( |
| travelDistance required | number (Number_u64) [ 0 .. 1.7e+308 ] The distance in km needed to travel from the previous task to this task. The same rules as |
| assignedWorker required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID ( |
| assignedShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] The |
| finalassignedOrder required | integer (Integer_u32_1) [ 1 .. 2147483647 ] The order number within the assigned tour.. |
| info required | string Additional information about the task. |
| allowedWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A list of all workers ( |
| profit required | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] The profit the task creates (revenue - costs). |
| performResetBeforeAtID | integer (Integer_u32) [ 0 .. 2147483647 ] The id of the location site which will be visited to reset |
| travelTimeToReset | integer (Integer_u32) [ 0 .. 2147483647 ] If a capacity reset is performed right before this task ( |
| travelDistanceToReset | number (Number_u64) [ 0 .. 1.7e+308 ] If a capacity reset is performed right before this task ( |
| rotated | boolean If true, the rotation described in |
| gapBeforeTask | integer (Integer_u32) [ 0 .. 2147483647 ] The "empty" time between this task and the one before it (time not covered by the task, travel, capacity reset or break). If this task is the first on the assigned worker and |
{- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false,
- "timeScheduled": "07:25",
- "timeWindowViolation": -2147483648,
- "travelTime": 2147483647,
- "travelDistance": 1.7e+308,
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "finalassignedOrder": 1,
- "info": "string",
- "allowedWorkers": [
- 2147483647
], - "profit": -1.7e+308,
- "performResetBeforeAtID": 2147483647,
- "travelTimeToReset": 2147483647,
- "travelDistanceToReset": 1.7e+308,
- "rotated": true,
- "gapBeforeTask": 2147483647
}| taskID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of this task. Task IDs need to be unique for all tasks in the input data |
| externalID | string A string to identify the task in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
| clientID | integer (Integer_u32) [ 0 .. 2147483647 ] A unique id to identify a client to whom different tasks can be attributed. Only use when instructed to do so. |
| baseScheduleTime | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ A time for identifying history assignments. Only use when instructed to do so. |
| date required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... The date for the day to be planned. |
| duration | integer (Integer_u32) [ 0 .. 2147483647 ] The time in minutes it takes to complete this task. Exactly one of |
| durationInSeconds | integer (Integer_u32) [ 0 .. 2147483647 ] The time in seconds it takes to complete this task. Exactly one of |
| timeEarliest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The earliest possible starting time of this task. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| timeLatest required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The latest time at which this task should be finished. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| forbTimeEarliest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The start of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after integrations. This is a strict restriction and might fail validation if it is impossible to keep. |
| forbTimeLatest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The end of the forbidden time window. Tasks will not be carried out in the forbidden time window and will be scheduled either completely before or after it. This is a strict restriction and might fail validation if it is impossible to keep. |
| timePriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 The priority of the time window:
Tasks with high time priority are more likely to get scheduled inside their given time window. Tasks with time priority 0 completely ignore their given time window. For tasks with a |
object (GeoCoord) The coordinates where the task has to be performed. Not defining a location will allow the task to be performed anywhere. | |
| locationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
object (GeoCoord) The coordinates where the task will end. Moving between | |
| finishLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
| rotatable | boolean Default: false If set to true, the algorithm can swap |
| description | string Deprecated |
| prefWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of preferred workers. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| unpreferredWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of workers to which an assignment is undesirable but not forbidden. This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| antiWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated Alias for |
| forbWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The IDs of forbidden workers. This is a strict restriction and might fail validation if it is impossible to keep. |
| capacity | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The capacity requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| weight | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The weight requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| volume | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] Default: 0 The volume requirement of this task, which the assigned worker will need to provide. This is a strict restriction and might fail validation if it is impossible to keep. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] The minimum qualification of the employee required to perform the task (e.g. years of experience). The algorithm tries to avoid high discrepancies between worker and task qualification. The importance of avoiding overqualification depends on the parameter This is a strict restriction and might fail validation if it is impossible to keep. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill all of these categories This is a strict restriction and might fail validation if it is impossible to keep. |
| antiCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Categories of other tasks which exclude joint performance with this task. This is a strict restriction and might fail validation if it is impossible to keep. |
| exchangeableCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A suitable worker has to fulfill at least one of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| twinCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The assigned worker will need to perform at least two tasks with each of these categories. This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The When there are multiple workers with the same
This is a strict restriction and might fail validation if it is impossible to keep. |
| preassignedOrder | integer (Integer_s32) [ -2147483648 .. 2147483647 ] Tasks with a value > 0 will be assigned to the start of the tour of the This is a strict restriction and might fail validation if it is impossible to keep. |
| desiredWorker | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the worker who is desired (strong preference) to take over this task. This is a preference and can be violated for other preferences or restrictions. |
| initassignedOrder | integer (Integer_u32) [ 0 .. 2147483647 ] The order within the initially assigned worker's tour. Requires |
| initassignedWorker | integer (Integer_u32) [ 0 .. 2147483647 ] A hint for large optimization data sets, e.g. solution data from a previous optimization request. The field can also be used for |
| initassignedShiftID | integer (Integer_u32) [ 0 .. 2147483647 ] A |
| prefGender | integer (GenderType) [ 0 .. 3 ] The assigned worker needs to have this gender. This is a weak restriction and will be considered only if it is possible to keep it. It will not fail the validation if it is impossible to keep it. |
| precedingTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Tasks in this list and this task will be performed by the same worker and all listed tasks will have to be finished before this task starts. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorTasks | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] One of these tasks has be carried out right before this task by the same worker. Putting multiple values in the array does not mean they are carried out in that order - if you want to have a predecessor-chain, you need to set the direct predecessor on each task in the chain (see examples). Do not put redundant values in here, as having more than one value in the array has negative impact on performance and solution quality. This is a strict restriction and might fail validation if it is impossible to keep. |
| revenue | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The revenue which will be achieved with this task. |
| travelTimeExtra | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 Fixed amount of time added to this task's travel time. |
| group | integer (Integer_u32) [ 0 .. 2147483647 ] A group ID. Tasks with the same group ID get assigned to the same worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| predecessorGroup | integer (Integer_u32) [ 0 .. 2147483647 ] Tasks with the same 'predecessorGroup' ID will be scheduled as a single batch of tasks without any tasks with different or no predecessorGroupIDs scheduled between them. The order of tasks within a batch can vary. This is a strict restriction and might fail validation if it is impossible to keep. |
| assignmentPriority | integer (Integer_0_5) [ 0 .. 5 ] Default: 1 A priority for assignment (see
If For tasks with an |
| ignoreHistory | boolean Default: false If true, this tasks get ignored in all history analysis |
| info required | string May contain some information about the task, will give a reason as to why this task is unassigned. |
| allowedWorkers | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] A list of all workers ( |
{- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false,
- "info": "string",
- "allowedWorkers": [
- 2147483647
]
}| workerID required | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the worker. Multiple workers with identical ID are allowed, those represent multiple "shifts" of the same person. |
| shiftID | integer (Integer_u32) [ 0 .. 2147483647 ] A second ID in case there are multiple workers with the same |
| externalID | string A string to identify the worker in the solution. Cannot be used for reference in the input data or the optimizer, it only serves as a helping tool for integrations. |
object (GeoCoord) The location where the worker begins their working day. Leaving it empty means the worker starts on the location of their first task, this can be used in situations where workers start their day at home and any travel time to their first client does not count as working time. | |
| startLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as startLocation. |
object (GeoCoord) The location where the worker finishes their working day. Leaving it empty means the worker will end their tour at their last task, this can be used in situations where travel time home does not count as working time. | |
| endLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] The ID of the location site that will be used as |
| shiftDate required | string (Date) ^[0-9]{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][0-9... The date of this shift. |
| shiftStart required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time this shift starts. This is a preference and can be violated for other preferences or restrictions. |
| shiftEnd required | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time this shift ends. This is a preference and can be violated for other preferences or restrictions. |
| shiftPriority | integer (Integer_0_3) [ 0 .. 3 ] Default: 1 The priority to keep the defined shift start and end times:
|
| hoursPerWeek | integer [ 1 .. 90 ] Deprecated |
| capacity | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The available capacity of the worker or their vehicle. |
| capacityInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially occupied capacity on shift start of this worker or their vehicle. |
| capacityResetLocationSiteIDs | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] If during the tour the worker capacity gets filled up and this field is set, the worker will travel to the best available location sites in the given list and unload all their stored |
| capacityResetDuration | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 The time in minutes needed for a capacity reset. |
| maxResets | integer (Integer_u32) [ 0 .. 2147483647 ] The maximum number of allowed capacity resets on this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| volume | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The available volume of the worker or their vehicle. |
| volumeInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially loaded volume on shift start of this worker or their vehicle. |
| weight | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The weight the worker or their vehicle is able to handle. |
| weightInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The initially loaded weight on shift start of this worker or their vehicle. |
| finalCapacityResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current capacity exceeds this threshold, a final reset is automatically added. |
| finalVolumeResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current weight exceeds this threshold, a final reset is automatically added. |
| finalWeightResetThreshold | number (Number_u64) [ 0 .. 1.7e+308 ] If at the end of the worker's tour the current volume exceeds this threshold, a final reset is automatically added. |
| qualification | integer (Integer_u32) [ 0 .. 2147483647 ] The qualification of the worker. Workers can perform any task with equal or lower qualification requirement, the optimizer tried to not "overqualify" workers for tasks by keeping worker and task qualification close. |
| categories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] The worker can only carry out tasks if he has each category the task requires. |
| desiredCategory | integer (Integer_u32) [ 0 .. 2147483647 ] The worker has a strong preference towards tasks with this category. The categories listed here is automatically considered valid as if they're listed in This is a preference and can be violated for other preferences or restrictions. |
| prefCategories | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Tasks with any of these categories will be preferred by this worker. Categories listed here are automatically considered valid as if they're listed in This is a preference and can be violated for other preferences or restrictions. Its importance depends on the parameter |
| breakLocationSiteID | integer (Integer_u32) [ 0 .. 2147483647 ] Deprecated Unsigned 32 bit integer with the upper limit of a signed 32bit integer |
| breakStartEarliest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The earliest start of the break a worker has to do. This is a preference and can be violated for other preferences or restrictions. |
| breakEndLatest | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The latest end of the break a worker has to do. This is a preference and can be violated for other preferences or restrictions. |
| breakDuration | integer (Integer_u32) [ 0 .. 2147483647 ] The duration in minutes of the break. |
| noAutomaticBreak | boolean Default: false If |
| vehicleType | integer (MixedPlannerVehicleType) [ 0 .. 4 ] Default: 0 The vehicle type used by this worker. |
| gender | integer (GenderType) [ 0 .. 3 ] The gender type of the worker. |
| costsPerKM | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The costs per km for this worker (e.g. fuel costs). |
| costsPerMinute | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 The costs per minute working time (carrying out tasks) for this worker (e.g. monthly salary converted to minutes). |
| costsInitial | number (Number_u64) [ 0 .. 1.7e+308 ] Default: 0 Costs that occur if there is at least one task assigned to the worker. |
| maxDesiredTotalDistance | number (Number_u64) [ 0 .. 1.7e+308 ] The maximum total travel distance per shift that a worker wants to perform. This is a preference and can be violated for other preferences or restrictions. |
| maxDesiredSingleDistance | number (Number_u64) [ 0 .. 1.7e+308 ] The maximum travel distance for each individual travel that a worker wants to perform. This is a preference and can be violated for other preferences or restrictions. |
| dontVary | boolean Default: false A worker with This is a strict restriction and might fail validation if it is impossible to keep. |
| dontAlter | boolean Default: false Workers with This is a strict restriction and might fail validation if it is impossible to keep. |
| allowPreassignedTasksOnly | boolean Default: false If this flag is true, only tasks preassigned to this worker can be assigned to it. Tasks not preassigned to this worker cannot be assigned to it. This is a strict restriction and might fail validation if it is impossible to keep. |
| expectedWorkingMinutes | integer (Integer_u32) [ 0 .. 2147483647 ] The target value for working time ( This is a preference and can be violated for other preferences or restrictions. |
| maxAssignableTasks | integer (Integer_u32) [ 0 .. 2147483647 ] The maximum number of tasks that can be assigned to this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| minAssignableTasks | integer (Integer_u32) [ 0 .. 2147483647 ] Default: 0 The minimum number of tasks that must be assigned to this worker. This is a strict restriction and might fail validation if it is impossible to keep. |
| breakScheduled | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The time a break was scheduled on this worker. |
| info | string Some textual information about the worker, e.g., for delays. |
| travelHomeTime required | integer (Integer_u32) [ 0 .. 2147483647 ] Time in minutes needed to get to the end location from the last task. The same rules as for the output-task's |
| travelHomeDistance required | number (Number_u64) [ 0 .. 1.7e+308 ] Distance in km between the last task and the end location. The same rules as for the output-task's |
| performFinalResetAtID | integer (Integer_u32) [ 0 .. 2147483647 ] The id of the location site at which a capacity reset was performed after the last task and before returning to a depot. |
| travelTimeToFinalReset | integer (Integer_u32) [ 0 .. 2147483647 ] If the worker performs a reset right before the end of their tour ( |
| travelDistanceToFinalReset | number (Number_u64) [ 0 .. 1.7e+308 ] If the worker performs a reset right before the end of their tour ( |
| tourStart | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The actual time this worker starts their tour. The value is set only if the worker has a task assigned. If the worker has a task assigned and |
| tourEnd | string (Time) ^[-]?([0-9]{1,9}):([0-5][0-9]|[0-9])$ The actual time this worker ends their tour, including travel to its |
| totalTravelTime required | integer (Integer_u32) [ 0 .. 2147483647 ] The sum of all travel times of this worker. Does not include reset durations, neither from reset between tasks nor the final reset, but travel to and from reset locations is included. |
| totalTravelDistance required | number (Number_u64) [ 0 .. 1.7e+308 ] The sum of all travel distances of this worker. |
| totalTaskTime required | integer (Integer_u32) [ 0 .. 2147483647 ] The sum of all task durations on this worker. Does not include breaks or capacity reset duration. |
{- "workerID": 2147483647,
- "shiftID": 2147483647,
- "externalID": "string",
- "startLocation": {
- "lat": -90,
- "lng": -180
}, - "startLocationSiteID": 2147483647,
- "endLocation": {
- "lat": -90,
- "lng": -180
}, - "endLocationSiteID": 2147483647,
- "shiftDate": "2020-04-10",
- "shiftStart": "07:25",
- "shiftEnd": "07:25",
- "shiftPriority": 3,
- "hoursPerWeek": 1,
- "capacity": 1.7e+308,
- "capacityInitial": 1.7e+308,
- "capacityResetLocationSiteIDs": [
- 2147483647
], - "capacityResetDuration": 2147483647,
- "maxResets": 2147483647,
- "volume": 1.7e+308,
- "volumeInitial": 1.7e+308,
- "weight": 1.7e+308,
- "weightInitial": 1.7e+308,
- "finalCapacityResetThreshold": 1.7e+308,
- "finalVolumeResetThreshold": 1.7e+308,
- "finalWeightResetThreshold": 1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "desiredCategory": 2147483647,
- "prefCategories": [
- 2147483647
], - "breakLocationSiteID": 2147483647,
- "breakStartEarliest": "07:25",
- "breakEndLatest": "07:25",
- "breakDuration": 2147483647,
- "noAutomaticBreak": false,
- "vehicleType": 4,
- "gender": 3,
- "costsPerKM": 1.7e+308,
- "costsPerMinute": 1.7e+308,
- "costsInitial": 1.7e+308,
- "maxDesiredTotalDistance": 1.7e+308,
- "maxDesiredSingleDistance": 1.7e+308,
- "dontVary": false,
- "dontAlter": false,
- "allowPreassignedTasksOnly": false,
- "expectedWorkingMinutes": 2147483647,
- "maxAssignableTasks": 2147483647,
- "minAssignableTasks": 2147483647,
- "breakScheduled": "07:25",
- "info": "string",
- "travelHomeTime": 2147483647,
- "travelHomeDistance": 1.7e+308,
- "performFinalResetAtID": 2147483647,
- "travelTimeToFinalReset": 2147483647,
- "travelDistanceToFinalReset": 1.7e+308,
- "tourStart": "07:25",
- "tourEnd": "07:25",
- "totalTravelTime": 2147483647,
- "totalTravelDistance": 1.7e+308,
- "totalTaskTime": 2147483647
}required | Array of objects The applied optimizer configuration as fractions. |
required | Array of objects The workload per worker for each hour of the day as fractions. The first value is fraction of working time between 00:00 - 01:00 (1.0: worked 60 minutes, 0.0: worked 0 minutes), the second value is the working time between 01:00 - 02:00, etc. |
required | Array of objects The total time in minutes each worker spends traveling. Capacity reset durations (but not the drive to and from a reset location) are excluded. |
required | Array of objects The distance in km each worker drives for this plan. |
required | Array of objects The time in minutes each worker spends on working on tasks (sum of durations). |
required | Array of objects Proportion of working time to shift time. |
required | Array of objects Proportion of travel time to shift time. Capacity reset durations (but not the drive to and from a reset location) are excluded. |
required | Array of objects The time in minutes spent on different actions summed up. Capacity resets are counted towards travel time. |
required | Array of objects Sum of fulfilled (type matched) as well as unfulfilled (type unmatched) worker preferences. |
required | Array of objects Sum of fulfilled (type 'matched') as well as unfulfilled (type 'unmatched') gender preferences. |
required | Array of objects Sum of tasks assigned to desired workers (type 'matched') and sum of tasks assigned to another worker (type 'unmatched'). |
Array of objects A number-based summary of total distance for each MixedPlannerVehicleType. | |
required | Array of objects Contains all restriction types and gives the absolute value as well as a percentage (0.0-1.0) evaluation of each restriction's final influence on the algorithmic optimization and plan result. |
| unassignedTaskIDs | Array of integers (Integer_u32) [ items [ 0 .. 2147483647 ] ] taskIDs of all tasks that were not assigned during optimization. |
| unassignableTaskIDs | Array of integers (Integer_u32) [ items [ 0 .. 2147483647 ] ] taskIDs of all tasks that were not assigned during optimization because there is no assignment possible. |
| timeWindowViolationTaskIDs | Array of integers (Integer_u32) [ items [ 0 .. 2147483647 ] ] taskIDs of all tasks are not assigned within their given time window. |
| routeLength required | number (Number_u64) [ 0 .. 1.7e+308 ] The driven distance in km summed up over all workers. |
| onTime required | integer (Integer_0_100) [ 0 .. 100 ] Percentage for tasks scheduled perfectly inside the desired time windows (0 to 100). |
| planProfitability required | number (Number_s64) [ -1.7e+308 .. 1.7e+308 ] The profitability this plan archives based on worker costs and task revenues. |
object Data analyzed from history. |
{- "configuration": [
- {
- "label": "Kurze Wege",
- "value": 1
}
], - "workload": [
- {
- "workerID": 2147483647,
- "values": [
- 1
]
}
], - "travelTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "travelDistances": [
- {
- "workerID": 2147483647,
- "distance": 1.7e+308
}
], - "taskTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "taskBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "travelBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "workTimeDistribution": [
- {
- "type": "Arbeitszeit",
- "time": 2147483647
}
], - "preferredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "preferredGender": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "desiredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "vehicleTypeDistances": [
- {
- "vehicleType": 4,
- "distance": 1.7e+308
}
], - "impact": [
- {
- "label": "string",
- "value": 1,
- "absolute": 1.7e+308
}
], - "unassignedTaskIDs": [
- 2147483647
], - "unassignableTaskIDs": [
- 2147483647
], - "timeWindowViolationTaskIDs": [
- 2147483647
], - "routeLength": 1.7e+308,
- "onTime": 100,
- "planProfitability": -1.7e+308,
- "history": {
- "tasks": [
- {
- "taskID": 2147483647,
- "preassignedWorker": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "timeEarliestLimit": "07:25",
- "timeLatestLimit": "07:25",
- "preferenceWeights": [
- {
- "workerID": 2147483647,
- "value": 1.7e+308
}
], - "genderWeights": [
- {
- "gender": 3,
- "value": 1.7e+308
}
], - "prefGender": 3,
- "group": 2147483647,
- "desiredGroup": 2147483647,
- "timePriority": 5,
- "initassignedWorker": 2147483647,
- "weakPredecessorTasks": [
- 2147483647
], - "taskGaps": [
- {
- "taskID": 2147483647,
- "minGap": -2147483648,
- "maxGap": -2147483648
}
]
}
], - "workers": [
- {
- "workerID": 2147483647,
- "hasShortHistory": true,
- "hasNoHistory": true
}
]
}
}| text required | string Some general information about the plan. Contains warnings for some strict restrictions. |
| balance required | string Statistics about the workload of the workers and the distribution of tasks among them. |
| dist required | string Distance in km driven by the workers. |
| pref required | string Information about preferred workers matches. |
| relax required | string Information about delayed tasks grouped by delay amount 5-30 minutes, 30+ minutes and information about exceeded worker shifts. |
| time required | string Total and average travel time. |
| feasible required | boolean Set to false if any restrictions are violated in the solution. |
| constructionSites | any Deprecated |
{- "text": "string",
- "balance": "string",
- "dist": "string",
- "pref": "string",
- "relax": "string",
- "time": "string",
- "feasible": true,
- "constructionSites": null
}A version consisting of the date of release [0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]+, which can have a patch suffix p[0-9]+.
"1970-01-01_0p0"See https://semver.org/ for a full description of semantic versioning. The regex here is a subset of allowed semantic versions.
"v1.2.3"| version | any Deprecated Value: "v1.0.0" |
| optVersion | string (FieldPlacerVersion) ^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]+(p[0-9]+)?$... The version of the algorithm used for calculating the result. |
| rev | string >= 7 characters An internal identifier for the algorithm version. |
| schema required | string (SemanticVersion) ^(v)?(0|([1-9][0-9]{0,4}))(\.(0|([1-9][0-9]{0... The version of the schema used for validating both request data sent via the PUT request as well as response data gotten from the GET request. |
{- "version": "v1.0.0",
- "optVersion": "1970-01-01_0p0",
- "rev": "strings",
- "schema": "v1.2.3"
}| requestID | string The identifier that allows finding input/output data, logs and more. This ID will be asked for in most non-trivial support cases so it should be stored when receiving the data. |
object (Client) Contains information about the client, which sent this request. | |
required | object (MixedPlannerMeta) Meta-information about what to consider in the optimization. |
required | object (MixedPlannerOptimizationParameters) Parameters for the optimization. |
required | Array of MixedPlannerOutputTaskAssigned (object) or MixedPlannerOutputTaskUnassigned (object) (MixedPlannerOutputTask) Array of assigned and unassigned tasks. |
required | Array of objects (MixedPlannerOutputWorker) Array of available workers. |
Array of objects (MixedPlannerLocationSite) Array of available location sites. | |
Array of objects or objects (MixedPlannerObstacle) Deprecated | |
required | object (MixedPlannerStatistics) Some statistics about the plan. |
required | object (MixedPlannerInfo) Some textual information about the plan. |
Array of objects (Anomalies) non-empty List of all anomalies found in solution. | |
required | object (BackendVersion) Used validation/ calculation version. |
| recovery | Array of integers (IDReferences) [ items [ 0 .. 2147483647 ] ] Deprecated List of ids. |
object (DeveloperOptions) Additional debug information for developers. |
{- "requestID": "string",
- "client": {
- "clientID": "logisticscenter_a"
}, - "meta": {
- "dateFrom": "2020-04-10",
- "dateTo": "2020-04-10",
- "resCapacity": false,
- "resCategory": false,
- "resQualification": false,
- "postProcessing": false,
- "accuracyMode": 1.7e+308,
- "outputLanguage": 1,
- "tightSchedule": false,
- "tourStartsOnShiftStart": false,
- "minTravelTime": 2147483647,
- "travelTimeMin": 2147483647,
- "integrateDurationExtensions": true,
- "integrateGermanBreakRegulations": false,
- "enablePlanSplitting": true,
- "allowUnassignedTasks": false,
- "removeInvalidTasks": true,
- "useInitialClustering": false,
- "dontOptimizeResets": false,
- "minConcurrentSolutions": 1,
- "minTaskDuration": 2147483647,
- "useDensityClustering": false,
- "disableTaskTimeWindowRelaxation": false
}, - "parameters": {
- "preset": 4,
- "fairDistribution": 9,
- "localityClustering": 9,
- "shortPaths": 9,
- "timeliness": 9,
- "travelTimeRelax": 9,
- "workerPrefs": 9,
- "workerReduction": 9,
- "workTimeRelax": 9,
- "genderPref": 9,
- "profitability": 9
}, - "tasks": [
- {
- "taskID": 2147483647,
- "externalID": "string",
- "clientID": 2147483647,
- "baseScheduleTime": "07:25",
- "date": "2020-04-10",
- "duration": 2147483647,
- "durationInSeconds": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "forbTimeEarliest": "07:25",
- "forbTimeLatest": "07:25",
- "timePriority": 5,
- "location": {
- "lat": -90,
- "lng": -180
}, - "locationSiteID": 2147483647,
- "finishLocation": {
- "lat": -90,
- "lng": -180
}, - "finishLocationSiteID": 2147483647,
- "rotatable": false,
- "description": "string",
- "prefWorkers": [
- 2147483647
], - "unpreferredWorkers": [
- 2147483647
], - "antiWorkers": [
- 2147483647
], - "forbWorkers": [
- 2147483647
], - "capacity": -1.7e+308,
- "weight": -1.7e+308,
- "volume": -1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "antiCategories": [
- 2147483647
], - "exchangeableCategories": [
- 2147483647
], - "twinCategories": [
- 2147483647
], - "preassignedWorker": 2147483647,
- "preassignedOrder": -2147483648,
- "desiredWorker": 2147483647,
- "initassignedOrder": 2147483647,
- "initassignedWorker": 2147483647,
- "initassignedShiftID": 2147483647,
- "prefGender": 3,
- "precedingTasks": [
- 2147483647
], - "predecessorTasks": [
- 2147483647
], - "revenue": 1.7e+308,
- "travelTimeExtra": 2147483647,
- "group": 2147483647,
- "predecessorGroup": 2147483647,
- "assignmentPriority": 5,
- "ignoreHistory": false,
- "timeScheduled": "07:25",
- "timeWindowViolation": -2147483648,
- "travelTime": 2147483647,
- "travelDistance": 1.7e+308,
- "assignedWorker": 2147483647,
- "assignedShiftID": 2147483647,
- "finalassignedOrder": 1,
- "info": "string",
- "allowedWorkers": [
- 2147483647
], - "profit": -1.7e+308,
- "performResetBeforeAtID": 2147483647,
- "travelTimeToReset": 2147483647,
- "travelDistanceToReset": 1.7e+308,
- "rotated": true,
- "gapBeforeTask": 2147483647
}
], - "workers": [
- {
- "workerID": 2147483647,
- "shiftID": 2147483647,
- "externalID": "string",
- "startLocation": {
- "lat": -90,
- "lng": -180
}, - "startLocationSiteID": 2147483647,
- "endLocation": {
- "lat": -90,
- "lng": -180
}, - "endLocationSiteID": 2147483647,
- "shiftDate": "2020-04-10",
- "shiftStart": "07:25",
- "shiftEnd": "07:25",
- "shiftPriority": 3,
- "hoursPerWeek": 1,
- "capacity": 1.7e+308,
- "capacityInitial": 1.7e+308,
- "capacityResetLocationSiteIDs": [
- 2147483647
], - "capacityResetDuration": 2147483647,
- "maxResets": 2147483647,
- "volume": 1.7e+308,
- "volumeInitial": 1.7e+308,
- "weight": 1.7e+308,
- "weightInitial": 1.7e+308,
- "finalCapacityResetThreshold": 1.7e+308,
- "finalVolumeResetThreshold": 1.7e+308,
- "finalWeightResetThreshold": 1.7e+308,
- "qualification": 2147483647,
- "categories": [
- 2147483647
], - "desiredCategory": 2147483647,
- "prefCategories": [
- 2147483647
], - "breakLocationSiteID": 2147483647,
- "breakStartEarliest": "07:25",
- "breakEndLatest": "07:25",
- "breakDuration": 2147483647,
- "noAutomaticBreak": false,
- "vehicleType": 4,
- "gender": 3,
- "costsPerKM": 1.7e+308,
- "costsPerMinute": 1.7e+308,
- "costsInitial": 1.7e+308,
- "maxDesiredTotalDistance": 1.7e+308,
- "maxDesiredSingleDistance": 1.7e+308,
- "dontVary": false,
- "dontAlter": false,
- "allowPreassignedTasksOnly": false,
- "expectedWorkingMinutes": 2147483647,
- "maxAssignableTasks": 2147483647,
- "minAssignableTasks": 2147483647,
- "breakScheduled": "07:25",
- "info": "string",
- "travelHomeTime": 2147483647,
- "travelHomeDistance": 1.7e+308,
- "performFinalResetAtID": 2147483647,
- "travelTimeToFinalReset": 2147483647,
- "travelDistanceToFinalReset": 1.7e+308,
- "tourStart": "07:25",
- "tourEnd": "07:25",
- "totalTravelTime": 2147483647,
- "totalTravelDistance": 1.7e+308,
- "totalTaskTime": 2147483647
}
], - "locationSites": [
- {
- "locationSiteID": 2147483647,
- "location": {
- "lat": -90,
- "lng": -180
}, - "externalID": "string"
}
], - "obstacles": [
- {
- "description": "string",
- "factor": 1.7e+308,
- "restriction": 1,
- "travelTimeIncrease": 1.7e+308,
- "type": "polyline",
- "points": [
- {
- "lat": -90,
- "lng": -180
}
]
}
], - "statistics": {
- "configuration": [
- {
- "label": "Kurze Wege",
- "value": 1
}
], - "workload": [
- {
- "workerID": 2147483647,
- "values": [
- 1
]
}
], - "travelTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "travelDistances": [
- {
- "workerID": 2147483647,
- "distance": 1.7e+308
}
], - "taskTimes": [
- {
- "workerID": 2147483647,
- "time": 2147483647
}
], - "taskBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "travelBusyness": [
- {
- "workerID": 2147483647,
- "busyness": 1.7e+308
}
], - "workTimeDistribution": [
- {
- "type": "Arbeitszeit",
- "time": 2147483647
}
], - "preferredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "preferredGender": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "desiredWorkers": [
- {
- "type": "matched",
- "count": 2147483647
}
], - "vehicleTypeDistances": [
- {
- "vehicleType": 4,
- "distance": 1.7e+308
}
], - "impact": [
- {
- "label": "string",
- "value": 1,
- "absolute": 1.7e+308
}
], - "unassignedTaskIDs": [
- 2147483647
], - "unassignableTaskIDs": [
- 2147483647
], - "timeWindowViolationTaskIDs": [
- 2147483647
], - "routeLength": 1.7e+308,
- "onTime": 100,
- "planProfitability": -1.7e+308,
- "history": {
- "tasks": [
- {
- "taskID": 2147483647,
- "preassignedWorker": 2147483647,
- "timeEarliest": "07:25",
- "timeLatest": "07:25",
- "timeEarliestLimit": "07:25",
- "timeLatestLimit": "07:25",
- "preferenceWeights": [
- {
- "workerID": 2147483647,
- "value": 1.7e+308
}
], - "genderWeights": [
- {
- "gender": 3,
- "value": 1.7e+308
}
], - "prefGender": 3,
- "group": 2147483647,
- "desiredGroup": 2147483647,
- "timePriority": 5,
- "initassignedWorker": 2147483647,
- "weakPredecessorTasks": [
- 2147483647
], - "taskGaps": [
- {
- "taskID": 2147483647,
- "minGap": -2147483648,
- "maxGap": -2147483648
}
]
}
], - "workers": [
- {
- "workerID": 2147483647,
- "hasShortHistory": true,
- "hasNoHistory": true
}
]
}
}, - "info": {
- "text": "string",
- "balance": "string",
- "dist": "string",
- "pref": "string",
- "relax": "string",
- "time": "string",
- "feasible": true,
- "constructionSites": null
}, - "anomalies": [
- {
- "anomalyKey": "string",
- "severity": "high",
- "text": "string",
- "taskID": 2147483647,
- "workerID": 2147483647
}
], - "backendVersion": {
- "version": "v1.0.0",
- "optVersion": "1970-01-01_0p0",
- "rev": "strings",
- "schema": "v1.2.3"
}, - "recovery": [
- 2147483647
], - "developerOptions": {
- "recovery": [
- 2147483647
], - "debugSolution": "string"
}
}| schema | string Schema version against which input and output data are validated |
| version | string Version of the application that calculates solutions |
| meta_data | string Meta data version |
| api_scripts | string Version of the scripts handling requests |
{- "schema": "v1.7.0",
- "version": "2024-10-01_0",
- "meta_data": "v19",
- "api_scripts": "v1.6.2"
}| Name required | string Package name to use in the |
| LastModified | string Modification timestamp of the package, usually of the time it was uploaded at |
object (VersionInfo) |
[- {
- "Name": "a6b69c77bedb7",
- "LastModified": "2024-08-16T12:41:09.000Z",
- "Content": {
- "schema": "v2.7.0",
- "version": "2024-10-01_0",
- "meta_data": "v26"
}
}, - {
- "Name": "d63ca460db7bc",
- "LastModified": "2024-08-16T09:16:09.000Z",
- "Content": {
- "schema": "v2.3.0",
- "version": "2024-10-01_0p0",
- "meta_data": "v26"
}
}
]DeveloperOptionsErrorPlan: Added developerOptions, deprecated recoveryMixedPlannerInputPlan, MixedPlannerOutputPlan: Added developerOptions, deprecated recoveryMixedPlannerHistoryAssignment: Added assignedShiftIDMixedPlannerHistoryAssignment: Added assignedShiftIDAutomaticallyMixedPlannerHistoryAssignment: Added actualShiftIDMixedPlannerInputWorker: Added allowPreassignedTasksOnlyMixedPlannerInputTask: Updated description of preassignedWorker to better explain behaviour when there are multiple worker with the same workerIDMixedPlannerOptimizationParameters: Deprecated field genderPrefMixedPlannerStatisticsHistoryTask: Deprecated field genderWeightsMixedPlannerInputPlan: Updated description for history.MixedPlannerInputTask: Updated description for preassignedWorker, initassignedWorker, predecessorTasks.MixedPlannerOptimizationParameters: Updated description for preset.PredecessorChain for POST /description endpointMixedPlannerInputTask: Changed description of qualification to represent new dependency on parameter profitabilityaccept and accept-encoding headers to GET /version, GET /packages-list endpoints, added 406 response code409 response code to all GET endpointsPackagesList and VersionInfo componentMixedPlannerOutput:MixedPlannerOutputPlan and ErrorPlan into one definition to use as schema in /plan GET responseMixedPlannerConstructionSiteMixedPlannerInfo:constructionSites to deprecated.content-type options in POST requests:application/vnd.adiutabyte.adiutaopt.json+gzipapplication/vnd.adiutabyte.adiutaopt.json+deflateapplication/vnd.adiutabyte.adiutaopt.json+braccept-encoding in GET requests with allowed values:identitydeflategzipaccept in GET requests with allowed values:application/jsonapplication/vnd.adiutabyte.adiutaopt.json+gzipapplication/vnd.adiutabyte.adiutaopt.json+deflateapplication/vnd.adiutabyte.adiutaopt.json+brversion to adiutaopt-versionBackendVersion:version to be constant "v1.0.0", marked as deprecatedoptVersion, has the same properties as version did in v4OPTIONS requestsOPTIONS requestsVersion to paths /description and /version/packages-listNumber_u32, replaced all occurrences with Number_u64. Those are:MixedPlannerInputTask, MixedPlannerOutputTask:revenueMixedPlannerInputWorker, MixedPlannerOutputWorker:capacitycapacityInitialvolumevolumeInitialweightweightInitialfinalCapacityResetThresholdfinalVolumeResetThresholdfinalWeightResetThresholdcostsPerKMcostsPerMinutecostsInitialNumber_s64Number_s32, replaced all occurrences with Number_s64. Those are:MixedPlannerInputTask, MixedPlannerOutputTask:capacityweightvolumeMixedPlannerOutputTaskAssigned:profitMixedPlannerStatistics:planProfitabilityMixedPlannerInputTask:unpreferredWorkersantiWorkers as deprecatedErrorEntryMixedPlannerInputTask, MixedPlannerInputWorkerErrorPlanMixedPlannerConstructionSiteMixedPlannerHistoryAssignmentMixedPlannerHistoryTaskMixedPlannerHistoryWorkerMixedPlannerLocationSiteMixedPlannerOutputPlanMixedPlannerStatisticsHistoryTaskMixedPlannerStatisticsHistoryWorkerMixedPlannerTravelOverrideDenseMixedPlannerOutputTaskAssignedMixedPlannerOutputTaskUnassignedMixedPlannerOutputWorker