Search
SOMSolver.py
—-
Download provided codes and run the main script t2a_tspn.py
t2a_tspn.py
From Lecture 6. Multi-goal path planning:
Utilize 'alternate goal' concept for solving TSP with neighborhoods (TSPN). In each epoch, the neurons are adapted towards the goals which inhibits them. But, in the TSPN, the neurons are adapted to the closes point in the specific goal neighborhood. Therefore, this concept enables to find shorter solutions, see the right image and the following GIF with SOM evolution.
Click on the following image to see the SOM evolution in GIF.
select_winner(…)
learn_epoch(…)
update_goal_potition(…)
alternate goal
import SOMSolver as som som.animate = False