Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/21 16:56:22 (2 years ago)
Author:
dpiringe
Message:

#3136

  • added a hidden interpreter parameter for StructuredSymbolicRegressionSingleObjectiveProblem
  • fixed a bug which crashed the application by changing ProblemData with different variables
  • fixed a bug which crashed the application by running the problem with an empty StructureTemplate
  • added a better output of exceptions of type AggregateException
  • added and resize event handler to repaint nodes of type SubFunctionTreeNode
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/StructureTemplate/StructureTemplateView.cs

    r18073 r18075  
    22using System.Collections.Generic;
    33using System.Drawing;
     4using System.Linq;
    45using System.Text;
    56using System.Windows.Forms;
     
    2526      InitializeComponent();
    2627      infoLabel.Text = "";
     28      this.Resize += StructureTemplateViewResize;
    2729      treeChart.SymbolicExpressionTreeNodeClicked += SymbolicExpressionTreeNodeClicked;
    2830     
     31    }
     32
     33    private void StructureTemplateViewResize(object sender, EventArgs e) {
     34      PaintTree();
    2935    }
    3036
     
    8389          infoLabel.Text = "Template structure successfully parsed.";
    8490          infoLabel.ForeColor = Color.DarkGreen;
     91        } catch (AggregateException ex) {
     92          infoLabel.Text = string.Join("\n", ex.InnerExceptions.Select(x => x.Message));
     93          infoLabel.ForeColor = Color.DarkRed;
    8594        } catch (Exception ex) {
    8695          infoLabel.Text = ex.Message;
Note: See TracChangeset for help on using the changeset viewer.