lingo优化解线性方程组的详细使用方法
时间:2022-10-26 17:54
当前不少网友表示自己才接触lingo这款应用,还不晓得优化解线性方程组的操作,接下来就为你们分享lingo优化解线性方程组的详细使用方法,大家都来一起学习吧。
lingo优化解线性方程组的详细使用方法
打开lingo

这里要优化的方程组如下,小编已将其输入lingo中了,要注意的是不要输错字符了,中英文输入问题:

原本的字体很小如下图一:但想变大怎么办,这里可以Ctrl+你鼠标上的滑动建,就能变大了,


接下来进行运行,如下就是运行

运行结果如下:

当然这个还是有必要解释一下的:
min(最小值)=406.6667
X1 = 70.00000
X2 = 0.000000
X3 = 3.333333
x4 = 0.000000
X5 = 50.00000
X6 = 16.66667
至于其他的这里暂时还不关心。

当然,如果要x1,x2,x3,x4,x5都为整数,怎么办呢?
介绍一下lingo怎么限制整数,用这个表示@gin(变量)表示整数;

运行后的结果如下:
min(最小值)=408
X1 = 68.00000
X2 = 0.000000
X3 = 4.000000
X4 = 2.000000
X5 = 50.00000
X6 = 16.00000

学完本文lingo优化解线性方程组的详细操作内容,是不是觉得以后操作起来会更容易一点呢?