²é¿´: 2094  |  »Ø¸´: 11

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

[ÇóÖú] ºÃÐijæÓÑ£¬°ïæ¿´¿´Õâ¸ömatlab³ÌÐòÄÇÀï³ö´íÁË ÒÑÓÐ1È˲ÎÓë

ÓÃmatlabÄâºÏÊý¾Ý£¬½øÐÐNRTLÄ£ÐÍÄâºÏ£ºÎÒ±àдÁËÈçϵijÌÐò£¬Ò»Ö±³ö´í£¬Âé·³Óж®µÄ³æÓѰïæ¿´¿´£¬Ôõô¸Ä´í£¿£¿
£¨Ò»£©¶¨Òå.mÎļþ¡£
function g4=f(beta0,x1,x2,T,R)
g1=beta0(1);
g2=beta0(2);
g3=beta0(3);
g4=beta0(4);
g4=x2.*x2.*((((g(1)./(R.*T)).*(exp(-g(3).*g(1)./(R.*T))).^2)./((x1+(exp(-g(3).*g(1)./(R.*T))).*x2).^2))+(((g(2)./(R.*T)).*(exp(-g(3).*g(2)./(R.*T))).^2)./((x2+(exp(-g(3).*g(2)./(R.*T))).*x1).^2)))
£¨¶þ£©±àд³ÌÐò¡£
x1=[0.01525        0.02059        0.02685        0.03417        0.04221        0.04958];
x2=[0.98475        0.97941        0.97315        0.96583        0.95779        0.95042];
T=[298.15        303.15        308.15        313.15        318.15        323.15];
R=[8.314 8.314 8.314 8.314 8.314 8.314];
beta0=[0,0,0,0];
[g,resnorm]=lsqcurvefit(@f,beta0,x1,x2,T,R)
ÔËÐкó³ö´í£º
Warning: Length of lower bounds is > length(x); ignoring extra bounds.
> In checkbounds at 27
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Warning: Length of upper bounds is > length(x); ignoring extra bounds.
> In checkbounds at 37
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Exiting due to infeasibility:  4 lower bounds exceed the corresponding upper bounds.

g =

     0     0     0     0


resnorm =

     []
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
»ØÌûÖ§³Ö ( ÏÔʾ֧³Ö¶È×î¸ßµÄǰ 50 Ãû )

somomo91

ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
jjdg: ½ð±Ò+1, ¸Ðл²ÎÓë 2017-09-28 23:50:04
ÕâÀïµÄ beta0 ÓÐ4¸öÔªËØ£¬µ«ÊÇ ÉÏϱ߽ç ÓÐ 6¸öÔªËØ£¬ËùÒÔ»á³ö´í
beta0 ÔªËØµÄ¸öÊýÓ¦¸ÃºÍ R£¬T Ò»Ö¡£
CODE:
lsqcurvefit(fun,x0,xdata,ydata,lb,ub)

µ«¼´Ê¹beta0 ÓÐ6¸ö0£¬Äã»á¿´µ½½á¹ûÓ¦¸Ã»¹²»¶Ô¡£
û¿´·½³Ì£¬Ã»·¨È·¶¨µ½µ×ÄãµÄ³ÌÐòÄÄÀï³ö´í
2Â¥2017-07-09 17:29:24
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
ÆÕͨ»ØÌû

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

ÒýÓûØÌû:
2Â¥: Originally posted by somomo91 at 2017-07-09 17:29:24
ÕâÀïµÄ beta0 ÓÐ4¸öÔªËØ£¬µ«ÊÇ ÉÏϱ߽ç ÓÐ 6¸öÔªËØ£¬ËùÒÔ»á³ö´í
beta0 ÔªËØµÄ¸öÊýÓ¦¸ÃºÍ R£¬T Ò»Ö¡£
lsqcurvefit(fun,x0,xdata,ydata,lb,ub)

µ«¼´Ê¹beta0 ÓÐ6¸ö0£¬Äã»á¿´µ½½á¹ûÓ¦¸Ã»¹²»¶Ô¡£
û¿´·½³Ì£¬Ã»·¨ ...

