Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

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

    r3797 r4068  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using System.Linq;
    25 using System.Text;
     23using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Encodings.BinaryVectorEncoding;
     26using HeuristicLab.Operators;
    2627using HeuristicLab.Optimization;
    27 using HeuristicLab.Data;
    28 using HeuristicLab.Core;
    29 using HeuristicLab.Operators;
    30 using HeuristicLab.Encodings.BinaryVectorEncoding;
    3128using HeuristicLab.Parameters;
    3229using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    9390
    9491      int i = -1;
    95       if (!max) 
     92      if (!max)
    9693        i = qualities.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).First().index;
    9794      else i = qualities.Select((x, index) => new { index, x.Value }).OrderByDescending(x => x.Value).First().index;
     
    110107        BestSolutionParameter.ActualValue = solution;
    111108        results.Add(new Result("Best Knapsack Solution", solution));
    112       }  else {
     109      } else {
    113110        if (max && qualities[i].Value > solution.Quality.Value ||
    114111          !max && qualities[i].Value < solution.Quality.Value) {
Note: See TracChangeset for help on using the changeset viewer.