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

求高手看看这一段lingo程序有什么错误。model:maxz=35*x11+12*x12+16*x13+38*x14+5*x15+2*x16+25*x21+8*x22+9*x23+24*x24+6*x25+8*x26+12*x31+8*x32+11*x33+27*x34+3*x35+2*x36+38*x41+15*x42+14*x43+39*x44+2*x45+9*x46+0*x51+9*x52+8*x53+25*x54+10*

题目详情
求高手看看这一段lingo程序有什么错误。
model:
max z=35*x11+12*x12+16*x13+38*x14+5*x15+2*x16+25*x21+8*x22+9*x23+24*x24+6*x25+8*x26+12*x31+8*x32+11*x33+27*x34+3*x35+2*x36+38*x41+15*x42+14*x43+39*x44+2*x45+9*x46+0*x51+9*x52+8*x53+25*x54+10*x55+5*x56+0*x61+0*x62+0*x63+14*x64+6*x65+7*x66;
x11+x21+x31+x41+x51+x61=1;
x12+x22+x32+x42+x52+x62=1;
x13+x23+x33+x43+x53+x63=1;
x14+x24+x34+x44+x54+x64=1;
x15+x25+x35+x45+x55+x65=1;
x16+x26+x36+x46+x56+x66=1;
x11+x12+x13+x14+x15+x16=1;
x21+x22+x23+x24+x25+x26=1;
x31+x32+x33+x34+x35+x36=1;
x41+x42+x43+x44+x45+x46=1;
x51+x52+x53+x54+x55+x56=1;
x61+x62+x63+x64+x65+x66=1;
@bin(x11);@bin(x12);@bin(x13);@bin(x14);@bin(x15);@bin(x16);
@bin(x21);@bin(x22);@bin(x23);@bin(x24);@bin(x25);@bin(x26);
@bin(x31);@bin(x32);@bin(x33);@bin(x34);@bin(x35);@bin(x36);
@bin(x41);@bin(x42);@bin(x43);@bin(x44);@bin(x45);@bin(x46);
@bin(x51);@bin(x52);@bin(x53);@bin(x54);@bin(x55);@bin(x56);
@bin(x61);@bin(x62);@bin(x63);@bin(x64);@bin(x65);@bin(x66);
end
▼优质解答
答案和解析
格式有问题 要写max= 而不是max z=
model:
max=35*x11+12*x12+16*x13+38*x14+5*x15+2*x16+25*x21+8*x22+9*x23+24*x24+6*x25+8*x26+12*x31+8*x32+11*x33+27*x34+3*x35+2*x36+38*x41+15*x42+14*x43+39*x44+2*x45+9*x46+0*x51+9*x52+8*x53+25*x54+10*x55+5*x56+0*x61+0*x62+0*x63+14*x64+6*x65+7*x66;
x11+x21+x31+x41+x51+x61=1;
x12+x22+x32+x42+x52+x62=1;
x13+x23+x33+x43+x53+x63=1;
x14+x24+x34+x44+x54+x64=1;
x15+x25+x35+x45+x55+x65=1;
x16+x26+x36+x46+x56+x66=1;
x11+x12+x13+x14+x15+x16=1;
x21+x22+x23+x24+x25+x26=1;
x31+x32+x33+x34+x35+x36=1;
x41+x42+x43+x44+x45+x46=1;
x51+x52+x53+x54+x55+x56=1;
x61+x62+x63+x64+x65+x66=1;
@bin(x11);@bin(x12);@bin(x13);@bin(x14);@bin(x15);@bin(x16);
@bin(x21);@bin(x22);@bin(x23);@bin(x24);@bin(x25);@bin(x26);
@bin(x31);@bin(x32);@bin(x33);@bin(x34);@bin(x35);@bin(x36);
@bin(x41);@bin(x42);@bin(x43);@bin(x44);@bin(x45);@bin(x46);
@bin(x51);@bin(x52);@bin(x53);@bin(x54);@bin(x55);@bin(x56);
@bin(x61);@bin(x62);@bin(x63);@bin(x64);@bin(x65);@bin(x66);
end