lingo非线性优化问题,目标函数有点复杂

1个回答

  • model:

    sets:

    wilson/r1..r7/:x,y;

    pre/1/:G1,G2;

    link(wilson,pre);

    endsets

    DATA:

    x y= 0.2012 7.04

    0.3013 9.19

    0.3987 10.61

    0.4993 11.11

    0.5994 10.32

    0.7023 9.51

    0.7998 7.3;

    V1= 159.53;

    V2= 157.13;

    T= 298.15;

    enddata

    min = @sum (link:(y-(1-x)*((x*(V1/V2)*@exp(-(G1/(8.314*T))))/(1-x+x*(V1/V2)*@exp(-(G1/(8.314*T)))))*G1

    +x*((1-x)*(V2/V1)*@exp(-(G2/(8.314*T))))/(x+(1-x)*(V2/V1)*@exp(-(G2/(8.314*T))))*G2)^2);

    @for(PRE:@free(G1);@free(G2));

    @FOR(WILSON:@FREE(X);@FREE(Y));

    end

    不对那你用global solver解试试 你这种目标函数本来用lingo求最多也就是求个大概 要是什么函数lingo都能求准了那数学就不用做了