早教吧作业答案频道 -->其他-->
lingo程序错了...model:sets:renshu/1..4/:x,v;xianliang/1..4/:b;link(xianliang,renshu):a;endsetsdata:v=1,1,1,1;b=21,18,16,29;a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;enddatamin=@sum(renshu:x*v);@for(xianliang(i):@sum(renshu(j):a(i,j)*x(j))
题目详情
lingo程序错了...
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))
▼优质解答
答案和解析
语法上倒是没什么错误 数据也不必非要按行写
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))
看了 lingo程序错了...mo...的网友还看了以下:
气缸内封闭了一定量压强为P=1.0×105pa,体积为V=2.0m3的理想气体,现使气体保持压强不 2020-05-14 …
MATLAB 如何赋值 画实部虚部图像 画图clearclcsyms a j k n u e A 2020-05-16 …
matlab数据拟合函数x=[1:62]y=[ 1 1 1 1 1 1 1 1 1 1 1 1 1 2020-05-16 …
有一个高为1.1米的正方体水池刚好能装满28桶水,已知水桶是一个圆柱体,...有一个高为1.1米的 2020-05-20 …
一、我们知道1/1×2=1/1-1/2=1/2,1/2×3=1/2-1/3=1/6验证:1/3×4 2020-07-17 …
已知集合M={1,2,3,…,n}(n∈N*),若集合,且对任意的b∈M,存在ai,aj∈A(1≤ 2020-07-20 …
直角三角形1:1:根号2请问各路高手:直角三角形三个角分别为30°60°90°我想问的是:1:1: 2020-07-22 …
寻找规律解数学题1/1*2=1-1/22/2*3=1/2-1/31/3*4=1/3-1/4……计算 2020-07-22 …
由下列各式:1>1/2,1+1/2+1/3>1有下列各式:1>1/2;1+1/2+1/3>1;1+1 2020-10-30 …
计算一道数学题,(1+1/2)×(1+1/3)×(1+1/4)×(1+1/5)×(1+1/6)×(1 2020-11-30 …