Used for sorting optimization problems so that those hardest to optimize are tried first. This is used in the MetaFitness class where Pre-emptive Fitness Evaluation seeks to abort the meta-fitness evaluation as early as possible.
Пример #1
0
 /// <summary>
 /// Construct the object, weighted problems.
 /// </summary>
 /// <param name="optimizer">Optimize to be used.</param>
 /// <param name="weightedProblems">Array of weighted problems to be optimized.</param>
 /// <param name="numRuns">Number of optimization runs per problem.</param>
 public MetaFitness(Optimizer optimizer, WeightedProblem[] weightedProblems, int numRuns)
     : base()
 {
     Optimizer = optimizer;
     NumRuns = numRuns;
     ProblemIndex = new ProblemIndex(weightedProblems);
 }
Пример #2
0
 /// <summary>
 /// Construct the object, un-weighted problems.
 /// </summary>
 /// <param name="optimizer">Optimize to be used.</param>
 /// <param name="problems">Array of problems to be optimized.</param>
 /// <param name="numRuns">Number of optimization runs per problem.</param>
 public MetaFitness(Optimizer optimizer, Problem[] problems, int numRuns)
     : base()
 {
     Optimizer = optimizer;
     NumRuns = numRuns;
     ProblemIndex = new ProblemIndex(problems);
 }
Пример #3
0
 /// <summary>
 /// Create new object.
 /// </summary>
 /// <param name="problems">Problems to be optimized.</param>
 /// <param name="repeat">Repeat-object.</param>
 public Multi(Problem[] problems, Repeat repeat)
     : base()
 {
     Repeat = repeat;
     ProblemIndex = new ProblemIndex(problems);
 }