예제 #1
0
    public NSGAII_settings(String problemName, int numPar, double[] lowerLim, double[] upperLim, int numObj)
        : base(problemName, numPar, lowerLim, upperLim, numObj)
    {
      encoding_ = "Real";
      problem_ = new ProblemFactory().getProblem(problemName, (Object)encoding_, numPar, lowerLim, upperLim, numObj);
      //Console.WriteLine ("ProblemFactory: created problem " + problem_.problemName_);

      populationSize_ = 30;
      maxEvaluations_ = 600;
      mutationProbability_ = 1.0 / this.problem_.numberOfVariables_;
      crossoverProbability_ = 0.9;
      mutationDistributionIndex_ = 10.0;
      crossoverDistributionIndex_ = 10.0;
    }
예제 #2
0
        public NSGAII_settings(String problemName, int numPar, int[] lowerLim, int[] upperLim, int numObj)
            : base(problemName, numPar, lowerLim, upperLim, numObj)
        {
            encoding_ = "Real";
            problem_  = new ProblemFactory().getProblem(problemName, (Object)encoding_, numPar, lowerLim, upperLim, numObj);
            //Console.WriteLine ("ProblemFactory: created problem " + problem_.problemName_);

            populationSize_             = 30;
            maxEvaluations_             = 600;
            mutationProbability_        = 1.0 / this.problem_.numberOfVariables_;
            crossoverProbability_       = 0.9;
            mutationDistributionIndex_  = 10.0;
            crossoverDistributionIndex_ = 10.0;
        }