solve_employee_shift_scheduling
Optimize employee shift scheduling by assigning staff to shifts based on availability, requirements, and constraints. Ideal for businesses needing efficient workforce coverage.
Instructions
Solve Employee Shift Scheduling to assign employees to shifts optimally.
Args:
employees: List of employee names
shifts: List of shift dictionaries with time and requirements
days: Number of days to schedule
employee_constraints: Optional constraints and preferences per employee
time_limit_seconds: Maximum solving time in seconds (default: 30.0)
Returns:
Optimization result with employee schedules and coverage statistics
Input Schema
Name | Required | Description | Default |
---|---|---|---|
days | Yes | ||
employee_constraints | No | ||
employees | Yes | ||
shifts | Yes | ||
time_limit_seconds | No |
Input Schema (JSON Schema)
{
"properties": {
"days": {
"title": "Days",
"type": "integer"
},
"employee_constraints": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": true,
"type": "object"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Employee Constraints"
},
"employees": {
"items": {
"type": "string"
},
"title": "Employees",
"type": "array"
},
"shifts": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Shifts",
"type": "array"
},
"time_limit_seconds": {
"default": 30,
"title": "Time Limit Seconds",
"type": "number"
}
},
"required": [
"employees",
"shifts",
"days"
],
"type": "object"
}