Model:
题目
Model:
sets:
first/1..3/:L;
second/1..8/:x,z;
third/1..5/:c;
mode(first,second):y;
endsets
data:
c=106.333,129.923,149.81,165.7,179.52;
z=5,7,5,4,6,5,5,3;
x=25,36,32,15,31,28,22,12;
enddata
min=@sum(mode(i,j):y(i,j)*z(j))+@sum(first(i):0.66*L(i)*Q^0.51);
@sum(second(j):y(1,j)*x(j))>=c(1);
@sum(second(j):y(2,j)*x(j))+@sum(second(j):y(1,j)*x(j))*0.9>=c(2);
@sum(second(j):y(3,j)*x(j))+@sum(second(j):y(2,j)*x(j)*0.9+@sum(second(j):y(1,j)*x(j))*(0.9^2)>=c(3);
Q+@sum(second(j):y(4,j)*x(j))+@sum(second(j):y(3,j)*x(j))*0.9+@sum(second(j):y(2,j)*x(j))*(0.9^2)+@sum(second(j):y(1,j)*x(j))*(0.9^3)>=c(4);
Q+@sum(second(j):y(5,j)*x(j))+@sum(second(j):y(4,j)*x(j))*0.9+@sum(second(j):y(3,j)*x(j))*(0.9^2)+@sum(second(j):y(2,j)*x(j))*(0.9^3)+@sum(second(j):y(1,j)*x(j))*(0.9^4)>=c(5);
@for(first(i):@sum(second(j):y(i,j)*z(j))+(0.66*L(i)*Q^0.51)
答案
Q+@sum(second(j):y(4,j)*x(j))+@sum(second(j):y(3,j)*x(j))*0.9+@sum(second(j):y(2,j)*x(j))*(0.9^2)+@sum(second(j):y(1,j)*x(j))*(0.9^3)>=c(4);
这一行,y的下标不对,y是一个三行八列的矩阵,不会有y(4,j)
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 《论语》中的“论”是()的意思,“语”就是语言,“论语”是一部记述()言行的书?
- 阅读下面的文字,根据要求作文.最近,网络上流行着这样一段话:“你要搞清楚自己人生的剧本——不是你父
- like和likes的区别
- 如果某一蛋白质可能参与某一发育事件,如何设计相关实验来研究这一蛋白质在该发育事件中的作用.举例说明
- 王老师带了40元钱去买文具共买了3支钢笔和5支圆珠笔剩下的钱如果再买2支圆珠笔还差4角,
- Can you speak English?Yes,but only______.A.a little.B.a lot.C.a few.D.few
- Mr.Chen is the teacher _____.A.i respect her most B.i respect most C.that i respect her most D.
- 描写冬雪的诗句
- 已知关于x的方程4(x+5)-2=5+3a的解不小于方程(2a+1)x/3=a(3x+3)/2,求a的取值范围.
- 1升水有10毫克氧化钙称1度,在8度以上称钙离子硬水,某泉水钙离子0.0025mol/L,镁离子0.002mol/L,碳酸氢根