cc-routing / routing-sara

Seznam Advanced Routing Algorithm
1 stars 2 forks source link

Create dataset #28

Closed blahami2 closed 8 years ago

blahami2 commented 8 years ago
blahami2 commented 8 years ago
blahami2 commented 8 years ago

Optimization

Procedure

  1. Randomly pick N nodes
  2. Create N*N pairs
  3. Sort them by distance
  4. For each interval repeat max K times or until found
    1. Calculate actual route distance
    2. Compare to interval min/max distance
    3. Adjust if not inside the interval (direction +/-), repeat
    4. Save otherwise