Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12268


Ignore:
Timestamp:
03/30/15 14:40:45 (10 years ago)
Author:
pfleck
Message:

#2366 Fixed variation of bool value-parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EnumValue in CreateExperiment/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs

    r12267 r12268  
    627627      bool finished;
    628628      do {
     629        foreach (var p in boolParameters) {
     630          if (!configuration.ContainsKey(p))
     631            configuration.Add(p, false);
     632        }
     633
     634        yield return configuration;
    629635        finished = true;
     636
    630637        foreach (var p in boolParameters) {
    631           if (!configuration.ContainsKey(p)) configuration.Add(p, false);
    632           else {
    633             if (configuration[p]) {
    634               configuration[p] = false;
    635             } else {
    636               configuration[p] = true;
    637               finished = false;
    638               break;
    639             }
    640           }
    641         }
    642         yield return configuration;
     638          if (configuration[p]) {
     639            configuration[p] = false;
     640          } else {
     641            configuration[p] = true;
     642            finished = false;
     643            break;
     644          }
     645        }
    643646      } while (!finished);
    644647    }
Note: See TracChangeset for help on using the changeset viewer.