I am currently stuck on writing a linear programming model to describe the process of appointment scheduling for an Oncological Center. I wanted to share it with you guys and see if anyone here could help me. The problem regards the process of scheduling a date and hour for each patient appointment over a week, each patient has to come in do a first visit and then a transfusion, we have N beds for transfusion, thus if they are all occupied at a certain moment we have to consider a certain waiting time for the patient. I am stuck on writing the constraints for my problem.
I have as data:
- P --> List of patients
- K --> List of pathologies
- L --> List of laboratories
- T --> Time horizon in days
- H --> List of time slots for each day
- Ms --> Maximum ending time for transfusions
- Mv --> Maximum ending time for visits
- N --> Total number of beds for transfusions
- t^(v)(k) --> time for first visit pathology k
- t^(s)(k) --> time for transfusion pathology k
- S(p,k) --> 1 if patient p has pathology k, 0 otherwise (every patient has only one pathology)
- W(l,k,t) --> 1 if laboratory l is designed for visits of pathology k on day t, 0 otherwise
I was thinking about using as variables:
- X(p,t,h) --> 1 if patient p begins visit on day t on time slot h, 0 otherwise
- Y(p,t,h) --> 1 if patient p begins drug transfusion on day t on time slot h, 0 otherwise
- R(p) --> Waiting time of patient p between visit and infusion
- U(p) --> 1 if patient p has to wait between visit and infusion, 0 otherwise
- C(p) --> Total time spent in the hospital for patient p
Do you guys think these variables are enough ? We work under the assumption that nurses are always available, and thus we do not consider that as a constraint. How would you write the model ? I need serious help and would be extremely helpful to anyone wanting to help...
The constraints on top of the question are what I came up with, I am not sure if they are all necessary or not. It may be possible to solve the problem using less constraints. What do you guys think ? Any feedback is appreciated it is one of my first experiences writing such a big model.