mardi 1 décembre 2020

Generating numbers with for tabu search

I am trying to making a meta-heuristic algorithm work for my final project, I have the exact solution of problem ( Chinese postman problem) with a heuristic algorithm but I want to make meta-heuristic for further works.

So my problem is I want to generate two numbers between 1 and 10, but first number can be random, but second one must be depend on first number cause those numbers will be used in tabu search for vehicle routing problem and as you know not exactly the selected( first random number) line have connection every another one, just have specifically few ones Like enter image description here you are seeing a matrix for lines and distance between nodes, and empty means there isn't any connection so if I select node1 it can go to node2, node9 and node10, so I want to generate numbers like if first number comes out 1 second should be 2,9 or 10 how can I make it in excel?




Aucun commentaire:

Enregistrer un commentaire