Changeset 11996 for trunk/sources/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
- Timestamp:
- 02/12/15 21:49:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r11984 r11996 26 26 using HeuristicLab.Common.Resources; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Optimization; 29 30 using HeuristicLab.Parameters; … … 76 77 77 78 private void OnProblemDefinitionChanged() { 79 if (Parameters.ContainsKey("Maximization")) Parameters.Remove("Maximization"); 80 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization", "Set to false if the problem should be minimized.", (BoolValue)new BoolValue(Maximization).AsReadOnly()) { Hidden = true }); 81 78 82 Encoding = ProblemDefinition.Encoding; 83 OnOperatorsChanged(); 84 OnReset(); 79 85 } 80 86
Note: See TracChangeset
for help on using the changeset viewer.