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

@for(p(i):@sum(p(j):x(i,j))=1);这句话什么意思?model:sets:p/1..12/:w,c;m(p,p):v,x;endsetsdata:v=01537452460183348405867150224038523348425561613722018163043282058393945401803412614624624334243816

题目详情
@for(p(i):@sum(p(j):x(i,j))=1);这句话什么意思?
model:
sets:
p/1..12/:w,c;
m(p,p):v,x;
endsets
data:
v=
0 15 37 45 24 60 18 33 48 40 58 67
15 0 22 40 38 52 33 48 42 55 61 61
37 22 0 18 16 30 43 28 20 58 39 39
45 40 18 0 34 12 61 46 24 62 43 34
24 38 16 34 0 36 27 12 24 49 43 43
60 52 30 12 36 0 57 42 12 50 31 22
18 33 43 61 27 57 0 15 45 22 40 61
33 48 28 46 12 42 15 0 30 37 25 46
48 42 20 24 24 12 45 30 0 38 19 19
40 55 58 62 49 50 22 37 38 0 19 40
58 61 39 43 43 31 40 25 19 19 0 21
67 61 39 34 43 22 61 46 19 40 21 0;
w=15 10 12 18 5 24 11 16 13 22 19 20;
enddata
min=@sum(m(i,j):w(i)*v(i,j)*x(i,j));
@for(p(i):@sum(p(j):x(i,j))=1);
@sum(p:c)=3;
@for(m(i,j):x(i,j)
▼优质解答
答案和解析
对于所有i x(i,j)对j求和都为1
看了 @for(p(i):@sum...的网友还看了以下: