Changeset 13257 for trunk/sources
- Timestamp:
- 11/18/15 16:19:19 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
r13180 r13257 35 35 36 36 namespace HeuristicLab.Problems.ExternalEvaluation { 37 [Item("External Evaluation Problem ", "A problem that is evaluated in a different process.")]37 [Item("External Evaluation Problem (single-objective)", "A problem that is evaluated in a different process.")] 38 38 [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 100)] 39 39 [StorableClass] 40 // BackwardsCompatibility3.3 41 // Rename class to SingleObjectiveExternalEvaluationProblem 40 42 public class ExternalEvaluationProblem : SingleObjectiveBasicProblem<IEncoding>, IExternalEvaluationProblem { 41 43 -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r13183 r13257 34 34 35 35 namespace HeuristicLab.Problems.ExternalEvaluation { 36 [Item(" Multi Objective External Evaluation Problem", "A multi-objective problem that is evaluated in a different process.")]36 [Item("External Evaluation Problem (multi-objective)", "A multi-objective problem that is evaluated in a different process.")] 37 37 [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 200)] 38 38 [StorableClass] … … 90 90 Parameters.Add(new ValueParameter<SolutionMessageBuilder>("MessageBuilder", "The message builder that converts from HeuristicLab objects to SolutionMessage representation.", new SolutionMessageBuilder()) { Hidden = true }); 91 91 Parameters.Add(new FixedValueParameter<MultiObjectiveOptimizationSupportScript>("SupportScript", "A script that can analyze the results of the optimization.", new MultiObjectiveOptimizationSupportScript())); 92 93 //Operators.Add(new BestScopeSolutionAnalyzer()); pareto front94 92 } 95 93 -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/CompiledMultiObjectiveOptimizationSupport.cs
r13183 r13257 1 using System; 2 using System.Linq; 3 using System.Collections.Generic; 4 using HeuristicLab.Common; 5 using HeuristicLab.Core; 6 using HeuristicLab.Data; 1 using HeuristicLab.Core; 7 2 using HeuristicLab.Optimization; 8 3 … … 13 8 // Use vars.yourVariable to access variables in the variable store i.e. yourVariable 14 9 // Write or update results given the range of vectors and resulting qualities 15 // Uncomment the following lines if you want to retrieve the best individual16 //var bestIndex = Maximization ?17 // qualities.Select((v, i) => Tuple.Create(i, v)).OrderByDescending(x => x.Item2).First().Item118 // : qualities.Select((v, i) => Tuple.Create(i, v)).OrderBy(x => x.Item2).First().Item1;19 //var best = individuals[bestIndex];20 10 } 21 11 -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/CompiledSingleObjectiveOptimizationSupport.cs
r11961 r13257 1 using System; 2 using System.Linq; 3 using System.Collections.Generic; 4 using HeuristicLab.Common; 1 using System.Collections.Generic; 5 2 using HeuristicLab.Core; 6 using HeuristicLab.Data;7 3 using HeuristicLab.Optimization; 8 4 … … 14 10 // Write or update results given the range of vectors and resulting qualities 15 11 // Uncomment the following lines if you want to retrieve the best individual 16 //var bestIndex = Maximization ? 17 // qualities.Select((v, i) => Tuple.Create(i, v)).OrderByDescending(x => x.Item2).First().Item1 18 // : qualities.Select((v, i) => Tuple.Create(i, v)).OrderBy(x => x.Item2).First().Item1; 19 //var best = individuals[bestIndex]; 12 // Maximization: 13 // var bestIndex = qualities.Select((v, i) => Tuple.Create(i, v)).OrderByDescending(x => x.Item2).First().Item1; 14 // Minimization: 15 // var bestIndex = qualities.Select((v, i) => Tuple.Create(i, v)).OrderBy(x => x.Item2).First().Item1; 16 // var best = individuals[bestIndex]; 20 17 } 21 18 … … 38 35 } 39 36 } 40
Note: See TracChangeset
for help on using the changeset viewer.