资源简介

改进的差分进化算法优化粒子群优化算法的混合智能优化算法的源程序

资源截图

代码片段和文件信息

/**
 * Description: The description of agent.
 *
 * @Information source: a) personal memory; b) social library
 *
 * @Coefficients: TaoB and TaoW
 *
 * @ Author        Create/Modi     Note
 * Xiaofeng Xie    Mar 11 2003
 * Xiaofeng Xie    May 11 2004
 * Xiaofeng Xie    Jul 01 2008
 *
 * @version 1.0
 * @Since MAOS1.0
 *
 */

import knowledge.*;
import goodness.*;
import problem.*;
import behavior.*;

abstract public class AbstractAgent {

  //Describes the problem to be solved
  protected ProblemEncoder problemEncoder;
  //Forms the goodness landscape
  protected IGoodnessCompareEngine qualityComparator;

  //store the point that generated in current learning cycle
  protected SearchPoint trailPoint;

  //temp variable
  private AbsGTBehavior selectGTBehavior;

  public void setProblemEncoder(ProblemEncoder encoder) {
    problemEncoder = encoder;
    trailPoint = problemEncoder.getFreshSearchPoint();
  }

  public void setSpecComparator(IGoodnessCompareEngine comparer) {
    qualityComparator = comparer;
  }

  abstract public void setGTBehavior(AbsGTBehavior gtBehavior);

  abstract protected AbsGTBehavior getGTBehavior();

  //for t>0
  public void centralExecute(int clockStep) {
    switch(clockStep) {
      case LearningClock.C_RUN_G:
        // generates a new point in the search space (S) based on
        // its memory and the library
        selectGTBehavior = this.getGTBehavior();
        selectGTBehavior.generateBehavior(trailPoint problemEncoder);
        //evaluate into goodness information
        problemEncoder.evaluate(trailPoint);
        return;
      case LearningClock.C_RUN_T:
        selectGTBehavior.testBehavior(trailPoint qualityComparator);
        break;
    }
  }

  public SearchPoint getMGState() {
    return trailPoint;
  }
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        189  2008-06-30 13:12  IDE-pso\.classpath

     文件       6148  2008-07-26 16:12  IDE-pso\.DS_Store

     文件       1859  2008-07-01 09:19  IDE-pso\AbstractAgent.java

     文件       7513  2008-07-01 09:08  IDE-pso\AbstractSwarm.java

     文件        950  2008-07-01 09:27  IDE-pso\behavior\AbsGTBehavior.java

     文件       2998  2008-07-01 09:17  IDE-pso\behavior\DEGTBehavior.java

     文件       5099  2008-07-01 09:19  IDE-pso\behavior\PSGTBehavior.java

     文件          6  2012-07-30 10:01  IDE-pso\DE-PSO.txt

     文件       3789  2008-07-01 09:19  IDE-pso\DEPS.java

     文件       2982  2008-07-01 09:19  IDE-pso\DEPSAgent.java

     文件       1679  2008-07-01 09:23  IDE-pso\encode\EvalElement.java

     文件       1490  2008-07-01 09:23  IDE-pso\encode\EvalStruct.java

     文件        254  2008-07-01 09:23  IDE-pso\encode\IEncodeEngine.java

     文件        589  2008-07-01 09:24  IDE-pso\Global\BasicArray.java

     文件       2034  2008-07-01 09:24  IDE-pso\Global\BasicBound.java

     文件       1546  2008-07-01 09:24  IDE-pso\Global\BasicTag.java

     文件        430  2008-07-01 09:24  IDE-pso\Global\CompareValue.java

     文件       1182  2008-07-01 09:24  IDE-pso\Global\GlobalCompare.java

     文件       8880  2008-07-01 09:25  IDE-pso\Global\GlobalFile.java

     文件       4139  2008-07-01 09:25  IDE-pso\Global\GlobalString.java

     文件        270  2008-07-01 09:34  IDE-pso\Global\IUpdateCycleEngine.java

     文件        685  2008-07-01 09:27  IDE-pso\Global\OutputMethods.java

     文件       3397  2008-07-01 09:26  IDE-pso\Global\RandomGenerator.java

     文件       2090  2008-07-01 09:29  IDE-pso\goodness\ACRComparator.java

     文件       1117  2008-07-01 09:34  IDE-pso\goodness\BCHComparator.java

     文件        679  2008-07-01 09:28  IDE-pso\goodness\IGoodnessCompareEngine.java

     文件       1065  2008-07-01 09:29  IDE-pso\goodness\PenaltyComparator.java

     文件        964  2008-07-01 09:29  IDE-pso\goodness\SRComparator.java

     文件        247  2008-07-01 09:30  IDE-pso\knowledge\ILibEngine.java

     文件       2432  2008-07-01 09:30  IDE-pso\knowledge\Library.java

............此处省略39个文件信息

评论

共有 条评论