Originally posted by: Ghostwriter_muc
Hi everyone,
I need a execute block that gives us the different W[A] (time-Windows) as Output.
Probably this is quite easy, but I have no clue how to implement this as I'am about to getting started with Cplex.
.Mod
.Data
There is a number of Patients, each Patient has a defined set of activities. I defined the subsets for each activity, precedessor, successor and Minimum time lag (clinicalPathwaysPerPatient).
Each Patient has his defined date of Arrival at the Hospital (alpha in the Data.file). Each activity has an earliest and latest starting time (E and L in the Data.file).
The earliest starting time additionally depends on the Arrival date, the sequence of the predeccesors (Activity 2 can not start before 1 is finished) and the Minimum time lag given as int dmin.
Example:
Patient 1:
calculating earliest starting time:
Activity 1: E=1, Arrival of Patient 1 is 1, there is no int dist given, therefore 0 (This is a problem for me, because i don't know how to implement this)--> earliest Starting time 1
Activity 2: E=1, Arrival of Patient 1 is 1, int dmin =0 --> earliest Starting time 1
Activity 3: E=1, Arrival of Patient 1 is 1, int dmin =3 --> earliest Starting time 4
calculating latest starting time backwards:
Activity 3: L=6, int dmin= 0 --> Latest starting time = 6
Activity 2: L=6, int dmin= 3 --> Latest starting time = 3
Activity 1: L=6, there is no int dist given, therefore 0 (This is a problem for me, because i don't know how to implement this) --> Latest starting time = 3
At the end i want to have time windows as followed: So I can sum t from 1 to 3 or from 4 to 6 and not from 1 to 6.
Activity 1: W1=[1,2,3]
Activity 2: W2=[1,2,3]
Activity 3: W3=[4,5,6]
I would be grateful for you're help and any tips! Do not hesitate to ask if you need further information.
Many thanks in advance!!
Kind regards
#DecisionOptimization#OPLusingCPLEXOptimizer