In VRPTW problem, given
- $[a_i, b_i]$: the time window for node $i$
- $x_{ijk}$: a binary variable that represents that the vehicle $k$ travels from node $i$ to $j$ (yes 1 otherwise 0)
- $s_i$: the service time at node $i$
- $t_{ij}$: the traveling time from node $i$ to $j$
I see paper and books widely formulate the constraints related to time as follows:
\begin{align} &w_{ik} + s_{i} + t_{ij} - w_{jk} \leq (1 - x_{ijk})M_{ij} \tag{1} \\ &w_{ik} \geq a_{i} \tag{2} \\ &w_{ik} \leq b_{i} \tag{3} \end{align}
Here $w_{ik}$ was mentioned as the arrival time of vehicle $k$ to node $i$, (1) is actually the linearized version of
\begin{align} x_{ijk}(w_{ik} + s_{i} + t_{ij} - w_{jk})\le0 \tag{4} \end{align}
and (2) and (3) are the time window constraints.
If $x_{ijk}=1$, we expect the representation of arrival time to $j$ to be (the time of arrival at $i$) + (the service time at $i$) + (time cost to travel from $i$ to $j$)
However, under the circumstance where $x_{ijk}=1$, then $1-x_{ijk}=0$, we get $w_{ik} + s_i + t_{ij} - w_{jk} \le 0$, i.e., $w_{jk} \ge w_{ik} + s_i + t_{ij} $.
This could be interpreted as: the arrival time at $j$ is greater and equal to the expected time
Then I am confused that how can we prevent the case where $w_{jk}$ is larger than what we expected?
Of course, there is also a possibility that the expected time is below the lower bound of time window $a_i$, the vehicle is assumed to be waiting to $a_i$, and this is ensured by (2). However, still, the $\ge$ in (2) leaves the possibility for it to be larger than $a_i$.
I used to see that in some literature, the objective contains minimization of the sum of such variables so that the case can be prevented. However, here the objective is only minimizing the travel cost $\sum_{i,j,k}c_{ij} \cdot x_{i,j,k}$.
Based on the result from CPLEX, I see the values of $w_{jk}$ indeed tightened to $\max\{a_j, w_{ik} + s_i + t_{ij}\}$.