What does error code 70 mean in prawn lingo?

Updated on technology 2024-02-09
7 answers
  1. Anonymous users2024-02-05

    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

  2. Anonymous users2024-02-04

    I won't, but still smile

  3. Anonymous users2024-02-03

    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?

  4. Anonymous users2024-02-02

    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);

  5. Anonymous users2024-02-01

    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.

  6. Anonymous users2024-01-31

    The size of the model exceeds the limit except for the current Lingo version.

  7. Anonymous users2024-01-30

    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.

Related questions
6 answers2024-02-09

You read the manual, if you want to set up the automatic BIOS, there seems to be this function in it.

36 answers2024-02-09

The real role and purpose of Thunderbolt's use of the points system. >>>More

2 answers2024-02-09

If you are not satisfied with the hit, please insert 10 hits in the yellow slot first. >>>More

14 answers2024-02-09

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.

11 answers2024-02-09

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