早教吧作业答案频道 -->其他-->
lingo计算0-1规划问题程序无法算出结果,程序如下:sets:r/1..20/:;c/1..13/:;link(r,c):score,x;endsetsdata:score=222.3615\x05160.2847\x0592.8681\x05192.9344\x05210.9621\x05225.0175\x05228.932\x05190.0116\x05195.1581\x05120.8344\x0558.80
题目详情
lingo计算0-1规划问题程序无法算出结果,程序如下:
sets:
r/1..20/:;
c/1..13/:;
link(r,c):score,x;
endsets
data:
score=
222.3615\x05160.2847\x0592.8681\x05192.9344\x05210.9621\x05225.0175\x05228.932\x05190.0116\x05195.1581\x05120.8344\x0558.8093\x05118.5011\x0548.8522
204.6392\x05141.2972\x0573.8806\x05173.9469\x05191.9747\x05206.03\x05211.2097\x05172.2893\x05177.4358\x05103.1121\x0539.8219\x05103.0954\x0560.3507
183.5227\x05127.6723\x0560.2557\x05160.3219\x05178.3497\x05192.4051\x05190.0932\x05151.1728\x05156.3192\x0581.9956\x0560.9384\x0581.9788\x0543.9339
219.9738\x05150.0851\x0582.6685\x05182.7348\x05200.7626\x05214.8179\x05226.5443\x05162.2691\x05155.3534\x0581.0298\x0548.6098\x0573.9587\x053.5
176.2819\x05129.6963\x0562.2797\x05162.3459\x05177.4952\x05191.5506\x05182.8524\x05113.0687\x05106.1529\x0531.8293\x0594.2112\x0524.7583\x0552.5507
176.5878\x05130.0021\x0562.5855\x05162.6518\x05177.8011\x05191.8565\x05183.1583\x05113.3745\x05106.4588\x0532.1352\x0594.517\x0525.0641\x0553.3733
149.1494\x05109.0122\x0541.5956\x05141.6619\x05150.3627\x05164.4181\x05155.7199\x0585.7022\x0580.1546\x055.831 \x0573.5271\x0512.902\x0579.9172
140.9251\x0594.3394\x0526.9228\x05126.9891\x05142.1384\x05156.1938\x05147.4956\x05102.2803\x05104.9318\x0530.6082\x0558.8543\x0530.9947\x0586.7728
130.1071\x0582.742\x0515.3254\x05115.3917\x05131.3205\x05145.3759\x05136.6776\x0597.7572\x05107.2441\x0534.923\x0547.2569\x0541.9941\x0593.3667
75.8659\x05127.7566\x0569.5667\x0595.1069\x0577.0792\x0591.1346\x0582.4364\x05141.9486\x05151.4355\x0579.1145\x05101.4982\x0586.1855\x05147.608
37.9135\x0583.373\x05113.9503\x0550.7233\x0532.6956\x0546.751\x0538.0527\x05186.3323\x05195.8191\x05123.4981\x05145.8818\x05130.5691\x05191.9916
0\x05 119.5028\x05145.4326\x0586.8532\x0568.8254\x0564.77\x05 35.9163\x05217.8145\x05227.3013\x05154.9803\x05177.3641\x05162.0514\x05223.4738
59.77\x0559.7328\x05127.1494\x0527.0831\x059.0554\x055\x05 23.8537\x05228.0832\x05237.57\x05165.249\x05161.2082\x05172.3201\x05213.3179
119.5028\x050\x05 67.4166\x0532.6497\x0550.6774\x0564.7328\x0583.5865\x05180.4992\x05189.1668\x05114.8432\x05101.4754\x05121.9142\x05153.5851
170.2961\x05132.9808\x0565.5642\x05165.6305\x05171.5094\x05185.5648\x05176.8666\x0547.5184\x0557.0053\x0544.0147\x0597.4957\x0551.0858\x05118.101
145.4326\x0567.4166\x050\x05 100.0663\x05118.094\x05132.1494\x05151.0031\x05113.0826\x05121.7502\x0547.4265\x0534.0588\x0554.4976\x0586.1685
218.9211\x05149.0324\x0581.6158\x05181.6821\x05199.7098\x05213.7652\x05225.4916\x05186.5712\x05195.2387\x05120.9151\x0547.557\x05127.9862\x0578.2052
242.4718\x05185.1448\x05117.7282\x05217.7945\x05235.8223\x05249.8776\x05249.0423\x05210.1219\x05215.2683\x05140.9447\x0583.6695\x05136.9926\x0567.3436
225.4653\x05169.6148\x05102.1982\x05202.2645\x05220.2923\x05234.3476\x05232.0358\x05193.1153\x05198.2618\x05123.9382\x0583.2646\x05119.9861\x0550.3371
269.458\x05212.1311\x05144.7145\x05244.7808\x05262.8085\x05276.8639\x05276.0286\x05230.1082\x05223.1925\x05148.8689\x05110.6557\x05141.7978\x0564.4888;
enddata
min=@sum(link:x*score);
@for(link:@bin(x));
@for(r(i):@sum(c(j):x(i,j))=1);
@for(c(j):@sum(r(i):x(i,j))
sets:
r/1..20/:;
c/1..13/:;
link(r,c):score,x;
endsets
data:
score=
222.3615\x05160.2847\x0592.8681\x05192.9344\x05210.9621\x05225.0175\x05228.932\x05190.0116\x05195.1581\x05120.8344\x0558.8093\x05118.5011\x0548.8522
204.6392\x05141.2972\x0573.8806\x05173.9469\x05191.9747\x05206.03\x05211.2097\x05172.2893\x05177.4358\x05103.1121\x0539.8219\x05103.0954\x0560.3507
183.5227\x05127.6723\x0560.2557\x05160.3219\x05178.3497\x05192.4051\x05190.0932\x05151.1728\x05156.3192\x0581.9956\x0560.9384\x0581.9788\x0543.9339
219.9738\x05150.0851\x0582.6685\x05182.7348\x05200.7626\x05214.8179\x05226.5443\x05162.2691\x05155.3534\x0581.0298\x0548.6098\x0573.9587\x053.5
176.2819\x05129.6963\x0562.2797\x05162.3459\x05177.4952\x05191.5506\x05182.8524\x05113.0687\x05106.1529\x0531.8293\x0594.2112\x0524.7583\x0552.5507
176.5878\x05130.0021\x0562.5855\x05162.6518\x05177.8011\x05191.8565\x05183.1583\x05113.3745\x05106.4588\x0532.1352\x0594.517\x0525.0641\x0553.3733
149.1494\x05109.0122\x0541.5956\x05141.6619\x05150.3627\x05164.4181\x05155.7199\x0585.7022\x0580.1546\x055.831 \x0573.5271\x0512.902\x0579.9172
140.9251\x0594.3394\x0526.9228\x05126.9891\x05142.1384\x05156.1938\x05147.4956\x05102.2803\x05104.9318\x0530.6082\x0558.8543\x0530.9947\x0586.7728
130.1071\x0582.742\x0515.3254\x05115.3917\x05131.3205\x05145.3759\x05136.6776\x0597.7572\x05107.2441\x0534.923\x0547.2569\x0541.9941\x0593.3667
75.8659\x05127.7566\x0569.5667\x0595.1069\x0577.0792\x0591.1346\x0582.4364\x05141.9486\x05151.4355\x0579.1145\x05101.4982\x0586.1855\x05147.608
37.9135\x0583.373\x05113.9503\x0550.7233\x0532.6956\x0546.751\x0538.0527\x05186.3323\x05195.8191\x05123.4981\x05145.8818\x05130.5691\x05191.9916
0\x05 119.5028\x05145.4326\x0586.8532\x0568.8254\x0564.77\x05 35.9163\x05217.8145\x05227.3013\x05154.9803\x05177.3641\x05162.0514\x05223.4738
59.77\x0559.7328\x05127.1494\x0527.0831\x059.0554\x055\x05 23.8537\x05228.0832\x05237.57\x05165.249\x05161.2082\x05172.3201\x05213.3179
119.5028\x050\x05 67.4166\x0532.6497\x0550.6774\x0564.7328\x0583.5865\x05180.4992\x05189.1668\x05114.8432\x05101.4754\x05121.9142\x05153.5851
170.2961\x05132.9808\x0565.5642\x05165.6305\x05171.5094\x05185.5648\x05176.8666\x0547.5184\x0557.0053\x0544.0147\x0597.4957\x0551.0858\x05118.101
145.4326\x0567.4166\x050\x05 100.0663\x05118.094\x05132.1494\x05151.0031\x05113.0826\x05121.7502\x0547.4265\x0534.0588\x0554.4976\x0586.1685
218.9211\x05149.0324\x0581.6158\x05181.6821\x05199.7098\x05213.7652\x05225.4916\x05186.5712\x05195.2387\x05120.9151\x0547.557\x05127.9862\x0578.2052
242.4718\x05185.1448\x05117.7282\x05217.7945\x05235.8223\x05249.8776\x05249.0423\x05210.1219\x05215.2683\x05140.9447\x0583.6695\x05136.9926\x0567.3436
225.4653\x05169.6148\x05102.1982\x05202.2645\x05220.2923\x05234.3476\x05232.0358\x05193.1153\x05198.2618\x05123.9382\x0583.2646\x05119.9861\x0550.3371
269.458\x05212.1311\x05144.7145\x05244.7808\x05262.8085\x05276.8639\x05276.0286\x05230.1082\x05223.1925\x05148.8689\x05110.6557\x05141.7978\x0564.4888;
enddata
min=@sum(link:x*score);
@for(link:@bin(x));
@for(r(i):@sum(c(j):x(i,j))=1);
@for(c(j):@sum(r(i):x(i,j))
▼优质解答
答案和解析
你后面两个约束写反了 应该前面的写
看了lingo计算0-1规划问题程...的网友还看了以下: