Skip to content

Solving the Assignment Problem via implementing Ant colony optimizer.

License

Notifications You must be signed in to change notification settings

rayanf/Assignment-Problem-Ant-Colony

Repository files navigation

TSP-Ant-Colony

Solving TSP problem using Ant colony optimizer.

Usage

Just define your function and call Optimizer with your configuration, and then train it.

colony = Colony(ant_num = 20, 
                matrix = test ,
                base_formun = 10, 
                T_SA = 1, 
                SA_rate = 0.9, 
                beta = 10, 
                p_local = 0.4, 
                alpha = 0.2,
                q_0 = 0.7
               )
cost_history ,path_history = colony.training(50)

Learning plot

image

Contributing

Pull requests are welcome.

License

MIT

About

Solving the Assignment Problem via implementing Ant colony optimizer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published