예제 #1
0
 public QualityIndicator(Problem problem, String paretoFrontFile)
 {
     _problem = problem;
     _trueParetoFront = MetricsUtil.ReadNonDominatedSolutionSet(paretoFrontFile);
     _trueParetoFrontHypervolume = new Hypervolume().HypervolumeValue(
         _trueParetoFront.WriteObjectivesToMatrix(),
         _trueParetoFront.WriteObjectivesToMatrix(),
         _problem.NumberOfObjectives);
 }
 public RankingAndCrowdingSelection(Dictionary<string, object> parameters)
     : base(parameters)
 {
     if (parameters == null)
     {
         throw new ArgumentNullException("parameters");
     }
     object parameter;
     if (parameters.TryGetValue("problem", out parameter))
     {
         _problem = (Problem) parameter;
     }
     else
     {
         throw new Exception("problem not specified");
     }
 }
예제 #3
0
        public RealSolutionType(Problem problem)
            : base(problem)
        {
            if (problem == null)
            {
                throw new ArgumentNullException("problem");
            }

            problem.VariableType = new Type[problem.NumberOfVariables];
            problem.TypeOfSolution = this;

            // Initializing the types of the variables
            for (var i = 0; i < problem.NumberOfVariables; i++)
            {
                problem.VariableType[i] = typeof (Real);
            }
        }
예제 #4
0
 public BaseSolutionType(Problem problem)
 {
     Problema = problem;
 }
예제 #5
0
 public ThetaNsgaiii(Problem problema)
     : base(problema)
 {
 }
예제 #6
0
 public BinaryRealSolutionType(Problem problem)
     : base(problem)
 {
 }
예제 #7
0
 public PermutationSolutionType(Problem problem)
     : base(problem)
 {
 }
예제 #8
0
 public ArrayRealSolutionType(Problem problem)
     : base(problem)
 {
 }
예제 #9
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="problema">
 ///     A <see cref="Core.Problem" />
 /// </param>
 public Algorithm(Problem problema)
     : this()
 {
     Problema = problema;
 }
예제 #10
0
 public IntSolutionType(Problem problem)
     : base(problem)
 {
 }
예제 #11
0
 public Nsgaii(Problem problema)
     : base(problema)
 {
 }