Changeset 10856 for branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Datastructures/Configuration.cs
- Timestamp:
- 05/15/14 15:06:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Datastructures/Configuration.cs
r10855 r10856 34 34 public Dictionary<string, ParameterConfiguration> Parameters { get; protected set; } 35 35 36 [Storable]37 public bool Maximization { get; protected set; }38 39 36 [StorableConstructor] 40 37 protected Configuration(bool deserializing) : base(deserializing) { } … … 47 44 } 48 45 } 49 Maximization = original.Maximization;50 46 } 51 47 public Configuration() { … … 88 84 } 89 85 90 public Configuration AddPermutation(string name, PermutationTypes type, int length) {86 public Configuration AddPermutation(string name, int length, PermutationTypes type) { 91 87 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 92 88 Parameters.Add(name, new PermutationParameterConfiguration(length, type)); 93 89 return this; 94 90 } 95 96 public Configuration SetMaximization(bool maximization) {97 Maximization = maximization;98 return this;99 }100 91 } 101 92 }
Note: See TracChangeset
for help on using the changeset viewer.