Changeset 14338
- Timestamp:
- 10/17/16 15:59:59 (8 years ago)
- Location:
- branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/GoalParameter.cs
r14333 r14338 34 34 get { return goal; } 35 35 set { 36 if (double.IsNaN(value) || double.IsInfinity(value)) return; 36 37 if (goal.IsAlmost(value)) return; 37 38 goal = value; … … 45 46 get { return weight; } 46 47 set { 48 if (double.IsNaN(value) || double.IsInfinity(value)) return; 47 49 if (weight.IsAlmost(value)) return; 48 50 weight = value; … … 57 59 get { return variance; } 58 60 set { 61 if (double.IsNaN(value) || double.IsInfinity(value)) return; 59 62 if (variance.IsAlmost(value)) return; 60 63 variance = value; … … 68 71 get { return step; } 69 72 set { 73 if (double.IsNaN(value) || double.IsInfinity(value)) return; 70 74 if (step.IsAlmost(value)) return; 71 75 step = value; -
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/InputParameter.cs
r14333 r14338 34 34 get { return min; } 35 35 set { 36 if (double.IsNaN(value) || double.IsInfinity(value)) return; 36 37 if (min.IsAlmost(value)) return; 37 38 min = value; … … 45 46 get { return max; } 46 47 set { 48 if (double.IsNaN(value) || double.IsInfinity(value)) return; 47 49 if (max.IsAlmost(value)) return; 48 50 max = value; … … 56 58 get { return step; } 57 59 set { 60 if (double.IsNaN(value) || double.IsInfinity(value)) return; 58 61 if (step.IsAlmost(value)) return; 59 62 step = value; … … 67 70 get { return value; } 68 71 set { 72 if (double.IsNaN(value) || double.IsInfinity(value)) return; 69 73 if (this.value.IsAlmost(value)) return; 70 74 this.value = value; -
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/MultiObjectiveGoalSeekingProblem.cs
r14336 r14338 253 253 GoalsParameter.Value.CheckedItemsChanged += GoalSeekingUtil.Goals_CheckedItemsChanged; 254 254 InputsParameter.Value.CheckedItemsChanged += GoalSeekingUtil.Inputs_CheckedItemsChanged; 255 256 foreach (var input in Inputs) 257 input.Changed += InputParameterChanged; 258 259 foreach (var goal in Goals) 260 goal.Changed += GoalParameterChanged; 255 261 } 256 262 … … 259 265 GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged); 260 266 Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs); 261 dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));267 dataset = Inputs.Any() ? new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value })) : new ModifiableDataset(); 262 268 GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged); 263 269 GoalSeekingUtil.RaiseEvent(this, ModelsChanged); -
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/Properties/AssemblyInfo.cs
r14336 r14338 54 54 // [assembly: AssemblyVersion("1.0.*")] 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.11.1433 4")]56 [assembly: AssemblyFileVersion("3.3.11.14336")] -
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/SingleObjectiveGoalSeekingProblem.cs
r14336 r14338 168 168 GoalsParameter.Value.CheckedItemsChanged += GoalSeekingUtil.Goals_CheckedItemsChanged; 169 169 InputsParameter.Value.CheckedItemsChanged += GoalSeekingUtil.Inputs_CheckedItemsChanged; 170 171 foreach (var input in Inputs) 172 input.Changed += InputParameterChanged; 173 174 foreach (var goal in Goals) 175 goal.Changed += GoalParameterChanged; 170 176 } 171 177 … … 174 180 GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged); 175 181 Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs); 176 dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));182 dataset = Inputs.Any() ? new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value })) : new ModifiableDataset(); 177 183 GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged); 178 184 GoalSeekingUtil.RaiseEvent(this, ModelsChanged);
Note: See TracChangeset
for help on using the changeset viewer.