Originally posted by: Washout
Hi all,
This is likely to be a silly / easy question, but here goes...
I am writing a CPLEX model which solves for a single track railway train timetable and the key decision variables relate to the time that a train starts to traverse a section - C_up[u][j] (= the time that train ​u​ starts to traverse section ​j​). It is of type IloNumVar (for each train I create a numVarArray with bounds of 0 and the time in mins corresponding to the timetable period).
The issue is that the time that the trains traverse the initial section corresponding to the first sections at either end of the railway should correspond to an existing train path time. For example, there may be a valid starting time for a train on it's first section at t = 10, t = 47 and t = 88 and it needs to choose one of these. I know how to use indicator variables to choose 1 out of ​K​ constraints when the constraints are inequalities but I am a little stumped how to force the initial start time for a train to be one out of a list of possible times.
Can anyone point out the obvious for me?
Cheers,
Martin
#CPLEXOptimizers#DecisionOptimization