Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/19 13:15:58 (6 years ago)
Author:
chaider
Message:

#2971 Changed Interval Constraints View
-Added View for successfully parsed Constraints
-Save Constraints as IntervalConstraints

Location:
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintConstOptEvaluator.cs

    r16713 r16756  
    5959      OnlineCalculatorError errorState = OnlineCalculatorError.None;
    6060
    61       var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value);
     61      //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value);
     62      var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints;
    6263      var intervalInterpreter = new IntervalInterpreter();
    6364      var variableRanges = ((RegressionProblemData)problemData).VariableRangesParameter.Value.VariableIntervals;
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintPearsonRSquaredEvaluator.cs

    r16713 r16756  
    5959      OnlineCalculatorError errorState = OnlineCalculatorError.None;
    6060
    61       var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value);
     61      //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Value);
     62      var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints;
    6263      var intervalInterpreter = new IntervalInterpreter();
    6364      var variableRanges = ((RegressionProblemData)problemData).VariableRangesParameter.Value.VariableIntervals;
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs

    r16747 r16756  
    8787    static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model,
    8888      IRegressionProblemData problemData) {
    89       var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraints.Value);
     89      //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraints.Value);
     90      var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints;
    9091      var constraintViolations = new Dictionary<IntervalConstraint, bool>();
    9192      var variableRanges = ((RegressionProblemData)problemData).VariableRanges.VariableIntervals;
     
    147148      var constraintViolations = new Dictionary<string, int>();
    148149
    149       var constraints = IntervalConstraintsParser.Parse(problemData.IntervalConstraints.Value);
     150      //var constraints = IntervalConstraintsParser.Parse(problemData.IntervalConstraints.Value);
     151      var constraints = problemData.IntervalConstraintsParameter.Value.Constraints;
    150152
    151153      if (dataTable.Rows.Count == 0) {
Note: See TracChangeset for help on using the changeset viewer.