ALNS:Python中的自适应大邻域搜索-源码

上传者: 42126274 | 上传时间: 2021-08-17 15:58:32 | 文件大小: 246KB | 文件类型: ZIP
基于的描述,此程序包提供了自适应大邻域搜索(ALNS)元启发式方法的一般,经过充分记录和测试的实现。 它可以按以下常规方式安装: pip install alns 如何使用 alns包提供了两个类,即ALNS和State 。 第一个可以用来运行ALNS算法,第二个可以被子类化以存储解决方案状态-它所需要的只是定义一个objective成员函数,并返回一个目标值。 必须为ALNS算法提供接受标准,以便在每次迭代时确定是否接受新的解决方案状态。 给出了通用验收标准的概述 。 在alns.criteria ,已经为您实现了几个 HillClimbing 。 最简单的接受标准是爬山,仅接受提高目标值的解决方案。 RecordToRecordTravel 。 仅当改进满足某些更新阈值时,此准则才接受解决方案。 SimulatedAnnealing 。 当标度概率大于某个随机数时,使用更新温

文件下载

资源详情

[{"title":"( 42 个子文件 246KB ) ALNS:Python中的自适应大邻域搜索-源码","children":[{"title":"ALNS-master","children":[{"title":".codacy.yml <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"Pipfile.lock <span style='color:#111;'> 29.86KB </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"xqf131.tsp <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"cutting_stock_problem.ipynb <span style='color:#111;'> 83.90KB </span>","children":null,"spread":false},{"title":"travelling_salesman_problem.ipynb <span style='color:#111;'> 215.02KB </span>","children":null,"spread":false},{"title":"xqf131.opt.tour <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"640.csp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"setup.cfg <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"LICENSE.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"Pipfile <span style='color:#111;'> 358B </span>","children":null,"spread":false},{"title":"alns","children":[{"title":"ALNS.py <span style='color:#111;'> 12.76KB </span>","children":null,"spread":false},{"title":"Statistics.py <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"criteria","children":[{"title":"update.py <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"AcceptanceCriterion.py <span style='color:#111;'> 995B </span>","children":null,"spread":false},{"title":"RecordToRecordTravel.py <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"HillClimbing.py <span style='color:#111;'> 350B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_update.py <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"test_record_to_record_travel.py <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_hill_climbing.py <span style='color:#111;'> 843B </span>","children":null,"spread":false},{"title":"test_simulated_annealing.py <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false}],"spread":false},{"title":"SimulatedAnnealing.py <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"State.py <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"tools","children":[{"title":"exceptions.py <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"warnings.py <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":false},{"title":"Result.py <span style='color:#111;'> 6.47KB </span>","children":null,"spread":false},{"title":"select_operator.py <span style='color:#111;'> 631B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_result.py <span style='color:#111;'> 7.90KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_select_operator.py <span style='color:#111;'> 859B </span>","children":null,"spread":false},{"title":"conftest.py <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"states.py <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"test_alns.py <span style='color:#111;'> 9.07KB </span>","children":null,"spread":false},{"title":"test_statistics.py <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 835B </span>","children":null,"spread":false},{"title":".coveragerc <span style='color:#111;'> 289B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明