The Vehicle Routing Problem with Heterogeneous Fleet, Time Windows, Pickup and Deliveries (VRPHFD) is a complex optimization problem that involves planning the routes of a fleet of vehicles with different capacities and speeds, while taking into account time windows, pickup and delivery requirements, and customer demand. Here is a possible mathematical model for the VRPHFD:
Notation:
• N: Set of customers, where |N| = n
• M: Set of vehicles, where |M| = m
• C: Set of commodities, where |C| = c
• D: Set of demand points, where |D| = d
• T: Set of time windows, where |T| = t
Decision Variables:
• x_{ij}: Binary variable that equals 1 if customer i is served by vehicle j, and 0 otherwise
• y_{ijk}: Binary variable that equals 1 if customer i is served by vehicle j with commodity k, and 0 otherwise
• z_{it}: Binary variable that equals 1 if customer i is served within time window t, and 0 otherwise
• w_{j}: Binary variable that equals 1 if vehicle j is used, and 0 otherwise
• v_{kt}: Binary variable that equals 1 if commodity k is delivered within time window t, and 0 otherwise
Objective Function:
The objective is to minimize the total cost of the routes, which includes the travel cost and the penalty cost for violating time windows:
(1) min C_{total} = \sum_{j \in M} w_{j} \cdot C_{j} + \sum_{t \in T} \lambda_{t} \cdot \left( \sum_{i \in N} z_{it} - 1 \right)^{2}
Constraints:
- Each customer is served by exactly one vehicle:
(2) \sum_{j \in M} x_{ij} = 1, \quad \forall i \in N
- Each vehicle is used at most once:
(3) \sum_{i \in N} x_{ij} \leq 1, \quad \forall j \in M
- Each customer's demand is satisfied by exactly one vehicle:
(4) \sum_{j \in M} y_{ijk} = 1, \quad \forall i \in N, k \in C
- Each vehicle's capacity is not exceeded:
(5) \sum_{i \in N} y_{ijk} \cdot q_{ik} \leq Q_{j}, \quad \forall j \in M, k \in C
- Each customer is served within its time window:
(6) z_{it} \leq x_{ij}, \quad \forall i \in N, j \in M, t \in T
- Each commodity is delivered within its time window:
(7) v_{kt} \leq \sum_{j \in M} y_{ijk}, \quad \forall i \in N, k \in C, t \in T
- The time window constraints for the customers:
(8) t'{i} - t'{j} \leq (x_{ij} - x_{ji}) \cdot (t_{i} - t_{j}) + (1 - x_{ij}) \cdot (t_{i} - t'_{j}), \quad \forall i, j \in N
- The time window constraints for the commodities:
(9) t'{i} - t'{j} \leq (y_{ijk} - y_{jik'}) \cdot (t_{i} - t_{j}) + (1 - y_{ijk}) \cdot (t_{i} - t'_{j}), \quad \forall i, j \in N, k, k' \in C
- The binary constraints:
(10) x_{ij}, y_{ijk}, z_{it}, w_{j}, v_{kt} \in {0, 1}, \quad \forall i \in N, j \in M, k \in C, t \in T
This is a mixed-integer programming model for the VRPHFD. The decision variables are defined as follows:
x_{ij}: a binary variable that equals 1 if customer i is served by vehicle j, and 0 otherwise.
y_{ijk}: a binary variable that equals 1 if customer i is served by vehicle j with commodity k, and 0 otherwise.
z_{it}: a binary variable that equals 1 if customer i is served within time window t, and 0 otherwise.
w_{j}: a binary variable that equals 1 if vehicle j is used, and 0 otherwise.
v_{kt}: a binary variable that equals 1 if commodity k is delivered within time window t, and 0 otherwise.
The objective function (1) minimizes the total cost of the routes, which includes the travel cost and the penalty cost for violating time windows. Constraints (2) and (3) ensure that each customer is served by exactly one vehicle and that each vehicle is used at most once, respectively. Constraints (4) and (5) ensure that each customer's demand is satisfied by exactly one vehicle and that each vehicle's capacity is not exceeded, respectively. Constraints (6) and (7) ensure that each customer is served within its time window and that each commodity is delivered within its time window, respectively. Constraints (8) and (9) are the time window constraints for the customers and commodities, respectively. Finally, constraints (10) are the binary constraints on the decision variables.
This is just one possible mathematical model for the VRPHFD, and there may be other models that are more suitable for specific instances of the problem.