- Introduction
- Setup
- Running the Dashboard
- Using the Dashboard
- Manual Input for Tasks
- Manual Input for Shifts
- Schedule Overview
- Show Input Files
- Solver
- Downloading Results
Project OBP is a Streamlit-based application designed to help manage and optimize nurse scheduling. The application allows users to input tasks and shifts manually, view schedules, and solve for optimal nurse allocation.
Please note that a Gurobi license is required to run the Gurobi version of the solver. If no license is found, the solver will not run.
-
Clone the repository and cd into the correct directory:
git clone https://github.com/kurkmeister/project_obp.git
cd project_obp
-
Install the required packages:
pip install -r requirements.txt
To start the dashboard, cd
to the app
directory:
cd app
the run the dashboard with the command:
streamlit run main.py
This will launch the Streamlit application in your default web browser.
- Navigate to the "Manual Input Tasks" page.
- Fill in the task details, including task name, start time, end time, duration, nurses required, and active days.
- Click "Add Task" to add the task to the DataFrame.
- The current tasks will be displayed in a table below the form.
- You can download the tasks as a CSV file using the "Download Data as CSV" button.
- Navigate to the "Manual Input Shifts" page.
- Fill in the shift details, including shift name, max nurses, start time, end time, break time, break duration, weight, and active days.
- Click "Add Shift" to add the shift to the DataFrame.
- The current shifts will be displayed in a table below the form.
- You can download the shifts as a CSV file using the "Download Data as CSV" button.
- Navigate to the "Schedule" page.
- Select a day to view the tasks scheduled for that day.
- The tasks will be displayed in a timeline chart.
- You can view the raw data by checking the "Show raw data" checkbox.
- Navigate to the "Show Input Files" page.
- The uploaded shifts and tasks files will be displayed in tables.
- If no files are uploaded, you will see a message indicating that the files have not been uploaded yet.
- Navigate to the main page.
- Upload the shifts and tasks files using the sidebar.
- Enter the maximum time for the solver (in seconds) and the minimum number of nurses required.
- Click "Generate Schedule" to run the solver.
- The results will be displayed in tables below the form.
- After generating the schedule, the results will be displayed on the main page.
- You can download the shifts and tasks results as CSV files using the "Download Results" section.