kamil271e / double-tsp

Assorted heuristics for solving a modified Traveling Salesperson Problem (TSP) combinatorial challenge.
0 stars 0 forks source link

Local search using movement ratings from previous iterations #31

Open unbreaking-V opened 3 months ago

unbreaking-V commented 3 months ago

Description: This algorithm leverages movement ratings from previous iterations with an ordered list of movements. The list should include both inter- and intra-route movements. In the case of intra-route movements, such as exchanging two edges, it is essential to thoroughly understand the description from lectures concerning the Traveling Salesman Problem.

Steps:

  1. Initialize LM - a list of movements that lead to improvement, ordered from best to worst.

  2. Generate initial solution ( x ).

  3. Repeat:

    • Scan all new movements and add movements that lead to improvement to LM.
    • Examine movements ( m ) from LM, starting from the best until an applicable movement is found.
    • Check if ( m ) is applicable, and if not, remove it from LM.
    • If an applicable movement ( m ) is found:
      • Update ( x ) with ( m(x) ) (accept ( m(x) )).
  4. Continue until an applicable movement ( m ) is found after scanning the entire LM list.

kamil271e commented 3 months ago

TODO: