万能杂货铺

 找回密码
 立即注册
搜索
查看: 1069|回复: 0

LINGO教程

[复制链接]
Benjamin 发表于 2022-4-14 15:45:50


LINGO 教程
§1 LINGO 快速入门 .....................................................................................................................3
§2 LINGO 中的集.........................................................................................................................5
2.1 为什么使用集....................................................................................................................5
2.2 什么是集............................................................................................................................5
2.3 模型的集部分....................................................................................................................5
§3 模型的数据部分和初始部分...................................................................................................8
3.1 模型的数据部分................................................................................................................9
3.2 模型的初始部分..............................................................................................................11
§4 LINGO 函数...........................................................................................................................11
4.1 基本运算符......................................................................................................................12
4.2 数学函数..........................................................................................................................13
4.3 金融函数..........................................................................................................................14
1.@fpa(I,n)...................................................................................................................14
2.@fpl(I,n)....................................................................................................................14
4.4 概率函数..........................................................................................................................14
1.@pbn(p,n,x) ..............................................................................................................14
2.@pcx(n,x)..................................................................................................................15
3.@peb(a,x)..................................................................................................................15
4.@pel(a,x)...................................................................................................................15
5.@pfd(n,d,x)...............................................................................................................15
6.@pfs(a,x,c)................................................................................................................15
7.@phg(pop,g,n,x) .......................................................................................................15
8.@ppl(a,x) ..................................................................................................................15
9.@pps(a,x)..................................................................................................................15
10.@psl(x)....................................................................................................................15
11.@psn(x)...................................................................................................................16
12.@ptd(n,x) ................................................................................................................16
13.@qrand(seed) ..........................................................................................................16
4.5 变量界定函数..................................................................................................................17
4.6 集操作函数......................................................................................................................17
1.@in(set_name,primitive_index_1 [,primitive_index_2,…]).....................................17
2.@index([set_name,] primitive_set_element) ............................................................17
3.@wrap(index,limit)...................................................................................................18
4.@size(set_name) .......................................................................................................18
4.7 集循环函数......................................................................................................................18
1.@for ..........................................................................................................................18
2.@sum ........................................................................................................................19
3.@min 和@max .........................................................................................................19
4.8 输入和输出函数..............................................................................................................20
1.@file 函数.................................................................................................................20

游客,如果您要查看本帖隐藏内容请回复



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

万能杂货铺

GMT+8, 2024-12-4 01:10 , Processed in 0.065511 second(s), 19 queries .

本站内容均由网友转自网络,如涉及你的利益请联系: [email protected]删除

© 2020-2022

快速回复 返回顶部 返回列表