Base-class for an optimizer.
Inheritance: Problem
示例#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 a Statistics-object.
 /// </summary>
 /// <param name="optimizer">Optimizer-object being wrapped.</param>
 /// <param name="onlyFeasible">Only use feasible results.</param>
 public Statistics(Optimizer optimizer, bool onlyFeasible)
     : base(optimizer)
 {
     OnlyFeasible = onlyFeasible;
     Results      = new List <Result>();
 }
示例#4
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="optimizer">Optimizer to use.</param>
 /// <param name="numRuns">Number of optimization runs to perform.</param>
 public RepeatSum(Optimizer optimizer, int numRuns)
     : base(optimizer, numRuns)
 {
 }
示例#5
0
 /// <summary>
 /// Create a Statistics-object.
 /// </summary>
 /// <param name="optimizer">Optimizer-object being wrapped.</param>
 /// <param name="onlyFeasible">Only use feasible results.</param>
 public Statistics(Optimizer optimizer, bool onlyFeasible)
     : base(optimizer)
 {
     OnlyFeasible = onlyFeasible;
     Results = new List<Result>();
 }
示例#6
0
 /// <summary>
 /// Create a Statistics-object.
 /// </summary>
 /// <param name="optimizer">Optimizer-object being wrapped.</param>
 public Statistics(Optimizer optimizer)
     : base()
 {
     Optimizer = optimizer;
     Results = new List<Result>();
 }