Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5835


Ignore:
Timestamp:
03/28/11 13:34:40 (13 years ago)
Author:
mkommend
Message:

#1418: Changed default formatter of SymbolicExpressionView and hid the maximization parameter for single objective symbolic data analysis problems.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs

    r5829 r5835  
    4343      IEnumerable<ISymbolicExpressionTreeStringFormatter> formatters = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeStringFormatter>();
    4444      treeFormattersList = new List<ISymbolicExpressionTreeStringFormatter>();
    45       int selectedIndex = -1;
    4645      foreach (ISymbolicExpressionTreeStringFormatter formatter in formatters) {
    47         if (formatter is ISymbolicExpressionTreeStringFormatter)
    48           selectedIndex = treeFormattersList.Count;
    4946        treeFormattersList.Add(formatter);
    5047        formattersComboBox.Items.Add(formatter.Name);
    5148      }
    52       formattersComboBox.SelectedIndex = selectedIndex;
     49      if (formattersComboBox.Items.Count > 0)
     50        formattersComboBox.SelectedIndex = 0;
     51      else
     52        formattersComboBox.SelectedIndex = -1;
    5353    }
    5454
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisSingleObjectiveProblem.cs

    r5809 r5835  
    2020#endregion
    2121
     22using System;
    2223using System.Linq;
    2324using HeuristicLab.Common;
     
    2728using HeuristicLab.Parameters;
    2829using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using System;
    3030
    3131namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     
    7070      : base(original, cloner) {
    7171      RegisterEventHandler();
     72      MaximizationParameter.Hidden = true;
    7273    }
    7374
     
    7778      Parameters.Add(new FixedValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem.", new DoubleValue()));
    7879
     80      MaximizationParameter.Hidden = true;
    7981      RegisterEventHandler();
    8082    }
Note: See TracChangeset for help on using the changeset viewer.