题目
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代码.
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代码.
提问时间:2021-12-11
答案
max=95*x1+1300*x2+275*x3+345*x4+435*x5-3000-x7-0.03*x7;
20*x1+200*x2+55*x3+40*x4+75*x5+(5*x1+120*x2+25*x3+35*x4+40*x5)*7.25+9*x6=3000+x7;
5*x1+120*x2+25*x3+35*x4+40*x5+2*x6=25*y2;x3>=25*y3;x4>=25*y4;x5>=25*y5;x6>=25*y6;x7>=25*y7;
@gin(x1);@bin(y1);
@gin(x2);@bin(y2);
@gin(x3);@bin(y3);
@gin(x4);@bin(y4);
@gin(x5);@bin(y5);
@gin(x6);@bin(y6);
@gin(x7);@bin(y7);
20*x1+200*x2+55*x3+40*x4+75*x5+(5*x1+120*x2+25*x3+35*x4+40*x5)*7.25+9*x6=3000+x7;
5*x1+120*x2+25*x3+35*x4+40*x5+2*x6=25*y2;x3>=25*y3;x4>=25*y4;x5>=25*y5;x6>=25*y6;x7>=25*y7;
@gin(x1);@bin(y1);
@gin(x2);@bin(y2);
@gin(x3);@bin(y3);
@gin(x4);@bin(y4);
@gin(x5);@bin(y5);
@gin(x6);@bin(y6);
@gin(x7);@bin(y7);
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1已知实数A满足A的平方+2A-8=0,求A+1分之1-A的平方-1分之A+3乘A的平方+4A+3分之A的平方-2A+1的值.
- 2There are five stars in the flag of China.哪里出错了?是on
- 3众人拾柴火焰高,下一句是什么?
- 4The math problem is so difficult that[]students can work it out.
- 5初高中的衔接课程有哪些
- 6昆虫记 第一章 读书笔记
- 7急 请帮我判断并解释 五分之三除以三与五分之三乘以三分之一的意义完全相同
- 8人在说话是发出的声音是靠声带的( ),并( )作为媒介将声音传播出去
- 9八中同学用英语怎么说
- 10为什麼摩擦力F=UN U不等於0,N不等於0,F会等於0
热门考点