Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/14/16 16:38:46 (8 years ago)
Author:
bburlacu
Message:

#2679: Update internal dataset when inputs are changed.

Location:
branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/MultiObjectiveGoalSeekingProblem.cs

    r14333 r14334  
    163163      GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    164164      Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
     165      dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    165166      GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    166167      RegisterEvents();
     
    262263      GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    263264      Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
     265      dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    264266      GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    265267      GoalSeekingUtil.RaiseEvent(this, ModelsChanged);
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/SingleObjectiveGoalSeekingProblem.cs

    r14333 r14334  
    145145      GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    146146      Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
     147      dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    147148      GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    148149      RegisterEvents();
     
    177178      GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    178179      Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
     180      dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    179181      GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    180182      GoalSeekingUtil.RaiseEvent(this, ModelsChanged);
Note: See TracChangeset for help on using the changeset viewer.