fij = xi - xj if xi > xj
fij = xi - xj + 1440 if xi < xj
min sum(fij*Lij)
cons by:
0 =< xi <= 1439 #Minutes in a day
Context: xi and xj correspond to departure and arrival times. fij gives us the waiting time corresponding to ij combination. If departure happens before arrival then we add 1 day to the difference. Objective is to minimize sum product of waiting time and load corresponding to ij .
Is it possible to model this function as a linear program.