lingo非线性优化问题,目标函数有点复杂model:sets:wilson/r1..r7/:x,y;pre/1/:G1,G2;link(wilson,pre);endsetsDATA:x y= 0.2012 7.040.3013 9.190.3987 10.610.4993 11.110.5994 10.320.7023 9.510.7998 7.3;V1= 159.53;V2= 157.13;T= 298.15;enddatamin
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 20:39:34
lingo非线性优化问题,目标函数有点复杂model:sets:wilson/r1..r7/:x,y;pre/1/:G1,G2;link(wilson,pre);endsetsDATA:x y= 0.2012 7.040.3013 9.190.3987 10.610.4993 11.110.5994 10.320.7023 9.510.7998 7.3;V1= 159.53;V2= 157.13;T= 298.15;enddatamin
lingo非线性优化问题,目标函数有点复杂
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
能运算出来,但是答案不是很对,而且我将y-换成-y,答案也不一样,不懂出了什么问题
lingo非线性优化问题,目标函数有点复杂model:sets:wilson/r1..r7/:x,y;pre/1/:G1,G2;link(wilson,pre);endsetsDATA:x y= 0.2012 7.040.3013 9.190.3987 10.610.4993 11.110.5994 10.320.7023 9.510.7998 7.3;V1= 159.53;V2= 157.13;T= 298.15;enddatamin
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都能求准了那数学就不用做了