How to implement an ACO algorithm for vehicle routing?
Ältere Kommentare anzeigen
i need pre-written code to solve VRP using ACO or GA.
[Merged information from duplicate question]
anyone can help me with writing a code to implement ACO or Genetic Algorithm in solving VRP
1 Kommentar
Walter Roberson
am 9 Mär. 2012
Bearbeitet: Walter Roberson
am 24 Jan. 2018
Antworten (3)
Walter Roberson
am 9 Mär. 2012
0 Stimmen
Your existing question is still here and still active. I have merged your information from your newer phrasing.
Please do not open duplicate questions: it only confuses and frustrates people.
Arlene Natividad
am 22 Jan. 2018
0 Stimmen
hello i really need help. I need a source code to solve vrp using ant colony for my thesis. please help me. please
1 Kommentar
Walter Roberson
am 24 Jan. 2018
hafid oubouddi
am 9 Apr. 2022
0 Stimmen
hello, how to find parameters or solve equations of a system using ACO
1 Kommentar
Walter Roberson
am 10 Apr. 2022
You create a fitness function -- a function that has a lower value if the model or system of equations is solved better. Then you pass that fitness function into your ACO code.
When you have a model, then it is common to create the fitness function using the strategy:
- use the passed-in trial values of the parameters to predict what the results would be at each configuration of independent variables
- subtract the known values at those locations
- square each individual result
- sum those squares
This is sometimes known as a "sum of squared errors" function. It is the square of the Euclidean distance between the predicted values and the known values; a perfect fit would give a sum of squared errors of zero.
When you have a system of equations:
- take the left sides of the equations minus the right side of the equations
- square those differences
- sum those squares
This sum of squared errors would mathematically be zero when each of the equations balanced. (In practice you can run into numeric difficulties.)
Kategorien
Mehr zu Solver-Based Linear Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!