摘要: #!usr/bin/env python#-*- coding:utf-8 _*-"""@author:fonttian @file: 粒子群优化算法.py@time: 2017/10/15"""... 阅读全文
posted @ 2017-10-16 20:59 FontTian 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #!usr/bin/env python#-*- coding:utf-8 _*-"""@author:fonttian @file: 粒子群优化算法.py@time: 2017/10/15"""# References from : http://blog.csdn... 阅读全文
posted @ 2017-10-16 20:59 FontTian 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 简介补充:本例子仅仅是之前deap类库的一个实战例子,所以先别问我数学建模的事情,我暂时不想回答(还有为毛踩我文章…..我本来就不是写数学建模的……╮(╯▽╰)╭)(2017/10/31)原问题是... 阅读全文
posted @ 2017-10-16 20:37 FontTian 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 简介补充:本例子仅仅是之前deap类库的一个实战例子,所以先别问我数学建模的事情,我暂时不想回答(还有为毛踩我文章…..我本来就不是写数学建模的……╮(╯▽╰)╭)(2017/10/31)原问题是给出一个定价策略,证明其相较于原来定价策略的优点.那么首先我们第一题第二... 阅读全文
posted @ 2017-10-16 20:37 FontTian 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 特殊自定义评价函数同前def evalKnapsack(individual): weight = 0.0 value = 0.0 for item in individual:... 阅读全文
posted @ 2017-10-16 20:03 FontTian 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 特殊自定义评价函数同前def evalKnapsack(individual): weight = 0.0 value = 0.0 for item in individual: weight += items[item][0] ... 阅读全文
posted @ 2017-10-16 20:03 FontTian 阅读(468) 评论(0) 推荐(0) 编辑
摘要: Source Code#!usr/bin/env python#-*- coding:utf-8 _*-"""@author:fonttian @file: Particle Swarm Opti... 阅读全文
posted @ 2017-10-16 19:41 FontTian 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Source Code#!usr/bin/env python#-*- coding:utf-8 _*-"""@author:fonttian @file: Particle Swarm Optimization Basics.py @time: 2017/10/15... 阅读全文
posted @ 2017-10-16 19:41 FontTian 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Overview 程序概览官方文档:http://deap.readthedocs.io/en/master/index.html 1. Types : 选择你要解决的问题类型,确定要求解的问题个... 阅读全文
posted @ 2017-10-16 19:36 FontTian 阅读(496) 评论(0) 推荐(0) 编辑
摘要: Overview 程序概览官方文档:http://deap.readthedocs.io/en/master/index.html 1. Types : 选择你要解决的问题类型,确定要求解的问题个数,最大值还是最小值 2. Initialization : 初始化基因... 阅读全文
posted @ 2017-10-16 19:36 FontTian 阅读(1047) 评论(0) 推荐(0) 编辑