• 大小: 137KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: Matlab
  • 标签: matlab  ga-pls  

资源简介

matlab GA-pls建立模型 ga进行优化 然后进行偏最小二乘建模

资源截图

代码片段和文件信息

% function backw performs backward selection
function [ncrispmaxcompmaxccmaxrisplibb]=backw(rcrcromrespnumvarccdatasetyautngmaxcompmaxrisplibbmxisximyisyiel);
% verifying the list of the already “backwarded“ chromosomes
test1=1;
crb=0;ncp=[];rispmax=[];compmax=[];
if isempty(libb)==0
  while test1==1 & crb    crb=crb+1;
    j=0;
    test2=1;
    while test2==1 & j      j=j+1;
      if crom(crb:)==libb(j:)
        test2=0;
      end
    end
    if test2==1
      test1=0;
    end
  end
else
  crb=1;
end

impr=1;
nc=crom(crb:);
startresp=resp(crb:);
while impr==1
  impr=0;
  libb=[libb;nc];
  start=find(nc);
  startvar=size(start2);
  if startvar>1
    for i=1:startvar
      varr=start;
      varr(i)=[];
      cc=cc+1;
      if el==3;
       [facrisp]=plsgacv(dataset(:varr)yautngmaxcompmxi(:varr)sxi(:varr)myisyi);
      else
       [facrisp]=plsgacv(dataset(:varr)yautngmaxcompmxi(:varr)sxi(:varr));
      end
      if risp>=startresp
        impr=1;
        ncp=nc;
        ncp(:start(i))=0;
        rispmax=risp;
        compmax=fac;
        startresp=risp;
        if risp>maxrisp
          disp([‘ev. ‘ int2str(cc) ‘ - ‘ num2str(risp)])
          maxrisp=risp;
        end
      end
    end
    nc=ncp;
  end
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-08-24 15:38  GA-PLS toolbox\
     目录           0  2013-08-24 15:38  GA-PLS toolbox\GA-PLS toolbox\
     目录           0  2015-04-18 20:05  GA-PLS toolbox\GA-PLS toolbox\ga-pls\
     文件        1266  1993-10-11 09:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\BETACDF.M
     文件        2764  1993-10-11 09:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\BETAINV.M
     文件        1211  1993-10-11 09:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\BETAPDF.M
     文件         208  1998-07-31 12:10  GA-PLS toolbox\GA-PLS toolbox\ga-pls\CHECKTW.M
     文件         342  1998-07-31 12:01  GA-PLS toolbox\GA-PLS toolbox\ga-pls\CHKSUBS.M
     文件        3531  1993-10-11 09:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\DISTCHCK.M
     文件         824  1998-03-30 12:02  GA-PLS toolbox\GA-PLS toolbox\ga-pls\Err_ga.m
     文件        1331  1993-10-11 09:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\FINV.M
     文件         429  1998-03-30 11:53  GA-PLS toolbox\GA-PLS toolbox\ga-pls\Pr_ga.m
     文件        2646  2001-01-21 20:09  GA-PLS toolbox\GA-PLS toolbox\ga-pls\TILEFIGS.M
     文件         962  1997-08-26 09:03  GA-PLS toolbox\GA-PLS toolbox\ga-pls\Update.m
     文件        5012  1994-08-26 08:49  GA-PLS toolbox\GA-PLS toolbox\ga-pls\ZOOMRB.M
     文件        1363  2001-08-31 16:06  GA-PLS toolbox\GA-PLS toolbox\ga-pls\backw.m
     文件        6969  2002-09-05 09:42  GA-PLS toolbox\GA-PLS toolbox\ga-pls\gapls.m
     文件        5976  2002-08-07 13:25  GA-PLS toolbox\GA-PLS toolbox\ga-pls\gaplsopt.m
     文件        6754  2001-09-14 13:07  GA-PLS toolbox\GA-PLS toolbox\ga-pls\gaplsout.M
     文件        7429  2015-04-18 20:16  GA-PLS toolbox\GA-PLS toolbox\ga-pls\gaplssp.m
     文件       19255  2004-09-17 09:44  GA-PLS toolbox\GA-PLS toolbox\ga-pls\mangapls.pdf
     文件         726  2003-10-10 09:31  GA-PLS toolbox\GA-PLS toolbox\ga-pls\plotmore.M
     文件        3645  2005-03-23 00:22  GA-PLS toolbox\GA-PLS toolbox\ga-pls\plotone.asv
     文件        3649  2005-03-24 21:25  GA-PLS toolbox\GA-PLS toolbox\ga-pls\plotone.m
     文件        1784  2001-08-31 15:13  GA-PLS toolbox\GA-PLS toolbox\ga-pls\plsgacv.m
     文件        3479  2001-09-12 16:37  GA-PLS toolbox\GA-PLS toolbox\ga-pls\predpls.m
     文件          48  1997-07-28 08:26  GA-PLS toolbox\GA-PLS toolbox\ga-pls\randomiz.m
     文件        1365  1997-07-11 10:48  GA-PLS toolbox\GA-PLS toolbox\ga-pls\reg_ga.m
     文件         371  1998-03-30 11:37  GA-PLS toolbox\GA-PLS toolbox\ga-pls\sc_ga.m
     文件      145728  2005-04-12 11:46  GA-PLS toolbox\GA-PLS toolbox\ga-pls\selectfrequency.fig
     文件       19255  2005-03-14 20:48  GA-PLS toolbox\GA-PLS toolbox\manual of the pls-genetic algorithm toolbox.pdf
............此处省略2个文件信息

评论

共有 条评论