声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1414|回复: 0

[计算数学] 哪位大大有1stopt2.0以上版本,能不能帮我算算下面问题

[复制链接]
发表于 2009-10-6 15:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
parameter z1,z2,z3,z5,z6,z7;
ConstStr xH2O1=11.04911698/(0.058639389*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)*2/17)+ 11.04911698*(1+1/17+(7.7299e-004*5.2719e+003)/(1+7.7299e-004*5.2719e+003)*2/17));
ConstStr xH2O21=0.058639389/(0.058639389*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)*2/17)+ 11.04911698*(1+1/17+(7.7299e-004*5.2719e+003)/(1+7.7299e-004*5.2719e+003)*2/17));
ConstStr yH2O21=xH2O21*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)*2/17)/(xH2O21*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)*2/17)+xH2O1*(1/17+(7.7299e-004*5.2719e+003)/(1+7.7299e-004*5.2719e+003)*2/17));
ConstStr xH2O2=3.972661765/(0.232587743*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)*2/17)+ 3.972661765*(1+1/17+(7.7299e-004*7.2066e+003)/(1+7.7299e-004*7.2066e+003)*2/17));
ConstStr xH2O22=0.232587743/(0.232587743*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)*2/17)+ 3.972661765*(1+1/17+(7.7299e-004*7.2066e+003)/(1+7.7299e-004*7.2066e+003)*2/17));
ConstStr yH2O22=xH2O22*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)*2/17)/(xH2O22*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)*2/17)+xH2O2*(1/17+(7.7299e-004*7.2066e+003)/(1+7.7299e-004*7.2066e+003)*2/17));
ConstStr xH2O3=8.573270588/(0.067891358*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)*2/17)+ 8.573270588*(1+1/17+(7.7299e-004*5.7826e+003)/(1+7.7299e-004*5.7826e+003)*2/17));
ConstStr xH2O23=0.067891358/(0.067891358*(1+1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)*2/17)+ 8.573270588*(1+1/17+(7.7299e-004*5.7826e+003)/(1+7.7299e-004*5.7826e+003)*2/17));
ConstStr yH2O23=xH2O23*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)*2/17)/(xH2O23*(1/17+(exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)*2/17)+xH2O3*(1/17+(7.7299e-004*5.7826e+003)/(1+7.7299e-004*5.7826e+003)*2/17));
ConstStr xH2O4=11.08923335/(0.19612037*(1+1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)*2/17)+ 11.08923335*(1+1/17+(7.2746e-004*6.5278e+003)/(1+7.2746e-004*6.5278e+003)*2/17));
ConstStr xH2O24=0.19612037/(0.19612037*(1+1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)*2/17)+ 11.08923335*(1+1/17+(7.2746e-004*6.5278e+003)/(1+7.2746e-004*6.5278e+003)*2/17));
ConstStr yH2O24=xH2O24*(1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)*2/17)/(xH2O24*(1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)*2/17)+xH2O4*(1/17+(7.2746e-004*6.5278e+003)/(1+7.2746e-004*6.5278e+003)*2/17));
ConstStr xH2O5=5.119722253/(0.212892563*(1+1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)*2/17)+ 5.119722253*(1+1/17+(7.2746e-004*7.4119e+003)/(1+7.2746e-004*7.4119e+003)*2/17));
ConstStr xH2O25=0.212892563/(0.212892563*(1+1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)*2/17)+ 5.119722253*(1+1/17+(7.2746e-004*7.4119e+003)/(1+7.2746e-004*7.4119e+003)*2/17));
ConstStr yH2O25=xH2O25*(1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)*2/17)/(xH2O25*(1/17+(exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)*2/17)+xH2O5*(1/17+(7.2746e-004*7.4119e+003)/(1+7.2746e-004*7.4119e+003)*2/17));
ConstStr xH2O6=8.939479578/(0.25310341*(1+1/17+(exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)/(1+exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)*2/17)+ 8.939479578*(1+1/17+(6.8492e-004*7.7655e+003)/(1+6.8492e-004*7.7655e+003)*2/17));
ConstStr xH2O26=0.25310341/(0.25310341*(1+1/17+(exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)/(1+exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)*2/17)+ 8.939479578*(1+1/17+(6.8492e-004*7.7655e+003)/(1+6.8492e-004*7.7655e+003)*2/17));
ConstStr yH2O26=xH2O26*(1/17+(exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)/(1+exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)*2/17)/(xH2O26*(1/17+(exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)/(1+exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)*2/17)+xH2O6*(1/17+(6.8492e-004*7.7655e+003)/(1+6.8492e-004*7.7655e+003)*2/17));
Function    (1.0521e+005-(exp(1.13e+005*yH2O21*1.0224e-005/272.15)*z5*exp(z6/(272.15-z7))*0.0053^((-1)/(1/17)))*(1-(exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.0521e+005))^2)=0;
            (2.0418e+005-(exp(2.21e+005*yH2O22*1.0224e-005/272.15)*z5*exp(z6/(272.15-z7))*0.0453^((-1)/(1/17)))*(1-(exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*2.0418e+005))^2)=0;
            (1.3508e+005-(exp(1.45e+005*yH2O23*1.0224e-005/272.15)*z5*exp(z6/(272.15-z7))*0.0176^((-1)/(1/17)))*(1-(exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005)/(1+exp(z1+z2/272.15+z3/272.15^2)*1.3508e+005))^2)=0;
            (1.6343e+005-(exp(1.76e+005*yH2O24*1.0224e-005/273.15)*z5*exp(z6/(273.15-z7))*0.0176^((-1)/(1/17)))*(1-(exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.6343e+005))^2)=0;
            (1.9124e+005-(exp(2.07e+005*yH2O25*1.0224e-005/273.15)*z5*exp(z6/(273.15-z7))*0.0339^((-1)/(1/17)))*(1-(exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005)/(1+exp(z1+z2/273.15+z3/273.15^2)*1.9124e+005))^2)=0;
            (1.7712e+005-(exp(1.92e+005*yH2O26*1.0224e-005/274.15)*z5*exp(z6/(274.15-z7))*0.0247^((-1)/(1/17)))*(1-(exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005)/(1+exp(z1+z2/274.15+z3/274.15^2)*1.7712e+005))^2)=0;
式子长了些,没办法,初学者不知道怎么样简单表示,其实就只有一个总表达式,那些数都可以用向量表示,我用的是1.5版,也不太会设置算法,所以目标函数值总是在60万以上,但我希望目标函数值在0附近。
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 14:13 , Processed in 0.073793 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表