Quote:How to implement genetic algorithm using gui
Basically, the algorithm used, genetic or not, is not link to GUI.
In order to show the advance of optimization, the GUI needs the actual path and best path and a call to GUI update.
So, whatever is your algorithm, you need a place to store actual path, best path in a place that GUI can read.
Then every time your algorithm make a change in path, it must call GUI update. this is the only link you must have to the GUI.
I would use a callback to GUI to avoid messing in algorithm.
Quote:I have tried the. Tsp using genetic algorithm but it shows lot of errors
To get help on this, you need to show your code and error messages.