Research Article
Optimal Parking Slots Reservation and Allocation Problem for Periodic Parking Platforms with Preference Constraints
Algorithm 3
TOPSIS-SA algorithm for OM.
(1) | Set the objective function as . | (2) | Input: , , . | (3) | Output: . | (4) | Set initial temperature , termination temperature , temperature attenuation coefficient , iteration number . | (5) | Initialize: ; randomly generate the initial solution and assign it as the optimal solution, which is . | (6) | for do | (7) | . | (8) | fordo | (9) | Perturb to produce a new solution which is . | (10) | if is better than then | (11) | . | (12) | . | (13) | else if | (14) | . | (15) | else | (16) | . | (17) | end | (18) | . | (19) | end | (20) | Set the objective function as . | (21) | Repeat Step 2 to Step 19 and the solution of is . | (22) | Set the objective function as . | (23) | Repeat Step 2 to Step 19. | (24) | The algorithm terminates and the optimal allocation scheme is output. |
|