早教吧作业答案频道 -->其他-->
这个程序为什么运行不了,请帮帮忙,急用,谢谢model:sets:workers/w1..w5/;jobs/j1..j5/;links(workers,jobs):cost,volume;endsetsmin=@sum(links:cost*volume);@for(workers(I):@sum(jobs(J):volume(I,J))=1;);@for(jobs(J):@sum(w
题目详情
这个程序为什么运行不了,请帮帮忙,急用,谢谢
model:
sets:
workers/w1..w5/;
jobs/j1..j5/;
links(workers,jobs): cost,volume;
endsets
min=@sum(links: cost*volume);
@for(workers(I):@sum(jobs(J): volume(I,J))=1; );
@for(jobs(J):@sum(workers(I): volume(I,J))=1;);
data:
cost= 8 6 10 9 12
9 12 7 11 9
7 4 3 5 8
9 5 8 11 8
4 6 7 5 11;
enddata
end
model:
sets:
workers/w1..w5/;
jobs/j1..j5/;
links(workers,jobs): cost,volume;
endsets
min=@sum(links: cost*volume);
@for(workers(I):@sum(jobs(J): volume(I,J))=1; );
@for(jobs(J):@sum(workers(I): volume(I,J))=1;);
data:
cost= 8 6 10 9 12
9 12 7 11 9
7 4 3 5 8
9 5 8 11 8
4 6 7 5 11;
enddata
end
▼优质解答
答案和解析
你的第15行代码的“;”打错了,你的是中文的分号“;”,在LINGO里面只能识别英文的标点符号,所以应该是";"才行.运行结果如下:Global optimal solution found. Objective value: 30.00...
看了这个程序为什么运行不了,请帮帮...的网友还看了以下:
___Chinese,we learn English ,math,history and so 2020-05-14 …
the old man died ___cold___a cold night.A from;at 2020-05-16 …
1.He did not want to go( ).A.for one reason and o 2020-05-16 …
这个程序要求是输出m个数中任取n个数的所有组合,我要抓狂了==#include;#includei 2020-06-28 …
C语言冒泡排序法,疑问啊~~~~~~~~~~~~~~~~~#include<stdio.h>#de 2020-07-23 …
C语言的for相关问题以下是一个代码#include<stdio.h>main(){inta[4] 2020-07-23 …
求100到1000之间的素数#include"stdio.h"main(){inti,j,p;fo 2020-07-23 …
1-6排序,右边大于左边下面大于上面表格如ABCDEF为什么我的程序排除不了E=F和B=D的情况#i 2020-10-30 …
帮我做这些题目:3.设i,j为int型变量,则下面for循环语句的执行结果是for(I=10,j=0 2020-10-30 …
另外,如果我想把这一句也加进去怎么办?for/f"delims="%%ain('dir/a-d/s/ 2020-11-01 …