Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7976 for trunk


Ignore:
Timestamp:
06/10/12 19:15:40 (12 years ago)
Author:
gkronber
Message:

#1851: fixed a bug which had the effect that the problem instance was not set correctly for each variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs

    r7975 r7976  
    702702      int counter = 0, totalVariations = GetNumberOfVariations();
    703703      if (instances.Count == 0) {
    704         AddParameterVariations(localExperiment, ref counter, totalVariations);
     704        AddParameterVariations(Optimizer, localExperiment, ref counter, totalVariations);
    705705        experimentCreationBackgroundWorker.ReportProgress(100, string.Empty);
    706706
     
    725725            }
    726726            if (!failed) {
    727               AddParameterVariations(localExperiment, ref counter, totalVariations);
     727
     728              AddParameterVariations(algorithm, localExperiment, ref counter, totalVariations);
    728729            } else experimentCreationBackgroundWorker.ReportProgress((int)Math.Round((100.0 * counter) / totalVariations), "Loading failed (" + descriptor.Name + ")");
    729730          }
     
    740741    }
    741742
    742     private void AddParameterVariations(Experiment localExperiment, ref int counter, int totalVariations) {
     743    private void AddParameterVariations(IOptimizer optimizer, Experiment localExperiment, ref int counter, int totalVariations) {
    743744      var variations = experimentCreationBackgroundWorker_CalculateParameterVariations(optimizer);
    744745      foreach (var v in variations) {
Note: See TracChangeset for help on using the changeset viewer.