Exemplo n.º 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");
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 4
0
 public BaseSolutionType(Problem problem)
 {
     Problema = problem;
 }
Exemplo n.º 5
0
 public ThetaNsgaiii(Problem problema)
     : base(problema)
 {
 }
Exemplo n.º 6
0
 public BinaryRealSolutionType(Problem problem)
     : base(problem)
 {
 }
Exemplo n.º 7
0
 public PermutationSolutionType(Problem problem)
     : base(problem)
 {
 }
Exemplo n.º 8
0
 public ArrayRealSolutionType(Problem problem)
     : base(problem)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="problema">
 ///     A <see cref="Core.Problem" />
 /// </param>
 public Algorithm(Problem problema)
     : this()
 {
     Problema = problema;
 }
Exemplo n.º 10
0
 public IntSolutionType(Problem problem)
     : base(problem)
 {
 }
Exemplo n.º 11
0
 public Nsgaii(Problem problema)
     : base(problema)
 {
 }