Lingo error 63模型定义不正确

1个回答

  • 只能在语法上改 没有可行解 自己看看你写的约束对不对吧

    model:

    sets:

    xx/v1..v14/:p,q;

    xi/w1..w7/:c;

    xn(xx,xi):x;

    endsets

    min=@sum(xx(k):x(k,1)*p(k)*q(k));

    @for(xx(J):@sum(xi(I):x(J,I))=1);

    @for(xi(I):@sum(xx(J):x(J,I)*p(J))=0);

    @for(xn:@BIN(x));

    data:

    p=688 780 528 388 328 400 420 580 880 1760 620 480 1620 132;

    q=5.9186 4.7 5.7 11.148 11.902 4.32 8.3857 10.571 18.427 6.3125 7.1194 11.7 9.006 0;

    c=1760 1320 1320 1760 1320 1320 1320;

    enddata

    end