Õâ¸öÊÇÐèÒªÄâºÏµÄ¹«Ê½£¬Ö»ÐèÒªÇó4¸ö±äÁ¿£¬ËùÒÔÎÒbeta0Ö»¸øÁË4¸öÖµ
ºÃÐijæÓÑ£¬°ïæ¿´¿´Õâ¸ömatlab³ÌÐòÄÇÀï³ö´íÁË
IMG_20170709_174704.jpg

3Â¥2017-07-09 17:49:08
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

ÒýÓûØÌû:
2Â¥: Originally posted by somomo91 at 2017-07-09 17:29:24
ÕâÀïµÄ beta0 ÓÐ4¸öÔªËØ£¬µ«ÊÇ ÉÏϱ߽ç ÓÐ 6¸öÔªËØ£¬ËùÒÔ»á³ö´í
beta0 ÔªËØµÄ¸öÊýÓ¦¸ÃºÍ R£¬T Ò»Ö¡£
lsqcurvefit(fun,x0,xdata,ydata,lb,ub)

µ«¼´Ê¹beta0 ÓÐ6¸ö0£¬Äã»á¿´µ½½á¹ûÓ¦¸Ã»¹²»¶Ô¡£
û¿´·½³Ì£¬Ã»·¨ ...

Õâ¸öÊÇÐèÒªÄâºÏµÄ¹«Ê½£¬Ö»ÐèÒªÇó4¸ö±äÁ¿£¬ËùÒÔÎÒbeta0Ö»¸øÁË4¸öÖµ
ºÃÐijæÓÑ£¬°ïæ¿´¿´Õâ¸ömatlab³ÌÐòÄÇÀï³ö´íÁË-1
IMG_20170709_174704.jpg

4Â¥2017-07-09 17:49:43
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

somomo91

ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï
jjdg: ½ð±Ò+1, ¸Ðл²ÎÓë 2017-09-28 23:50:16
·½³ÌÀïÃæÓÐ ln(gamma1)£¬ËùÒÔÄãµÄ³ÌÐò£¬ÕýÈ·µÄÓ¦¸ÃÊÇ g4 = exp(x2.*x2.* ......)
Æä´Î£¬tau12 ºÍ tau21 µÄÖµÓ¦¸Ã²»ÊÇÁã°É£¬µ«ÄãµÄ³ÌÐòÀïÃæ É趨 tau12 = tau21 = 0
ÕâÒ²ÊÇΪʲô ¼´Ê¹Ã»Óб߽ç´íÎó£¬Êä³öΪÁãµÄÔ­Òò
5Â¥2017-07-09 18:04:44
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

somomo91

ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
Ç峿Ç峿: ½ð±Ò+30, ¡ï¡ï¡ïºÜÓаïÖú 2017-07-09 18:45:49
×îºóÊÇ alpha12 ºÍ alpha21 µÄÖµ£¬¸ù¾ÝÎÄÏ×Ó¦¸ÃÔÚ 0.20-0.47 Ö®¼ä¡£
³ÌÐòÀïÃæÈ«ÎªÁ㣬
6Â¥2017-07-09 18:07:54
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

ÒýÓûØÌû:
6Â¥: Originally posted by somomo91 at 2017-07-09 18:07:54
×îºóÊÇ alpha12 ºÍ alpha21 µÄÖµ£¬¸ù¾ÝÎÄÏ×Ó¦¸ÃÔÚ 0.20-0.47 Ö®¼ä¡£
³ÌÐòÀïÃæÈ«ÎªÁ㣬

ÄÇÎÒ³õʼֵ¾Í¶¨Òå4¸ö¿ÉÒÔÂð£¿ÎÒ°´ÕÕÄã˵µÄ¸ÄÁ˳ÌÐò£¬°Ñ³õʼֵ¸ÄΪ¡¾1,1,0.3,1¡¿²»ÔÙΪ0£¬½á¹û³öÀ´ºó¾ÍÊÇWarning: Length of lower bounds is > length(x); ignoring extra bounds.
> In checkbounds at 27
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Warning: Length of upper bounds is > length(x); ignoring extra bounds.
> In checkbounds at 37
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Exiting due to infeasibility:  4 lower bounds exceed the corresponding upper bounds.

