Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3463


Ignore:
Timestamp:
04/21/10 15:21:47 (15 years ago)
Author:
svonolfe
Message:

Implemented review comment for KnapsackProblem (parameter array lengths are now synchronized) (#917)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r3303 r3463  
    241241    void WeightsValue_Reset(object sender, EventArgs e) {
    242242      ParameterizeSolutionCreator();
     243
     244      if (WeightsParameter.Value != null && ValuesParameter.Value != null)
     245        ((IStringConvertibleArray)ValuesParameter.Value).Length = WeightsParameter.Value.Length;
    243246    }
    244247    void ValuesParameter_ValueChanged(object sender, EventArgs e) {
     
    250253    void ValuesValue_Reset(object sender, EventArgs e) {
    251254      ParameterizeSolutionCreator();
     255
     256      if (WeightsParameter.Value != null && ValuesParameter.Value != null)
     257        ((IStringConvertibleArray)WeightsParameter.Value).Length = ValuesParameter.Value.Length;
    252258    }
    253259    void PenaltyParameter_ValueChanged(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.