-
The second loop is wrong, and the correct one should be: @for(set2(i):@sum(link(j,i):a(j,i)*x(j))<=y(i));
error code 70 means that the number of variables you use in the program is more than the number of variables you define, as above, your x(i) can only have a maximum of 6, but you mistakenly give him the number of j, and you will have a total of 7 variables from x(0) to x(6), and there is no way to report an error.
I've changed it a little bit, and you'll see if it meets your needs:
model:
sets:set1/1..6/:x;
set2/1..7/:y;
link(set1,set2):a;
endsets
x2=1;max=@sum(set1(j):x(j));
for(set1(j):@bin(x(j)))for(set2(i):@sum(link(j,i):a(j,i)*x(j))<=y(i));
data:y=1 1 1 1 1 1 1; a=
enddata
-
I won't, but still smile
-
sets:
cang/1..3/:wet,vol;
wu/1..4/:w,v,p;
link(wu,cang):x;
endsets
data:wet=10,16,8;
vol=6800,8700,5300;
w=18,15,23,12;
v=480,650,580,390;
p=3100,3800,3500,2850;
enddata
max=@sum(wu(i):p(i)*@sum(cang(j):x(i,j)))
for(wu(i):@sum(cang(j):x(i,j))@for(cang(j):@sum(wu(i):x(i,j))@for(cang(j):@sum(wu(i):v(i)*x(i,j))@for(cang(j):
for(cang(k):
sum(wu(i):x(i,j)/wet(j))=@sum(wu(i):x(i,k)/wet(k)))
endThe k gt i in your last sentence doesn't know what it's for, do you know what i is?
-
There should be a semicolon at the end of the previous sentence.
The restriction variable is an integer@gin e.g. @gin(y1); gin(x1);
-
The reason for the occurrence of error code 108 is that the size of the model exceeds the limitation of the ** program.
Is your lingo version too low. I used lingo8 (registered) to solve and vertical, and this block can be solved.
Let's switch to a higher version.
-
The size of the model exceeds the limit except for the current Lingo version.
-
model:
sets:si/1..3/:x,y,s,a,t;
sj/1..3/;
sij(si,sj):c,f;
endsets
data:x=25 35 30;
a=5700 4850 4300;
s=30 40 40;
f=0 180 5000
enddata
min=@sum(si(i):y(i)*a(i))+2*@sum(sij(i,j):c(i,j)*f(i,j));
for(si(i):x(i)-@sum(sj(j):c(i,j))+sum(si(j):c(i,j))=y(i));
for(si(i):y(i)<=s(i));
Your constraints are basically certainly problematic and you figure it out for yourself.
You read the manual, if you want to set up the automatic BIOS, there seems to be this function in it.
The real role and purpose of Thunderbolt's use of the points system. >>>More
If you are not satisfied with the hit, please insert 10 hits in the yellow slot first. >>>More
First of all, you should follow the teacher's pace, listen carefully in class, memorize the new words and grammar knowledge in the English book, and secondly, buy an English listening book and listen to it repeatedly. Then buy an English test paper, brush up on the questions on the weekend, master the writing skills of various question types, and memorize more English composition sample essays, so that you can also cultivate your sense of language.
When you first start learning, you should raise your fingers"Often raise the finger or very hard when the little finger or other fingers are a little warped, especially the little thumb, especially the little finger, especially the little finger is warped, then you pay attention to it when you play, while playing and watching, the warping will be corrected, and it will not be warped after a long time." >>>More