Home > Back-end >  Lingo in vain, for advice, why finally shows the error 12
Lingo in vain, for advice, why finally shows the error 12

Time:11-03


Controlled online watch, the feeling is not less brackets, consult


















Model:
Sets:
The factory/1.. 9/: b, q, H, D, F, X;
Plant/1.. 16/: m, c;
Currency (plant, factory) : a;
Endsets
Data:
B=600600600, 900, 900, 900, 1200, 1200, 1200;
Q=300300300600, 600, 600, 900, 900, 900;
C=0.88, 0.60, 0.93, 0.90, 0.90, 0.78, 0.70, 0.83, 0.95, 0.87, 0.65, 0.75, 0.8, 0.68, 0.87, 0.83;
M=300500200500300400300300400600100600500400300300;
D=2,2,2,1.8, 1.8, 1.8, 1.6, 1.6, 1.6;
F=600600600900900900120 0120 0120 0;
Enddata
Min=@ sum (factory (j) : @ sum (plant (I) : a (I, j) * D (j) + F (j) * x (j)));
@ the for (factory (j) : @ sum (plant (I) : a (I, j)) & lt;=b (j));
@ the for (factory (j) : @ sum (plant (I) : a (I, j)) & gt; (j)=q);
@ the for (factory (j) : @ sum (plant (I) | i# ne# 10: a (I, j)) & gt; 0);
@ the for (factory (j) : @ sum (plant (I) : a (I, j) * c (I)) & gt;=0.8 * @ sum (plant (I) : a (I, j));
@ the for (factory (j) : @ sum (plant (I) : a (I, j)) & gt; 0);
@ the for (plant (I) : @ sum (factory (j) : a (I, j))=m (j));
@ the for (factory (j) : x (j)=@ the if (@ sum (plant (I) : a (I, j)) # gt# 0, 0));
End




Hair wrong section, really don't know where is the hair
  • Related