g =

    1.0000    1.0000    0.3000    1.0000


resnorm =

     []
¾ÍÊÇÎÒ¶¨ÒåµÄÖµ£¬ÎÒÒ²°Ñ¹«Ê½×öÁ˸ıäµÄg4=exp(x2.*x2.*((((g(1)./(R.*T)).........)
7Â¥2017-07-09 18:40:34
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

ÎÒÔÙ°ÑÎÒÏÖÔڵijÌÐò·¢Ò»±éÍêÕûµÄ£¬ÕâÑù×Ó²»»áÂÒ¡£
mÎļþ£º
function g4=f(beta0,x1,x2,T,R)
g1=beta0(1);
g2=beta0(2);
g3=beta0(3);
g4=beta0(4);
g4=exp(x2.*x2.*((((g(1)./(R.*T)).*(exp(-g(3).*g(1)./(R.*T))).^2)./((x1+(exp(-g(3).*g(1)./(R.*T))).*x2).^2))+(((g(2)./(R.*T)).*(exp(-g(3).*g(2)./(R.*T))).^2)./((x2+(exp(-g(3).*g(2)./(R.*T))).*x1).^2))))
³ÌÐò´úÂ룺
x1=[0.01525        0.02059        0.02685        0.03417        0.04221        0.04958];
x2=[0.98475        0.97941        0.97315        0.96583        0.95779        0.95042];
T=[298.15        303.15        308.15        313.15        318.15        323.15];
R=[8.314 8.314 8.314 8.314 8.314 8.314];
beta0=[1,1,0.3,1];
[g,resnorm]=lsqcurvefit(@f,beta0,x1,x2,T,R)
ÔËÐкóÊä³ö£º
Warning: Length of lower bounds is > length(x); ignoring extra bounds.
> In checkbounds at 27
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Warning: Length of upper bounds is > length(x); ignoring extra bounds.
> In checkbounds at 37
  In optim\private\lsqncommon at 39
  In lsqcurvefit at 149
  In Untitled2 at 6
Exiting due to infeasibility:  4 lower bounds exceed the corresponding upper bounds.

g =

    1.0000    1.0000    0.3000    1.0000


resnorm =

     []
¾ÍÊdzõʼֵ¶¨Òåʲô¾Í³öʲô¡£
»òÕßÕâ¸öÓ¦¸ÃÔõÃ´Ð´ÄØ£¿
8Â¥2017-07-09 18:53:25
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

somomo91

ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)

¡ï
jjdg: ½ð±Ò+1, ¸Ðл²ÎÓë 2017-09-28 23:50:39
ÄãµÄ³ÌÐòÀ T, R  Ï൱ÓÚlsqcurvefit ÀïÃæµÄ ϱ߽磬ºÍ Éϱ߽硣
Ò²¾ÍÊÇ˵£¬g µÄÖµÊÇ ÔÚ [T£¬ R] Ö®¼ä£¬¿´Í¼Æ¬Àï£¬ËÆºõ²»Í×°É£¬
9Â¥2017-07-09 20:41:12
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Ç峿Ç峿

Òø³æ (³õÈëÎÄ̳)

ÒýÓûØÌû:
9Â¥: Originally posted by somomo91 at 2017-07-09 20:41:12
ÄãµÄ³ÌÐòÀ T, R  Ï൱ÓÚlsqcurvefit ÀïÃæµÄ ϱ߽磬ºÍ Éϱ߽硣
Ò²¾ÍÊÇ˵£¬g µÄÖµÊÇ ÔÚ  Ö®¼ä£¬¿´Í¼Æ¬Àï£¬ËÆºõ²»Í×°É£¬

¶÷¶÷£¬Ð»Ð»¡£ÎÒÔÙѧϰһÏ¿´¿´£¬²»ÊǺܶ®
10Â¥2017-07-09 22:47:46
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ Ç峿Ç峿 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷°²½»Í¨´óѧ²ÄÁϹ¤³Ìרҵ 282·ÖÇóµ÷¼Á +8 ·ãÇÅZL 2026-03-18 10/500 2026-03-21 15:29 by Shawn0911
[¿¼ÑÐ] 265Çóµ÷¼Á +12 ÁºÁºÐ£Ð£ 2026-03-19 14/700 2026-03-21 13:38 by lature00
[¿¼ÑÐ] 0856²ÄÁÏר˶353Çóµ÷¼Á +3 NIFFFfff 2026-03-20 3/150 2026-03-21 10:23 by luoyongfeng
[¿¼ÑÐ] 22408 344·Ö Çóµ÷¼Á Ò»Ö¾Ô¸ »ªµç¼ÆËã»ú¼¼Êõ +4 solanXXX 2026-03-20 4/200 2026-03-20 23:49 by alg094825
[¿¼ÑÐ] ÄϾ©´óѧ»¯Ñ§376Çóµ÷¼Á +3 hisfailed 2026-03-19 6/300 2026-03-20 23:43 by hisfailed
[¿¼ÑÐ] 330Çóµ÷¼Á +4 С²Ä»¯±¾¿Æ 2026-03-18 4/200 2026-03-20 23:13 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸Î人Àí¹¤²ÄÁϹ¤³Ìר˶µ÷¼Á +9 Doleres 2026-03-19 9/450 2026-03-20 22:36 by JourneyLucky
[¿¼ÑÐ] 085600²ÄÁÏÓ뻯¹¤ +8 °²È«Éϰ¶£¡ 2026-03-16 8/400 2026-03-20 22:13 by luoyongfeng
[¿¼ÑÐ] 350Çóµ÷¼Á +5 weudhdk 2026-03-19 5/250 2026-03-20 22:04 by luoyongfeng
[¿¼ÑÐ] Çóµ÷¼Á +3 @taotao 2026-03-20 3/150 2026-03-20 19:35 by JourneyLucky
[¿¼ÑÐ] 261ÇóBÇøµ÷¼Á£¬¿ÆÑо­Àú·á¸» +3 Å£Ä̺Üæ 2026-03-20 4/200 2026-03-20 19:34 by JourneyLucky
[¿¼ÑÐ] ¹ãÎ÷´óѧ¼ÒÇÝÒÅ´«ÓýÖÖ¿ÎÌâ×é2026Äê˶ʿÕÐÉú£¨½ÓÊÕ¼ÆËã»úרҵµ÷¼Á£© +3 123°¢±ê 2026-03-17 3/150 2026-03-20 15:58 by ·ÉÐÐçù
[¿¼ÑÐ] 288Çóµ÷¼Á£¬Ò»Ö¾Ô¸»ªÄÏÀí¹¤´óѧ071005 +5 ioodiiij 2026-03-17 5/250 2026-03-19 18:22 by zcl123
[¿¼ÑÐ] ²ÄÁÏ¿¼Ñе÷¼Á +3 xwt¡£ 2026-03-19 3/150 2026-03-19 11:22 by wãåÑôw
[¿¼ÑÐ] 0703»¯Ñ§336·ÖÇóµ÷¼Á +6 zbzihdhd 2026-03-15 7/350 2026-03-18 09:53 by zhukairuo
[¿¼ÑÐ] 334Çóµ÷¼Á +3 Ö¾´æ¸ßÔ¶ÒâÔÚ»úÐ 2026-03-16 3/150 2026-03-18 08:34 by lm4875102
[¿¼ÑÐ] 11408 Ò»Ö¾Ô¸Î÷µç£¬277·ÖÇóµ÷¼Á +3 zhouzhen654 2026-03-16 3/150 2026-03-17 07:03 by laoshidan
[¿¼ÑÐ] [µ¼Ê¦ÍƼö]Î÷ÄϿƼ¼´óѧ¹ú·À/²ÄÁϵ¼Ê¦ÍƼö +3 ¼â½ÇСºÉ 2026-03-16 6/300 2026-03-16 23:21 by ¼â½ÇСºÉ
[¿¼ÑÐ] 333Çóµ÷¼Á +3 ÎÄ˼¿Í 2026-03-16 7/350 2026-03-16 18:21 by ÎÄ˼¿Í
[¿¼ÑÐ] 085601²ÄÁϹ¤³Ì315·ÖÇóµ÷¼Á +3 yang_0104 2026-03-15 3/150 2026-03-15 10:58 by peike
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û