Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/16 11:04:19 (8 years ago)
Author:
bburlacu
Message:

#2679: Do not update inputs/goals in constructor. Fix bug in InputParameterView.cs, fix bug in Configure method (use all variables not just the AllowedInputVariables).

Location:
branches/HeuristicLab.GoalSeekingProblem
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem.Views/3.4/InputParameterView.cs

    r14333 r14336  
    9292    private void maxTextBox_TextChanged(object sender, EventArgs e) {
    9393      double max;
    94       if (double.TryParse(minTextBox.Text, out max))
     94      if (double.TryParse(maxTextBox.Text, out max))
    9595        Content.Max = max;
    9696    }
     
    9898    private void stepTextBox_TextChanged(object sender, EventArgs e) {
    9999      double step;
    100       if (double.TryParse(minTextBox.Text, out step))
     100      if (double.TryParse(stepTextBox.Text, out step))
    101101        Content.Step = step;
    102102    }
     
    104104    private void valueTextBox_TextChanged(object sender, EventArgs e) {
    105105      double value;
    106       if (double.TryParse(minTextBox.Text, out value))
     106      if (double.TryParse(valueTextBox.Text, out value))
    107107        Content.Value = value;
    108108    }
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/GoalSeekingUtil.cs

    r14333 r14336  
    9090      var goalMap = goals.ToDictionary(x => x.Name, x => x);
    9191
    92       foreach (var variable in problemData.AllowedInputVariables) {
     92      foreach (var variable in problemData.Dataset.DoubleVariables) {
    9393        if (inputMap.ContainsKey(variable)) {
    9494          var values = problemData.Dataset.GetReadOnlyDoubleValues(variable);
     
    101101          }
    102102          input.Min = min;
    103           input.Min = max;
     103          input.Max = max;
    104104        } else if (goalMap.ContainsKey(variable)) {
    105105          var values = problemData.Dataset.GetReadOnlyDoubleValues(variable);
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/MultiObjectiveGoalSeekingProblem.cs

    r14334 r14336  
    161161      SolutionCreatorParameter.Hidden = true;
    162162      MaximizationParameter.Hidden = true;
    163       GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    164       Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
    165       dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    166       GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    167163      RegisterEvents();
    168164    }
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/Properties/AssemblyInfo.cs

    r14333 r14336  
    5454// [assembly: AssemblyVersion("1.0.*")]
    5555[assembly: AssemblyVersion("3.3.0.0")]
    56 [assembly: AssemblyFileVersion("3.3.11.14325")]
     56[assembly: AssemblyFileVersion("3.3.11.14334")]
  • branches/HeuristicLab.GoalSeekingProblem/HeuristicLab.GoalSeekingProblem/3.4/SingleObjectiveGoalSeekingProblem.cs

    r14334 r14336  
    143143      EvaluatorParameter.Hidden = true;
    144144      SolutionCreatorParameter.Hidden = true;
    145       GoalSeekingUtil.UpdateInputs(InputsParameter.Value, Models, InputParameterChanged);
    146       Encoding = GoalSeekingUtil.CreateEncoding(ActiveInputs);
    147       dataset = new ModifiableDataset(Inputs.Select(x => x.Name), Inputs.Select(x => new List<double> { x.Value }));
    148       GoalSeekingUtil.UpdateTargets(GoalsParameter.Value, Models, GoalParameterChanged);
    149145      RegisterEvents();
    150146    }
Note: See TracChangeset for help on using the changeset viewer.