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