Giter VIP home page Giter VIP logo

tsp_collection's Introduction

Introduction

复现了一些TSP问题的相关算法,对TSP数据集st70.tsp进行了测试,并对此测试数据调整了参数,开箱即用。

Algorithms

  • 动态规划(DP)
  • 遗传算法(GA)
  • 粒子群算法(PSO)
  • 模拟退火算法(SA)
  • 蚁群算法(ACO)
  • 自适应神经网络(SOM)
  • 禁忌搜索算法(TS)
  • 指针网络(Pointer-network)[pytorch版本复现]

Tips

  1. 遗传算法核心要素:父代集合的数量,选择两个父代个体的方式,交叉操作、变异操作
  2. 粒子群算法核心要素:个体当前最优与粒子群群体当前最优,生成新个体的时候与这两个最优解都会发生交叉
  3. 模拟退火算法核心要素:跳出最优解的概率必须是会随着时间变化,降温速度,初始温度,最终温度,随机解的生成方式,随季解数量
  4. 蚁群算法核心要素:不同城市之间的概率转移矩阵不断变化(受信息素的影响),参数繁多
  5. 自适应神经网络核心要素:获胜神经元的定义方式,获胜领域的大小,竞争型神经网络,常用于聚类方法
  6. 禁忌搜索算法核心要素:禁忌表长度,产生随机解的方式,本实现中为两两交换枚举(大规模节点不适用)

Results

动态规划 avatar

遗传算法
avatar

粒子群算法
avatar

模拟退火算法
avatar

蚁群算法
avatar

自适应神经网络
avatar

禁忌搜索
avatar

TODO

如果你有什么其他想要实现的算法没有完成,或者基于上述算法有一些改进方案并愿意开源,请push分支或者给我相关代码我进行复现感谢

refrence

SMO复现代码

tsp_collection's People

Contributors

kellenf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.