粒子群算法 PSO
摘要:
中规中矩, 没有ABC快 1 -- 粒子群算法 PSO(全局,变权重) 2 3 -- lua 相关简易操作 4 sin = math.sin 5 cos = math.cos 6 sqrt = math.sqrt 7 pi = math.pi 8 random = math.random 9 exp = math.exp 10 int = math.floor 11 12 13 -- 获得不同的随机序列 14 math.randomseed(os.time()) 15 16 17 -- ==============================求解函数======... 阅读全文
posted @ 2013-05-20 20:19 郁郁思扬 阅读(682) 评论(0) 推荐(0) 编辑