lingo语句哪错了sets:position/P1 P2 P3 P4 P5/:x,k;endsetsdatax=5 6 4 8 10;enddata@for(position(i):k(i)=1/x(i));
问题描述:
lingo语句哪错了
sets:
position/P1 P2 P3 P4 P5/:x,k;
endsets
data
x=5 6 4 8 10;
enddata
@for(position(i):k(i)=1/x(i));
答
sets:
position/P1 P2 P3 P4 P5/:x,k;
endsets
data:!少了一个冒号;
x=5 6 4 8 10;
enddata
@for(position(i):k(i)=1/x(i));