Research Article

A Two-Phase Heuristic Algorithm for the Problem of Scheduling and Vehicle Routing for Delivery of Medication to Patients

Algorithm 1

Proposed procedure.
1:  Input vrp_instance, vrp_solution (optional)
2:  Output vrp_solution
3:  If no vrp_solution exists then
4:   vrp_initial(vrp_solution)
5:  end if
6:  Repeat
7:   Repeat
8:    call vrp_simulated_annealing(vrp_solution)
9:   until vrp_solution is not improved
10:  Repeat
11:   call vrp_record_to_record(vrp_solution)
12:  until vrp_solution is not improved
13: until vrp_solution is not improved