15 CancellationToken cancellationToken =
default)
17 ArgumentNullException.ThrowIfNull(
35 options.EqualityTolerance);
38 new DebConstraintGaOptimizer();
41 optimizer.Descriptor.Id,
42 MetaheuristicAlgorithmIds.DebConstraintGa,
43 StringComparison.Ordinal))
45 throw new InvalidOperationException(
46 "Unexpected Deb constraint-GA algorithm identity.");
50 new DebConstraintGaParameters
53 options.PopulationSize,
56 options.MaximumGenerations,
58 CrossoverProbability =
59 options.CrossoverProbability,
62 options.MutationProbability,
65 options.DistributionIndex
69 new OptimizationOptions
78 ConstrainedOptimizationResult platformResult =
88 problem.DecodeCandidate(
89 platformResult.Best.Solution);
92 problem.EvaluateObjective(
93 platformResult.Best.Solution);
102 platformResult.Best.Objective) >
105 throw new InvalidOperationException(
106 "MetaheuristicsPlatform objective result does not match independent bridge evaluation.");
110 platformResult.Best.Constraints.IsFeasible &&
111 problem.IsDecodedCandidateFeasible(
112 platformResult.Best.Solution);
115 optimizer.Descriptor.Id,
116 platformResult.Best.Solution,
119 platformResult.Best.Constraints.TotalViolation,
121 platformResult.Evaluations,
122 platformResult.Iterations,