I have been reading a lot of literature on Simulated Annealing(SA) and its effectiveness in solving the TSP. This leads me to think if SA could be used to optimize just a source
to destination
path finding.
Basic SA pseudocode (from wiki)
s ← s0; e ← E(s) // Initial state, energy.
sbest ← s; ebest ← e // Initial "best" solution
k ← 0 // Energy evaluation count.
while k < kmax and e > emax // While time left & not good enough:
T ← temperature(k/kmax) // Temperature calculation.
snew ← neighbour(s) // Pick some neighbour.
enew ← E(snew) // Compute its energy.
if P(e, enew, T) > random() then // Should we move to it?
s ← snew; e ← enew // Yes, change state.
if enew < ebest then // Is this a new best?
sbest ← snew; ebest ← enew // Save 'new neighbour' to 'best found'.
k ← k + 1 // One more evaluation done
return sbest // Return the best solution found.
Here s0
represents a solution (so in my case it already means a source-destination path), my question is how do I generate these "solutions" other than using Maximum flow algorithm or dijikstra's.