Ejemplo n.º 1
0
        public ExternalEvaluationProblem()
            : base()
        {
            ExternalEvaluator          evaluator       = new ExternalEvaluator();
            UserDefinedSolutionCreator solutionCreator = new UserDefinedSolutionCreator();

            Parameters.Add(new ValueParameter <CheckedItemCollection <IEvaluationServiceClient> >("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection <IEvaluationServiceClient>()
            {
                new EvaluationServiceClient()
            }));
            Parameters.Add(new ValueParameter <IExternalEvaluationProblemEvaluator>("Evaluator", "The evaluator that collects the values to exchange.", evaluator));
            Parameters.Add(new ValueParameter <ISolutionCreator>("SolutionCreator", "An operator to create the solution components.", solutionCreator));
            Parameters.Add(new ValueParameter <BoolValue>("Maximization", "Set to false as most test functions are minimization problems.", new BoolValue(false)));
            Parameters.Add(new OptionalValueParameter <DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem."));
            Parameters.Add(new OptionalValueParameter <IScope>("BestKnownSolution", "The best known solution for this external evaluation problem."));
            Parameters.Add(new ValueParameter <ItemList <IItem> >("Operators", "The operators and items that the problem provides to the algorithms.", new ItemList <IItem>()));
            Parameters.Add(new OptionalValueParameter <EvaluationCache>("Cache", "Cache of previously evaluated solutions."));

            InitializeOperators();
            RegisterEventHandlers();
        }
    public ExternalEvaluationProblem()
      : base() {
      ExternalEvaluator evaluator = new ExternalEvaluator();
      UserDefinedSolutionCreator solutionCreator = new UserDefinedSolutionCreator();

      Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() }));
      Parameters.Add(new ValueParameter<IExternalEvaluationProblemEvaluator>("Evaluator", "The evaluator that collects the values to exchange.", evaluator));
      Parameters.Add(new ValueParameter<ISolutionCreator>("SolutionCreator", "An operator to create the solution components.", solutionCreator));
      Parameters.Add(new ValueParameter<BoolValue>("Maximization", "Set to false as most test functions are minimization problems.", new BoolValue(false)));
      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem."));
      Parameters.Add(new OptionalValueParameter<IScope>("BestKnownSolution", "The best known solution for this external evaluation problem."));
      Parameters.Add(new ValueParameter<ItemList<IItem>>("Operators", "The operators and items that the problem provides to the algorithms.", new ItemList<IItem>()));
      Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions."));

      InitializeOperators();
      RegisterEventHandlers();
    }
Ejemplo n.º 3
0
 protected ExternalEvaluator(ExternalEvaluator original, Cloner cloner) : base(original, cloner) { }
Ejemplo n.º 4
0
 protected ExternalEvaluator(ExternalEvaluator original, Cloner cloner) : base(original, cloner)
 {
 }