Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/14 10:23:34 (10 years ago)
Author:
abeham
Message:

#2174:

  • Removed SimSharp reference (not the purpose of this branch anymore)
  • Fixed bugs regarding parameter names when no parameter have been defined
  • Added a method to the problem definition to retrieve a neighborhood solution
    • Programmable problem now works with LocalSearch and SimulatedAnnealing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Datastructures/RealParameterConfiguration.cs

    r10856 r11363  
    7171      if (min.Count == 0) throw new ArgumentException("Bounds must be given for the real parameters.");
    7272      if (min.Count != max.Count) throw new ArgumentException("min must be of the same length as max", "min");
    73       if (min.Zip(max, (mi, ma) => mi >= ma).Any()) throw new ArgumentException("min must be less than max in each dimension", "min");
     73      if (min.Zip(max, (mi, ma) => mi >= ma).Any(x => x)) throw new ArgumentException("min must be less than max in each dimension", "min");
    7474      this.length = new IntValue(length);
    7575      bounds = new DoubleMatrix(min.Count, 2);
Note: See TracChangeset for help on using the changeset viewer.