早教吧作业答案频道 -->数学-->
大师,错误在哪里?MODELSETS:dui/1,2,3,4,5,6,7,8,9,10/:s,t;che/1..7/;link(dui,che):x,m,g,h;ENDSETSDATA:s=6.53.88.314.711.221.4295.317.619.1;t(i)=s(i)*3600/40;m=14147070014770000147770001470140001470700014
题目详情
大师,错误在哪里?
MODEL
SETS:
dui /1,2,3,4,5,6,7,8,9,10/:s,t;
che /1..7/;
link(dui,che):x,m,g,h;
ENDSETS
DATA:
s=6.5 3.8 8.3 14.7 11.2 21.4 29 5.3 17.6 19.1;
t(i)=s(i)*3600/40;
m=14 14 7 0 7 0 0
14 7 7 0 0 0 0
14 7 7 7 0 0 0
14 7 0 14 0 0 0
14 7 0 7 0 0 0
14 14 7 14 0 0 0
7 7 0 0 0 0 0
14 7 0 14 0 0 0
14 7 7 0 14 0 0
14 7 0 7 0 0 0;
g=0 0 0 0 1 0 0
0 0 0 0 0 0 0
0 0 0 0 0 1 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 1 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 0 0 0;
h=0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0;
ENDDATA
min=@sum(dui(i):
@sum(che(j):x(i,j)*t(i)));
@sum(link:x*m)>=2500*0.12;
@sum(link:x*g)>=6;
@sum(link:x*h)>=2;
@sum(link:x)>=49*4*2500^0.5/90+23*150/300+23*20/30+17+12
END
MODEL
SETS:
dui /1,2,3,4,5,6,7,8,9,10/:s,t;
che /1..7/;
link(dui,che):x,m,g,h;
ENDSETS
DATA:
s=6.5 3.8 8.3 14.7 11.2 21.4 29 5.3 17.6 19.1;
t(i)=s(i)*3600/40;
m=14 14 7 0 7 0 0
14 7 7 0 0 0 0
14 7 7 7 0 0 0
14 7 0 14 0 0 0
14 7 0 7 0 0 0
14 14 7 14 0 0 0
7 7 0 0 0 0 0
14 7 0 14 0 0 0
14 7 7 0 14 0 0
14 7 0 7 0 0 0;
g=0 0 0 0 1 0 0
0 0 0 0 0 0 0
0 0 0 0 0 1 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 1 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 0 0 0;
h=0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0;
ENDDATA
min=@sum(dui(i):
@sum(che(j):x(i,j)*t(i)));
@sum(link:x*m)>=2500*0.12;
@sum(link:x*g)>=6;
@sum(link:x*h)>=2;
@sum(link:x)>=49*4*2500^0.5/90+23*150/300+23*20/30+17+12
END
▼优质解答
答案和解析
g数据个数是不对的 自己点清楚写对
MODEL:
SETS:
dui/1..10/:s,t;
che/1..7/;
link(dui,che):x,m,g,h;
ENDSETS
DATA:
s=6.5 3.8 8.3 14.7 11.2 21.4 29 5.3 17.6 19.1;
m=14 14 7 0 7 0 0
14 7 7 0 0 0 0
14 7 7 7 0 0 0
14 7 0 14 0 0 0
14 7 0 7 0 0 0
14 14 7 14 0 0 0
7 7 0 0 0 0 0
14 7 0 14 0 0 0
14 7 7 0 14 0 0
14 7 0 7 0 0 0;
!g=0 0 0 0 1 0 0
0 0 0 0 0 0 0
0 0 0 0 0 1 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 1 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 0 0 0;
h=0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0;
ENDDATA
@for(dui(i):t(i)=s(i)*3600/40);
min=@sum(dui(i):
@sum(che(j):x(i,j)*t(i)));
@sum(link:x*m)>=2500*0.12;
@sum(link:x*g)>=6;
@sum(link:x*h)>=2;
@sum(link:x)>=49*4*2500^0.5/90+23*150/300+23*20/30+17+12;
END
MODEL:
SETS:
dui/1..10/:s,t;
che/1..7/;
link(dui,che):x,m,g,h;
ENDSETS
DATA:
s=6.5 3.8 8.3 14.7 11.2 21.4 29 5.3 17.6 19.1;
m=14 14 7 0 7 0 0
14 7 7 0 0 0 0
14 7 7 7 0 0 0
14 7 0 14 0 0 0
14 7 0 7 0 0 0
14 14 7 14 0 0 0
7 7 0 0 0 0 0
14 7 0 14 0 0 0
14 7 7 0 14 0 0
14 7 0 7 0 0 0;
!g=0 0 0 0 1 0 0
0 0 0 0 0 0 0
0 0 0 0 0 1 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 1 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 1 0 0 0;
h=0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0;
ENDDATA
@for(dui(i):t(i)=s(i)*3600/40);
min=@sum(dui(i):
@sum(che(j):x(i,j)*t(i)));
@sum(link:x*m)>=2500*0.12;
@sum(link:x*g)>=6;
@sum(link:x*h)>=2;
@sum(link:x)>=49*4*2500^0.5/90+23*150/300+23*20/30+17+12;
END
看了大师,错误在哪里?MODELS...的网友还看了以下:
一物体从一高处由静止开始落下,它落下的高度h与时间t有下面的关系:时间t(s)1234…高度h(m 2020-05-13 …
怎么用matlab计算定积分,y=((2*pi*h*c^2)/x^5)/(exp((h*c)/(x 2020-05-16 …
matlab 结果用参数表示syms t a b c h;u=a/(4*3*2*1)*t^4+b/ 2020-05-16 …
matlab rotate程序求大神修改t=0:pi/1000:3.5*pi;k=fix(2*t/ 2020-05-17 …
怎样用matlab解这个方程5*x*(exp(h*c/(k*x*t))-1)-h*c/(k*t)* 2020-06-03 …
二元函数积分的应用题一个气球的体积被定义为V=(e^-h)/(1+t^2),h(t)>0表示在t时 2020-06-03 …
数学课本上讲lim△t→0h(2+△t)-h(2)/△t=-13.1,表示当t=2,△t趋近于0时 2020-07-21 …
大师,错误在哪里?MODELSETS:dui/1,2,3,4,5,6,7,8,9,10/:s,t;c 2020-11-01 …
一辆汽车匀速通过某段公路,所需时间t(h)与行驶速度v(km/h)满足函数关系:t=kv,其图象为如 2020-11-19 …
现给一水箱放水,阀门打开t小时后水箱中水的深度h可以近似认为由公式h=5(1-t/10)^2给出.求 2020-11-28 …