• Keine Ergebnisse gefunden

6.4 ILP-based Very Large Neighborhood Searches

6.4.1 VLNS Operating on Routes

The first VLNS deals with (re-)locating whole routes to depots, as well as opening/closing depots in the course of the application. In fact, we implemented a simpler version (denoted as V1) and a more sophisticated one (denoted as V2) of it, the latter building upon a set covering formulation which is to some degree similar to the one used for the PVRPTW in Section 4.7 and being especially appealing for the PLRP in principle. V1 is a special case of V2 and basically resembles the procedure applied in [177] for the LRP. There the authors apply a Lagrangian relaxation approach on the FLP subproblem via considering the aggregated

6. (PERIODIC) LOCATION-ROUTINGPROBLEM

Algorithm 17: VNS for the (P)LRP with initial solutionxinit

xbest←xinit;// incumbent solution (though most likely

1

infeasible at the beginning)

xvns ←xinit;// solution utilized for shaking

2

k←1;// shaking strength

3

initialize temperature to (average travel costs)/5

4

whileVNS stopping condition is not metdo

5

x00 ←repeated first improving 3-opt neighbor ofx0

8

// probably apply additional local search:

iftackling the LRP andx00<1.03·xbestand with probability 0.2then

9

apply 2-optimprovement onx00

10

// possibly update incumbent:

ifx00is feasible and better thanxbestthen

11

// additional local search:

apply 2-optimprovement onx00if not already done before

12

ifx00made infeasiblethen

13

// possibly update solution utilized by VNS:

if(x00is better thanxvns) or (x00is worse thanxvnsbut accepted due to

every 100thiteration apply linear cooling

21

// finished VNS iteration k←1;// reset shaking

22

164

routes as super-customers. For this several subproblems need to be solved many times, as well as a lower and upper bound must be computed. In contrast, we directly solve the resulting ILP model, which is presented in the following and is also applicable to the PLRP:

(V1) min X

The objective (6.1) is to minimize costs for opening depots, routing costs (here only route location costs), as well as fixed costs for vehicles. The set of all considered (aggregated) routes per day l is denoted byR(l), the least cost of locating it at depotj isCijL. We in-troduce following binary variables: xij (6.7) indicating whether or not depotihosts route j, yi (6.8) if depoti is opened, as well as integer variables zi (6.9) stating the maximum number of routes located at depotiof all days, used for the vehicle fixed costs in (6.1). The following restrictions are applied: Each route must be located at one depot (6.2), the value of thezi variables is determined by (6.3), and the load of a depot must be respected (6.4), withLj denoting the load of routej. The last two constraints are to strengthen the model:

the accumulated capacity of the selected depots must be at least the actual corresponding lower bound (6.5), and the depot with its corresponding maximum number of routes are coupled via (6.6); refer to [6], though they used the minimal number of depots in (6.5). A visualization of an application of V1 is shown in Figure 6.2.

The previous model is built for a given feasible solution and the solution’s routes are used for the corresponding day only.

As already mentioned, the more sophisticated variant formulates a similar, yet potentially much larger neighborhood as a set covering model. Therefore, the main difference between V1and V2is that although both operate on whole routes, the latter takes the single customers into account. The whole model including constraints for both the LRP and the PLRP can be stated as (also refer to [6] for a similar model for the LRP only):

(V2) min X

6. (PERIODIC) LOCATION-ROUTINGPROBLEM

instance 100-5-2 t=1, n=100, m=5, N=100

objective: 221924, total costs: 221924 depot costs: 102541, routing costs: 119383

#routes: 26, routing costs: 93383

instance 100-5-2 t=1, n=100, m=5, N=100

objective: 211598, total costs: 211598 depot costs: 102246, routing costs: 109352

#routes: 26, routing costs: 83352

Figure 6.2: Visualized application of ILP neighborhood V1 on a solution of LRP in-stance 100-5-2 (left: before, right: after application).

subject to (6.3)–(6.4)

(6.6)–(6.9)

pnr ∈ {0,1} ∀n∈VC;∀r ∈Cn (6.20) Beside the adopted constraints and variables from V1 following additions were made: For each customern∈VC, binary variablespnr(6.20) indicate whether or not visit combination r ∈ Cn is chosen. The objective function (6.10) now also includes routing costs CjR for visiting the customers in route j (without the depot connection). Cover constraints (6.11) guarantee that at least one visit day combination is selected per customer, visit constraints (6.12) link the routes and the visit combinations, whereatanj andbirl are binary constants indicating whether or not routejvisits customernand if daylbelongs to visit combination r ∈ Cn of customern, respectively, and the number of routes per day may not exceedN (6.13). Again, constraints (6.14)–(6.17) strengthen the model: the routes containing cus-tomernlocated at depotjand the depot itself are coupled in (6.14), (6.15) is like for V1and only used in case of the LRP, further (6.16) is a special variant instead of the latter for the PLRP, incorporating the periodic aspect, and finally, the minimal amount of vehicles (routes) necessary is set by (6.17). The motivation for a set covering model was to be able to exploit the routes of more than one feasible solution. A consequence with respect to the PLRP is that the selected visit combination of several customers might (or better need) to eventually change. However, the fact that the daily demand of a customer depends on the chosen visit combination does not ”suit the model very well“: In order to build a feasible PLRP solution out of the ILP solution it might be necessary to change the amount delivered to a customer, which is a potential problem if the amount has to be increased due to given vehicle load constraints. At least we alleviate this problem by introducing constraints (6.18) and (6.19), reducing the chance of a conflict by forcing a certain amount to be delivered per customer (and chosen visit combination), with d0nj denoting the amount delivered to customer n in routej. If all fails, the customer is tried to be added in a feasibly way via greedy insertion.

Finally, also over-covered customers need to be dealt with: we simply remove all but their first occurrence.

The model of V2 is created for a given set of feasible solutions, again using the solution’s routes for the corresponding day only. This solution set always contains the current incum-bent solution as well as a preferred number of optional solutions which are selected via bi-nary tournament from the set of all improved solutions (found during the run up to that time).

This way of handling it has the advantage of keeping a certain diversity (assuming enough available solutions) yet still favoring good solutions, as well as having to store no additional solutions. The current incumbent further acts as a starting solution for the ILP solver.

Basically, this model could be applied as the master problem of a classical column generation approach as well (see Section 2.3.1), of course a suitable subproblem for generating new columns would have to be defined. However, our intention is to have a (relatively) fast supplementary neighborhood. Therefore we restrict ourselves to producing the columns (routes) with the VNS only, i.e. having a pure metaheuristic column generation.

To control (limit) the effort and hence runtime for solving an instance of V1and V2, there is the possibility to set an upper bound on the number of depots the routes might be located to.

In this case the depots are selected per route in the order of increasing costs for locating this

6. (PERIODIC) LOCATION-ROUTINGPROBLEM

route. The only exception being the best solution in the given set, its routes are allowed to be located at any depot.