早教吧 育儿知识 作业答案 考试题库 百科 知识分享

lingo求救急MODEL:SETS:ID/1..4/;NO(ID):a,b,n;endsetsmax=a(1)*n(1)*(b(1)+t)*@floor((W-t)/(b(1)+t))+a(2)*n(2)*@floor((W-t)/(b(2)+t))*(b(2)+t)+a(3)*n(3)*@floor((W-t)/(b(3)+t))*(b(3)+t)+a(4)*n(4)*@floor((W-t)/(b(4)+t))*(b(4)+t)+n(1)*t*(W+a(1))+n(2)*t*W

题目详情
lingo求救急
MODEL:
SETS:
ID/1..4/;
NO(ID):a,b,n;
endsets
max=a(1)*n(1)*(b(1)+t)*@floor((W-t)/(b(1)+t))+a(2)*n(2)*@floor((W-t)/(b(2)+t))*(b(2)+t)+a(3)*n(3)*@floor((W-t)/(b(3)+t))*(b(3)+t)+a(4)*n(4)*@floor((W-t)/(b(4)+t))*(b(4)+t)+n(1)*t*(W+a(1))+n(2)*t*W+n(2)*t*a(2)+n(3)*t*(W+a(3))+n(4)*t*(W+a(4))+t*W;
n(1)*a(1)+n(2)*a(2)+n(3)*a(3)+(n(1)+n(2)+n(3)+1)*t
▼优质解答
答案和解析
可以啊,我用a=1,2,3,4;b=2,3,4,5;试过了,运行没问题,只是没结果