2013年5月21日

遗传算法 GA

摘要: 保留精英, 选择函数可能有问题 1 -- 遗传算法 GA 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-21 12:49 郁郁思扬 阅读(643) 评论(0) 推荐(0) 编辑

导航