Exemple #1
0
 private RAPGA(RAPGA original, Cloner cloner)
     : base(original, cloner)
 {
     qualityAnalyzer           = cloner.Clone(original.qualityAnalyzer);
     populationSizeAnalyzer    = cloner.Clone(original.populationSizeAnalyzer);
     offspringSuccessAnalyzer  = cloner.Clone(original.offspringSuccessAnalyzer);
     selectionPressureAnalyzer = cloner.Clone(original.selectionPressureAnalyzer);
     Initialize();
 }
    private RAPGA CreateRAPGASchedulingSample() {
      #region Problem Configuration
      JobShopSchedulingProblem problem = new JobShopSchedulingProblem();
      #endregion

      #region Algorithm Configuration
      RAPGA rapga = new RAPGA();
      rapga.Engine = new SequentialEngine.SequentialEngine();
      rapga.Name = "RAPGA - Job Shop Scheduling";
      rapga.Description = "A relevant alleles preserving genetic algorithm which solves a job shop scheduling problem";
      rapga.Problem = problem;
      rapga.Mutator = rapga.MutatorParameter.ValidValues.OfType<JSMSwapManipulator>().First();
      rapga.Seed.Value = 0;
      return rapga;
      #endregion
    }
Exemple #3
0
 private RAPGA(RAPGA original, Cloner cloner)
   : base(original, cloner) {
   qualityAnalyzer = cloner.Clone(original.qualityAnalyzer);
   populationSizeAnalyzer = cloner.Clone(original.populationSizeAnalyzer);
   offspringSuccessAnalyzer = cloner.Clone(original.offspringSuccessAnalyzer);
   selectionPressureAnalyzer = cloner.Clone(original.selectionPressureAnalyzer);
   Initialize();
 }