Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11328


Ignore:
Timestamp:
09/02/14 14:04:20 (10 years ago)
Author:
pfleck
Message:

#2208 Set BestKnownQuality to null when BestKnownSolution is set to null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/OrienteeringProblem.cs

    r11325 r11328  
    206206    }
    207207    private void PointVisitingCostsParameterValue_ValueChanged(object sender, EventArgs e) { }
     208
     209    private void BestKnownSolutionParameter_ValueChanged(object sender, EventArgs e) {
     210      if (BestKnownSolution == null)
     211        BestKnownQuality = null;
     212    }
    208213    #endregion
    209214
     
    230235      ScoresParameter.ValueChanged += ScoresParameter_ValueChanged;
    231236      ScoresParameter.Value.Reset += ScoresValue_Reset;
     237
     238      BestKnownSolutionParameter.ValueChanged += BestKnownSolutionParameter_ValueChanged;
    232239    }
    233240
     
    351358
    352359      // Clear old solutions
    353       BestKnownQuality = null;
    354360      BestKnownSolution = null;
    355361
     
    378384
    379385      // Clear old solutions
    380       BestKnownQuality = null;
    381386      BestKnownSolution = null;
    382387
     
    405410
    406411      // Clear old solutions
    407       BestKnownQuality = null;
    408412      BestKnownSolution = null;
    409413
Note: See TracChangeset for help on using the changeset viewer.