Skip to content

Commit

Permalink
Add vehicle-routing and shift-assignment workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Jan 25, 2024
1 parent 46ff60d commit 881c90d
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/shift-assignment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: shift-assignment

on:
push:
paths:
- "./shift-assignment/**.py"
branches:
- stable

jobs:
shift-assignment:
uses: ./.github/workflows/nextmv.yml
with:
APP_ID: shift-assignment-pyomo
APP_DIRECTORY: ./shift-assignment
15 changes: 15 additions & 0 deletions .github/workflows/vehicle-routing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: vehicle-routing

on:
push:
paths:
- "./vehicle-routing/**.py"
branches:
- stable

jobs:
vehicle-routing:
uses: ./.github/workflows/nextmv.yml
with:
APP_ID: vehicle-routing-pyomo
APP_DIRECTORY: ./vehicle-routing
137 changes: 137 additions & 0 deletions shift-assignment/input1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"workers": [
{
"id": "Louis Hardy",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"dairy_monday-late": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Jacob Cunningham",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"normal_monday-early": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Ray Heard",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"normal_monday-early": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Mark Leath",
"qualifications": [],
"rules": "standard",
"preferences": {
"normal_monday-late": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Dylan Mccormack",
"qualifications": [],
"rules": "standard",
"preferences": {
"normal_monday-late": 3
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
}
],
"rules": [
{
"id": "standard",
"min_rest_hours_between_shifts": 11
}
],
"shifts": [
{
"id": "dairy_monday-early",
"time_id": "monday-early",
"start_time": "2023-11-20T06:00:00+02:00",
"end_time": "2023-11-20T14:00:00+02:00",
"qualification": "dairy",
"count": 1
},
{
"id": "dairy_monday-late",
"time_id": "monday-late",
"start_time": "2023-11-20T14:00:00+02:00",
"end_time": "2023-11-20T22:00:00+02:00",
"qualification": "dairy",
"count": 1
},
{
"id": "normal_monday-early",
"time_id": "monday-early",
"start_time": "2023-11-20T06:00:00+02:00",
"end_time": "2023-11-20T14:00:00+02:00",
"qualification": "",
"count": 2
},
{
"id": "normal_monday-late",
"time_id": "monday-late",
"start_time": "2023-11-20T14:00:00+02:00",
"end_time": "2023-11-20T22:00:00+02:00",
"qualification": "",
"count": 1
}
]
}
137 changes: 137 additions & 0 deletions shift-assignment/input2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"workers": [
{
"id": "Louis Hardy",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"dairy_monday-late": 1
},
"availability": [
{
"start_time": "2024-11-20T00:00:00+02:00",
"end_time": "2024-11-21T00:00:00+02:00"
},
{
"start_time": "2024-11-21T00:00:00+02:00",
"end_time": "2024-11-22T00:00:00+02:00"
}
]
},
{
"id": "Jacob Cunningham",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"normal_monday-early": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Ray Heard",
"qualifications": ["dairy"],
"rules": "standard",
"preferences": {
"dairy_monday-early": 1,
"normal_monday-early": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Mark Leath",
"qualifications": [],
"rules": "standard",
"preferences": {
"normal_monday-late": 1
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
},
{
"id": "Dylan Mccormack",
"qualifications": [],
"rules": "standard",
"preferences": {
"normal_monday-late": 3
},
"availability": [
{
"start_time": "2023-11-20T00:00:00+02:00",
"end_time": "2023-11-21T00:00:00+02:00"
},
{
"start_time": "2023-11-21T00:00:00+02:00",
"end_time": "2023-11-22T00:00:00+02:00"
}
]
}
],
"rules": [
{
"id": "standard",
"min_rest_hours_between_shifts": 11
}
],
"shifts": [
{
"id": "dairy_monday-early",
"time_id": "monday-early",
"start_time": "2023-11-20T06:00:00+02:00",
"end_time": "2023-11-20T14:00:00+02:00",
"qualification": "dairy",
"count": 1
},
{
"id": "dairy_monday-late",
"time_id": "monday-late",
"start_time": "2023-11-20T14:00:00+02:00",
"end_time": "2023-11-20T22:00:00+02:00",
"qualification": "dairy",
"count": 1
},
{
"id": "normal_monday-early",
"time_id": "monday-early",
"start_time": "2023-11-20T06:00:00+02:00",
"end_time": "2023-11-20T14:00:00+02:00",
"qualification": "",
"count": 2
},
{
"id": "normal_monday-late",
"time_id": "monday-late",
"start_time": "2023-11-20T14:00:00+02:00",
"end_time": "2023-11-20T22:00:00+02:00",
"qualification": "",
"count": 1
}
]
}
Loading

0 comments on commit 881c90d

Please sign in to comment.