摘要: 1. 在Lingo中使用集合 4.1 集合的基本用法和lingo模型的基本要素 Lingo虽然使用方便,但是如果要解决几万个,几十万个变量的优化问题时,我们总不能一个一个地列出x1,x2,…,x1000来解决,而这样的问题在实际企业的应用中也是经常遇到的。好在Lingo中设计了集合语言来表示大规模变 阅读全文
posted @ 2017-04-08 23:01 douzujun 阅读(13772) 评论(4) 推荐(2) 编辑
摘要: model: sets: cities/1..9/:level; link(cities, cities): distance, x; !距离矩阵; endsets data: distance = 0 200 660 170 127 225 490 420 330 200 0 ... 阅读全文
posted @ 2017-04-08 19:14 douzujun 阅读(12732) 评论(0) 推荐(0) 编辑