LINGO教程
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( 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
「LINGO教程.pdf」https://www.aliyundrive.com/s/nYqeCQ2N1J6
页:
[1]