lingo 代码Variables:x1~the number of acres of cornx2~the numbe
lingo 代码
Variables:x1~the number of acres of corn
x2~the number of acres of tomatoes
x3~the number of acres of beans
x4~the number of acres of peas
x5~the number of acres of carrots
x6~the number of acres of unused land
x7~the number of borrowed amount
1 xi>0
yi=
0 xi=0
Maximize:95x1+1300x2+275x3+345x4+435x5-3000-x7-0.03x7
Subject to
20x1+200x2+55x3+40x4+75x5+(5x1+120x2+25x3+35x4+40x5)7.25+9x6=3000+x7
5x1+120x2+25x3+35x4+40x5+2x6≤1800
x1+x2+x3+x4+x5+x6=100
x7≤12000
xi25yi
xi≥0 and integral for i=1,…,7
0≤yi≤1 and integral
以上是条件限制,求好心大神转换成lingo代码.