/// <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); }
/// <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); }
/// <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>(); }
/// <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) { }
/// <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>(); }
/// <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>(); }