Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/05/13 12:37:42 (11 years ago)
Author:
mkommend
Message:

#2082: Improved error handling and correct matlab license file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ParameterOptimization/3.3/ParameterOptimizationProblem.cs

    r9682 r9698  
    128128      Bounds.ToStringChanged += Bounds_ToStringChanged;
    129129      ProblemSizeParameter.Value.ValueChanged += ProblemSize_Changed;
     130      ParameterNames.Reset += ParameterNames_Reset;
    130131    }
    131132
     
    154155      UpdateStrategyVectorBounds();
    155156    }
    156     private void UpdateStrategyVectorBounds() {
     157    protected virtual void UpdateStrategyVectorBounds() {
    157158      DoubleMatrix strategyBounds = (DoubleMatrix)Bounds.Clone();
    158159      for (int i = 0; i < strategyBounds.Rows; i++) {
     
    163164    }
    164165
    165     private void ProblemSize_Changed(object sender, EventArgs e) {
     166    protected virtual void ProblemSize_Changed(object sender, EventArgs e) {
    166167      if (ParameterNames.Length != ProblemSize)
    167168        ((IStringConvertibleArray)ParameterNames).Length = ProblemSize;
     
    170171      }
    171172    }
     173
     174    protected virtual void ParameterNames_Reset(object sender, EventArgs e) {
     175      ProblemSize = ParameterNames.Length;
     176    }
    172177  }
    173178}
Note: See TracChangeset for help on using the changeset viewer.