How qadeer572/ai_project_b works
This is a Streamlit hospital-surgery scheduling dashboard. A user configures operating rooms and hours, enters elective surgeries, then submits an emergency case; the system searches for a valid low-disruption reschedule and presents the updated plan and search trace. The dashboard also estimates emergency probability, while a separate training script creates the model artifact. A second Python file contains standalone A*, simulated annealing, and genetic-algorithm implementations. Some dashboard wiring is unsampled, so only documented connections are shown.
Main entry points: app.py Streamlit Dashboard · emergency_model.pkl Trained Model · train_model.py Model Training
Components 13
Scheduling Dashboard
- Streamlit Dashboard
app.py - Hospital Setup
app.py - Surgery Entry
app.py - Emergency Input
app.py - Schedule Results
app.py
Rescheduling
- Schedule Validation
app.py - A* Rescheduler
app.py
Emergency Prediction
- Emergency Probability
app.py - Model Training
train_model.py - Trained Model
emergency_model.pkl
Alternative Algorithms
- Search Alternatives
i233059_i233011_i233020_A02.py - Standalone A*
search_Algorithm.py
Other components
- Hospital User
Connections 13
- Hospital User → Streamlit Dashboard: uses
README.md - Streamlit Dashboard → Hospital Setup: configures
README.md - Streamlit Dashboard → Surgery Entry: enters surgeries
README.md - Streamlit Dashboard → Emergency Input: enters emergency
README.md - Surgery Entry → Schedule Validation: checks constraints
app.py - Streamlit Dashboard → Emergency Probability: estimates probability
app.py - Model Training → Trained Model: saves model
train_model.py - Trained Model → Emergency Probability: provides predictions
README.md - Streamlit Dashboard → A* Rescheduler: runs rescheduling
README.md - A* Rescheduler → Schedule Validation: checks candidate
app.py - A* Rescheduler → Emergency Probability: uses probability
README.md - A* Rescheduler → Schedule Results: returns plan and trace
README.md - Streamlit Dashboard → Schedule Results: displays results
README.md