source: branches/2521_ProblemRefactoring/HeuristicLab.Problems.GraphColoring/3.3/GraphColoringProblem.cs @ 17270

Last change on this file since 17270 was 17270, checked in by abeham, 3 years ago

#2521: worked on removing virtual from Maximization for single-objective problems

File size: 30.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Linq;
24using HEAL.Attic;
25using HeuristicLab.Analysis;
26using HeuristicLab.Common;
27using HeuristicLab.Core;
28using HeuristicLab.Data;
29using HeuristicLab.Encodings.LinearLinkageEncoding;
30using HeuristicLab.Optimization;
31using HeuristicLab.Optimization.Operators;
32using HeuristicLab.Parameters;
33using HeuristicLab.Problems.Instances;
34
35namespace HeuristicLab.Problems.GraphColoring {
36  [StorableType("88078013-834F-40AC-9298-B8E1C4B393D3")]
37  public enum FitnessFunction { Prioritized, Penalized }
38  [Item("Graph Coloring Problem (GCP)", "Attempts to find a coloring using a minimal number of colors that doesn't produce a conflict.")]
39  [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 135)]
40  [StorableType("007BD5F0-196C-4045-AC5D-BF287927C3DC")]
41  public sealed class GraphColoringProblem : LinearLinkageProblem,
42    IProblemInstanceConsumer<GCPData>, IProblemInstanceExporter<GCPData> {
43
44    [Storable]
45    private IValueParameter<IntMatrix> adjacencyListParameter;
46    public IValueParameter<IntMatrix> AdjacencyListParameter {
47      get { return adjacencyListParameter; }
48    }
49    [Storable]
50    private IValueParameter<EnumValue<FitnessFunction>> fitnessFunctionParameter;
51    public IValueParameter<EnumValue<FitnessFunction>> FitnessFunctionParameter {
52      get { return fitnessFunctionParameter; }
53    }
54    public FitnessFunction FitnessFunction {
55      get { return fitnessFunctionParameter.Value.Value; }
56      set { fitnessFunctionParameter.Value.Value = value; }
57    }
58    [Storable]
59    private IValueParameter<IntValue> bestKnownColorsParameter;
60    public IValueParameter<IntValue> BestKnownColorsParameter {
61      get { return bestKnownColorsParameter; }
62    }
63
64    [StorableConstructor]
65    private GraphColoringProblem(StorableConstructorFlag _) : base(_) { }
66    private GraphColoringProblem(GraphColoringProblem original, Cloner cloner)
67      : base(original, cloner) {
68      adjacencyListParameter = cloner.Clone(original.adjacencyListParameter);
69      fitnessFunctionParameter = cloner.Clone(original.fitnessFunctionParameter);
70      bestKnownColorsParameter = cloner.Clone(original.bestKnownColorsParameter);
71      RegisterEventHandlers();
72    }
73    public GraphColoringProblem() {
74      Maximization = false;
75      Parameters.Add(adjacencyListParameter = new ValueParameter<IntMatrix>("Adjacency List", "The adjacency list that describes the (symmetric) edges in the graph with nodes from 0 to N-1."));
76      Parameters.Add(fitnessFunctionParameter = new ValueParameter<EnumValue<FitnessFunction>>("Fitness Function", "The function to use for evaluating the quality of a solution.", new EnumValue<FitnessFunction>(FitnessFunction.Penalized)));
77      Parameters.Add(bestKnownColorsParameter = new OptionalValueParameter<IntValue>("BestKnownColors", "The least amount of colors in a valid coloring."));
78
79      var imat = new IntMatrix(defaultInstance.Length, 2);
80      for (var i = 0; i < defaultInstance.Length; i++) {
81        imat[i, 0] = defaultInstance[i].Item1 - 1;
82        imat[i, 1] = defaultInstance[i].Item2 - 1;
83      }
84      Encoding.Length = defaultInstanceNodes;
85      AdjacencyListParameter.Value = imat;
86      BestKnownQualityParameter.Value = null;
87      BestKnownColorsParameter.Value = new IntValue(defaultInstanceBestColors);
88
89      InitializeOperators();
90      RegisterEventHandlers();
91    }
92
93    public override IDeepCloneable Clone(Cloner cloner) {
94      return new GraphColoringProblem(this, cloner);
95    }
96
97    protected override void OnEncodingChanged() {
98      base.OnEncodingChanged();
99
100      Parameterize();
101    }
102
103    [StorableHook(HookType.AfterDeserialization)]
104    private void AfterDeserialization() {
105      RegisterEventHandlers();
106    }
107
108    private void RegisterEventHandlers() {
109      fitnessFunctionParameter.ValueChanged += FitnessFunctionParameterOnValueChanged;
110      fitnessFunctionParameter.Value.ValueChanged += FitnessFunctionOnValueChanged;
111    }
112
113    private void FitnessFunctionParameterOnValueChanged(object sender, EventArgs eventArgs) {
114      fitnessFunctionParameter.Value.ValueChanged += FitnessFunctionOnValueChanged;
115      FitnessFunctionOnValueChanged(sender, eventArgs);
116    }
117
118    private void FitnessFunctionOnValueChanged(object sender, EventArgs eventArgs) {
119      BestKnownQualityParameter.Value = null;
120      if (FitnessFunction == FitnessFunction.Prioritized
121        && BestKnownColorsParameter.Value != null
122        && Encoding.Length > 0) {
123        var mag = Math.Pow(10, -(int)Math.Ceiling(Math.Log10(Encoding.Length)));
124        // the value is e.g. 0.051 for 0 conflicts with 51 colors (and less than 1000 nodes)
125        BestKnownQuality = BestKnownColorsParameter.Value.Value * mag;
126      } else BestKnownQualityParameter.Value = null;
127      OnReset();
128    }
129
130    public override double Evaluate(LinearLinkage lle, IRandom random) {
131      var adjList = adjacencyListParameter.Value;
132      var llee = lle.ToEndLinks(); // LLE-e encoding uses the highest indexed member as group number
133
134      switch (FitnessFunction) {
135        case FitnessFunction.Prioritized: {
136            var colors = llee.Distinct().Count();
137            var conflicts = CalculateConflicts(llee);
138            // number of conflicts is the integer part of the quality
139            // number of colors constitutes the fractional part
140            // the number of fractional digits is defined by the maximum number of possible colors (each node its own color)
141            var mag = Math.Pow(10, -(int)Math.Ceiling(Math.Log10(llee.Length)));
142            // the value is e.g. 4.03 for 4 conflicts with 3 colors (and less than 100 nodes)
143            return conflicts + colors * mag;
144          }
145        case FitnessFunction.Penalized: {
146            // Fitness function from
147            // David S. Johnson, Cecilia R. Aragon, Lyle A. McGeoch, and Catherine Schevon. 1991.
148            // Optimization by simulated annealing: An experimental evaluation; part II, graph coloring and number partitioning.
149            // Operations Research 39(3), pp. 378–406.
150            // All local optima of this function correspond to legal colorings.
151            // We need to calculate conflicts and nodes per color
152            var colors = llee.GroupBy(x => x).ToDictionary(x => x.Key, x => new EvaluationHelper() { ColorCount = x.Count() });
153            for (var r = 0; r < adjList.Rows; r++) {
154              var color1 = llee[adjList[r, 0]];
155              var color2 = llee[adjList[r, 1]];
156              if (color1 == color2) colors[color1].ConflictCount++;
157            }
158            return 2 * colors.Sum(x => x.Value.ColorCount * x.Value.ConflictCount) - colors.Sum(x => x.Value.ColorCount * x.Value.ColorCount);
159          }
160        default: throw new InvalidOperationException(string.Format("Unknown fitness function {0}.", FitnessFunction));
161      }
162    }
163
164    private class EvaluationHelper {
165      public int ColorCount { get; set; }
166      public int ConflictCount { get; set; }
167    }
168
169    public override void Analyze(LinearLinkage[] lles, double[] qualities, ResultCollection results, IRandom random) {
170      var orderedIndividuals = lles.Zip(qualities, (i, q) => new { LLE = i, Quality = q }).OrderBy(z => z.Quality);
171      var best = Maximization ? orderedIndividuals.Last().LLE : orderedIndividuals.First().LLE;
172
173      var llee = best.ToEndLinks();
174      var colors = llee.Distinct().Count();
175      var conflicts = CalculateConflicts(llee);
176
177      IResult res;
178      int bestColors = int.MaxValue, bestConflicts = int.MaxValue;
179      var improvement = false;
180      if (!results.TryGetValue("Best Solution Conflicts", out res)) {
181        bestConflicts = conflicts;
182        res = new Result("Best Solution Conflicts", new IntValue(bestConflicts));
183        results.Add(res);
184      } else {
185        bestConflicts = ((IntValue)res.Value).Value;
186        improvement = conflicts < bestConflicts;
187        if (improvement) ((IntValue)res.Value).Value = bestConflicts = conflicts;
188      }
189      if (!results.TryGetValue("Best Solution Colors", out res)) {
190        bestColors = colors;
191        res = new Result("Best Solution Colors", new IntValue(bestColors));
192        results.Add(res);
193      } else {
194        bestColors = ((IntValue)res.Value).Value;
195        improvement = improvement || conflicts == bestConflicts && colors < bestColors;
196        if (improvement)
197          ((IntValue)res.Value).Value = bestColors = colors;
198      }
199      if (!results.ContainsKey("Best Encoded Solution") || improvement)
200        results.AddOrUpdateResult("Best Encoded Solution", (LinearLinkage)best.Clone());
201
202      if (!results.TryGetValue("Best Solution", out res) || !(res.Value is IntMatrix)) {
203        var matrix = new IntMatrix(llee.Length, 2) { ColumnNames = new[] { "Node", "Color" } };
204        UpdateMatrix(llee, matrix);
205        res = new Result("Best Solution", matrix);
206        results.AddOrUpdateResult("Best Solution", matrix);
207      } else {
208        if (improvement) {
209          UpdateMatrix(llee, (IntMatrix)res.Value);
210        }
211      }
212
213      if (conflicts == 0) {
214        if (BestKnownColorsParameter.Value == null || BestKnownColorsParameter.Value.Value > colors)
215          BestKnownColorsParameter.Value = new IntValue(colors);
216      }
217    }
218
219    private static void UpdateMatrix(int[] llee, IntMatrix matrix) {
220      var assign = llee.Select((v, i) => new { Node = i, Color = v }).OrderBy(x => x.Color);
221      var color = 0;
222      var prev = -1;
223      foreach (var a in assign) {
224        if (prev >= 0 && prev != a.Color)
225          color++;
226        matrix[a.Node, 0] = a.Node;
227        matrix[a.Node, 1] = color;
228        prev = a.Color;
229      }
230    }
231
232    private int CalculateConflicts(int[] llee) {
233      var adjList = AdjacencyListParameter.Value;
234      var conflicts = 0;
235      for (var r = 0; r < adjList.Rows; r++) {
236        if (llee[adjList[r, 0]] == llee[adjList[r, 1]]) conflicts++; // both nodes are adjacent and have the same color (are in the same group)
237      }
238      return conflicts;
239    }
240
241    public void Load(GCPData data) {
242      Encoding.Length = data.Nodes;
243      AdjacencyListParameter.Value = new IntMatrix(data.Adjacencies);
244      if (data.BestKnownColoring != null) {
245        var colors = data.BestKnownColoring.Distinct().Count();
246        BestKnownColorsParameter.Value = new IntValue(colors);
247        if (FitnessFunction == FitnessFunction.Prioritized) {
248          var mag = Math.Pow(10, -(int)Math.Ceiling(Math.Log10(data.Nodes)));
249          BestKnownQuality = colors * mag;
250        } else {
251          var nodesPerColor = data.BestKnownColoring.GroupBy(x => x).Select(x => x.Count());
252          BestKnownQuality = -nodesPerColor.Sum(x => x * x);
253        }
254      } else if (data.BestKnownColors.HasValue) {
255        BestKnownColorsParameter.Value = new IntValue(data.BestKnownColors.Value);
256        if (FitnessFunction == FitnessFunction.Prioritized) {
257          var mag = Math.Pow(10, -(int)Math.Ceiling(Math.Log10(data.Nodes)));
258          // the value is e.g. 0.051 for 0 conflicts with 51 colors (and less than 1000 nodes)
259          BestKnownQuality = data.BestKnownColors.Value * mag;
260        } else BestKnownQualityParameter.Value = null;
261      } else {
262        BestKnownColorsParameter.Value = null;
263        BestKnownQualityParameter.Value = null;
264      }
265      Name = data.Name;
266      Description = data.Description;
267      OnReset();
268    }
269
270    public GCPData Export() {
271      var instance = new GCPData();
272      instance.Name = Name;
273      instance.Description = Description;
274      instance.Nodes = Encoding.Length;
275      var adjList = AdjacencyListParameter.Value;
276      instance.Adjacencies = new int[adjList.Rows, 2];
277      for (var r = 0; r < adjList.Rows; r++) {
278        instance.Adjacencies[r, 0] = adjList[r, 0];
279        instance.Adjacencies[r, 1] = adjList[r, 1];
280      }
281      if (BestKnownColorsParameter.Value != null)
282        instance.BestKnownColors = BestKnownColorsParameter.Value.Value;
283      return instance;
284    }
285
286    private void InitializeOperators() {
287      Operators.Add(new HammingSimilarityCalculator());
288      Operators.Add(new QualitySimilarityCalculator());
289      Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>()));
290
291      Parameterize();
292    }
293
294    private void Parameterize() {
295      foreach (var simCalc in Operators.OfType<ISolutionSimilarityCalculator>()) {
296        simCalc.SolutionVariableName = Encoding.Name;
297        simCalc.QualityVariableName = Evaluator.QualityParameter.ActualName;
298      }
299    }
300
301    #region Default Instance (myciel6.col)
302    private static readonly int defaultInstanceNodes = 95;
303    private static readonly int defaultInstanceBestColors = 7;
304    private static readonly Tuple<int, int>[] defaultInstance = {
305Tuple.Create(1, 2),
306Tuple.Create(1, 4),
307Tuple.Create(1, 7),
308Tuple.Create(1, 9),
309Tuple.Create(1, 13),
310Tuple.Create(1, 15),
311Tuple.Create(1, 18),
312Tuple.Create(1, 20),
313Tuple.Create(1, 25),
314Tuple.Create(1, 27),
315Tuple.Create(1, 30),
316Tuple.Create(1, 32),
317Tuple.Create(1, 36),
318Tuple.Create(1, 38),
319Tuple.Create(1, 41),
320Tuple.Create(1, 43),
321Tuple.Create(1, 49),
322Tuple.Create(1, 51),
323Tuple.Create(1, 54),
324Tuple.Create(1, 56),
325Tuple.Create(1, 60),
326Tuple.Create(1, 62),
327Tuple.Create(1, 65),
328Tuple.Create(1, 67),
329Tuple.Create(1, 72),
330Tuple.Create(1, 74),
331Tuple.Create(1, 77),
332Tuple.Create(1, 79),
333Tuple.Create(1, 83),
334Tuple.Create(1, 85),
335Tuple.Create(1, 88),
336Tuple.Create(1, 90),
337Tuple.Create(2, 3),
338Tuple.Create(2, 6),
339Tuple.Create(2, 8),
340Tuple.Create(2, 12),
341Tuple.Create(2, 14),
342Tuple.Create(2, 17),
343Tuple.Create(2, 19),
344Tuple.Create(2, 24),
345Tuple.Create(2, 26),
346Tuple.Create(2, 29),
347Tuple.Create(2, 31),
348Tuple.Create(2, 35),
349Tuple.Create(2, 37),
350Tuple.Create(2, 40),
351Tuple.Create(2, 42),
352Tuple.Create(2, 48),
353Tuple.Create(2, 50),
354Tuple.Create(2, 53),
355Tuple.Create(2, 55),
356Tuple.Create(2, 59),
357Tuple.Create(2, 61),
358Tuple.Create(2, 64),
359Tuple.Create(2, 66),
360Tuple.Create(2, 71),
361Tuple.Create(2, 73),
362Tuple.Create(2, 76),
363Tuple.Create(2, 78),
364Tuple.Create(2, 82),
365Tuple.Create(2, 84),
366Tuple.Create(2, 87),
367Tuple.Create(2, 89),
368Tuple.Create(3, 5),
369Tuple.Create(3, 7),
370Tuple.Create(3, 10),
371Tuple.Create(3, 13),
372Tuple.Create(3, 16),
373Tuple.Create(3, 18),
374Tuple.Create(3, 21),
375Tuple.Create(3, 25),
376Tuple.Create(3, 28),
377Tuple.Create(3, 30),
378Tuple.Create(3, 33),
379Tuple.Create(3, 36),
380Tuple.Create(3, 39),
381Tuple.Create(3, 41),
382Tuple.Create(3, 44),
383Tuple.Create(3, 49),
384Tuple.Create(3, 52),
385Tuple.Create(3, 54),
386Tuple.Create(3, 57),
387Tuple.Create(3, 60),
388Tuple.Create(3, 63),
389Tuple.Create(3, 65),
390Tuple.Create(3, 68),
391Tuple.Create(3, 72),
392Tuple.Create(3, 75),
393Tuple.Create(3, 77),
394Tuple.Create(3, 80),
395Tuple.Create(3, 83),
396Tuple.Create(3, 86),
397Tuple.Create(3, 88),
398Tuple.Create(3, 91),
399Tuple.Create(4, 5),
400Tuple.Create(4, 6),
401Tuple.Create(4, 10),
402Tuple.Create(4, 12),
403Tuple.Create(4, 16),
404Tuple.Create(4, 17),
405Tuple.Create(4, 21),
406Tuple.Create(4, 24),
407Tuple.Create(4, 28),
408Tuple.Create(4, 29),
409Tuple.Create(4, 33),
410Tuple.Create(4, 35),
411Tuple.Create(4, 39),
412Tuple.Create(4, 40),
413Tuple.Create(4, 44),
414Tuple.Create(4, 48),
415Tuple.Create(4, 52),
416Tuple.Create(4, 53),
417Tuple.Create(4, 57),
418Tuple.Create(4, 59),
419Tuple.Create(4, 63),
420Tuple.Create(4, 64),
421Tuple.Create(4, 68),
422Tuple.Create(4, 71),
423Tuple.Create(4, 75),
424Tuple.Create(4, 76),
425Tuple.Create(4, 80),
426Tuple.Create(4, 82),
427Tuple.Create(4, 86),
428Tuple.Create(4, 87),
429Tuple.Create(4, 91),
430Tuple.Create(5, 8),
431Tuple.Create(5, 9),
432Tuple.Create(5, 14),
433Tuple.Create(5, 15),
434Tuple.Create(5, 19),
435Tuple.Create(5, 20),
436Tuple.Create(5, 26),
437Tuple.Create(5, 27),
438Tuple.Create(5, 31),
439Tuple.Create(5, 32),
440Tuple.Create(5, 37),
441Tuple.Create(5, 38),
442Tuple.Create(5, 42),
443Tuple.Create(5, 43),
444Tuple.Create(5, 50),
445Tuple.Create(5, 51),
446Tuple.Create(5, 55),
447Tuple.Create(5, 56),
448Tuple.Create(5, 61),
449Tuple.Create(5, 62),
450Tuple.Create(5, 66),
451Tuple.Create(5, 67),
452Tuple.Create(5, 73),
453Tuple.Create(5, 74),
454Tuple.Create(5, 78),
455Tuple.Create(5, 79),
456Tuple.Create(5, 84),
457Tuple.Create(5, 85),
458Tuple.Create(5, 89),
459Tuple.Create(5, 90),
460Tuple.Create(6, 11),
461Tuple.Create(6, 13),
462Tuple.Create(6, 15),
463Tuple.Create(6, 22),
464Tuple.Create(6, 25),
465Tuple.Create(6, 27),
466Tuple.Create(6, 34),
467Tuple.Create(6, 36),
468Tuple.Create(6, 38),
469Tuple.Create(6, 45),
470Tuple.Create(6, 49),
471Tuple.Create(6, 51),
472Tuple.Create(6, 58),
473Tuple.Create(6, 60),
474Tuple.Create(6, 62),
475Tuple.Create(6, 69),
476Tuple.Create(6, 72),
477Tuple.Create(6, 74),
478Tuple.Create(6, 81),
479Tuple.Create(6, 83),
480Tuple.Create(6, 85),
481Tuple.Create(6, 92),
482Tuple.Create(7, 11),
483Tuple.Create(7, 12),
484Tuple.Create(7, 14),
485Tuple.Create(7, 22),
486Tuple.Create(7, 24),
487Tuple.Create(7, 26),
488Tuple.Create(7, 34),
489Tuple.Create(7, 35),
490Tuple.Create(7, 37),
491Tuple.Create(7, 45),
492Tuple.Create(7, 48),
493Tuple.Create(7, 50),
494Tuple.Create(7, 58),
495Tuple.Create(7, 59),
496Tuple.Create(7, 61),
497Tuple.Create(7, 69),
498Tuple.Create(7, 71),
499Tuple.Create(7, 73),
500Tuple.Create(7, 81),
501Tuple.Create(7, 82),
502Tuple.Create(7, 84),
503Tuple.Create(7, 92),
504Tuple.Create(8, 11),
505Tuple.Create(8, 13),
506Tuple.Create(8, 16),
507Tuple.Create(8, 22),
508Tuple.Create(8, 25),
509Tuple.Create(8, 28),
510Tuple.Create(8, 34),
511Tuple.Create(8, 36),
512Tuple.Create(8, 39),
513Tuple.Create(8, 45),
514Tuple.Create(8, 49),
515Tuple.Create(8, 52),
516Tuple.Create(8, 58),
517Tuple.Create(8, 60),
518Tuple.Create(8, 63),
519Tuple.Create(8, 69),
520Tuple.Create(8, 72),
521Tuple.Create(8, 75),
522Tuple.Create(8, 81),
523Tuple.Create(8, 83),
524Tuple.Create(8, 86),
525Tuple.Create(8, 92),
526Tuple.Create(9, 11),
527Tuple.Create(9, 12),
528Tuple.Create(9, 16),
529Tuple.Create(9, 22),
530Tuple.Create(9, 24),
531Tuple.Create(9, 28),
532Tuple.Create(9, 34),
533Tuple.Create(9, 35),
534Tuple.Create(9, 39),
535Tuple.Create(9, 45),
536Tuple.Create(9, 48),
537Tuple.Create(9, 52),
538Tuple.Create(9, 58),
539Tuple.Create(9, 59),
540Tuple.Create(9, 63),
541Tuple.Create(9, 69),
542Tuple.Create(9, 71),
543Tuple.Create(9, 75),
544Tuple.Create(9, 81),
545Tuple.Create(9, 82),
546Tuple.Create(9, 86),
547Tuple.Create(9, 92),
548Tuple.Create(10, 11),
549Tuple.Create(10, 14),
550Tuple.Create(10, 15),
551Tuple.Create(10, 22),
552Tuple.Create(10, 26),
553Tuple.Create(10, 27),
554Tuple.Create(10, 34),
555Tuple.Create(10, 37),
556Tuple.Create(10, 38),
557Tuple.Create(10, 45),
558Tuple.Create(10, 50),
559Tuple.Create(10, 51),
560Tuple.Create(10, 58),
561Tuple.Create(10, 61),
562Tuple.Create(10, 62),
563Tuple.Create(10, 69),
564Tuple.Create(10, 73),
565Tuple.Create(10, 74),
566Tuple.Create(10, 81),
567Tuple.Create(10, 84),
568Tuple.Create(10, 85),
569Tuple.Create(10, 92),
570Tuple.Create(11, 17),
571Tuple.Create(11, 18),
572Tuple.Create(11, 19),
573Tuple.Create(11, 20),
574Tuple.Create(11, 21),
575Tuple.Create(11, 29),
576Tuple.Create(11, 30),
577Tuple.Create(11, 31),
578Tuple.Create(11, 32),
579Tuple.Create(11, 33),
580Tuple.Create(11, 40),
581Tuple.Create(11, 41),
582Tuple.Create(11, 42),
583Tuple.Create(11, 43),
584Tuple.Create(11, 44),
585Tuple.Create(11, 53),
586Tuple.Create(11, 54),
587Tuple.Create(11, 55),
588Tuple.Create(11, 56),
589Tuple.Create(11, 57),
590Tuple.Create(11, 64),
591Tuple.Create(11, 65),
592Tuple.Create(11, 66),
593Tuple.Create(11, 67),
594Tuple.Create(11, 68),
595Tuple.Create(11, 76),
596Tuple.Create(11, 77),
597Tuple.Create(11, 78),
598Tuple.Create(11, 79),
599Tuple.Create(11, 80),
600Tuple.Create(11, 87),
601Tuple.Create(11, 88),
602Tuple.Create(11, 89),
603Tuple.Create(11, 90),
604Tuple.Create(11, 91),
605Tuple.Create(12, 23),
606Tuple.Create(12, 25),
607Tuple.Create(12, 27),
608Tuple.Create(12, 30),
609Tuple.Create(12, 32),
610Tuple.Create(12, 46),
611Tuple.Create(12, 49),
612Tuple.Create(12, 51),
613Tuple.Create(12, 54),
614Tuple.Create(12, 56),
615Tuple.Create(12, 70),
616Tuple.Create(12, 72),
617Tuple.Create(12, 74),
618Tuple.Create(12, 77),
619Tuple.Create(12, 79),
620Tuple.Create(12, 93),
621Tuple.Create(13, 23),
622Tuple.Create(13, 24),
623Tuple.Create(13, 26),
624Tuple.Create(13, 29),
625Tuple.Create(13, 31),
626Tuple.Create(13, 46),
627Tuple.Create(13, 48),
628Tuple.Create(13, 50),
629Tuple.Create(13, 53),
630Tuple.Create(13, 55),
631Tuple.Create(13, 70),
632Tuple.Create(13, 71),
633Tuple.Create(13, 73),
634Tuple.Create(13, 76),
635Tuple.Create(13, 78),
636Tuple.Create(13, 93),
637Tuple.Create(14, 23),
638Tuple.Create(14, 25),
639Tuple.Create(14, 28),
640Tuple.Create(14, 30),
641Tuple.Create(14, 33),
642Tuple.Create(14, 46),
643Tuple.Create(14, 49),
644Tuple.Create(14, 52),
645Tuple.Create(14, 54),
646Tuple.Create(14, 57),
647Tuple.Create(14, 70),
648Tuple.Create(14, 72),
649Tuple.Create(14, 75),
650Tuple.Create(14, 77),
651Tuple.Create(14, 80),
652Tuple.Create(14, 93),
653Tuple.Create(15, 23),
654Tuple.Create(15, 24),
655Tuple.Create(15, 28),
656Tuple.Create(15, 29),
657Tuple.Create(15, 33),
658Tuple.Create(15, 46),
659Tuple.Create(15, 48),
660Tuple.Create(15, 52),
661Tuple.Create(15, 53),
662Tuple.Create(15, 57),
663Tuple.Create(15, 70),
664Tuple.Create(15, 71),
665Tuple.Create(15, 75),
666Tuple.Create(15, 76),
667Tuple.Create(15, 80),
668Tuple.Create(15, 93),
669Tuple.Create(16, 23),
670Tuple.Create(16, 26),
671Tuple.Create(16, 27),
672Tuple.Create(16, 31),
673Tuple.Create(16, 32),
674Tuple.Create(16, 46),
675Tuple.Create(16, 50),
676Tuple.Create(16, 51),
677Tuple.Create(16, 55),
678Tuple.Create(16, 56),
679Tuple.Create(16, 70),
680Tuple.Create(16, 73),
681Tuple.Create(16, 74),
682Tuple.Create(16, 78),
683Tuple.Create(16, 79),
684Tuple.Create(16, 93),
685Tuple.Create(17, 23),
686Tuple.Create(17, 25),
687Tuple.Create(17, 27),
688Tuple.Create(17, 34),
689Tuple.Create(17, 46),
690Tuple.Create(17, 49),
691Tuple.Create(17, 51),
692Tuple.Create(17, 58),
693Tuple.Create(17, 70),
694Tuple.Create(17, 72),
695Tuple.Create(17, 74),
696Tuple.Create(17, 81),
697Tuple.Create(17, 93),
698Tuple.Create(18, 23),
699Tuple.Create(18, 24),
700Tuple.Create(18, 26),
701Tuple.Create(18, 34),
702Tuple.Create(18, 46),
703Tuple.Create(18, 48),
704Tuple.Create(18, 50),
705Tuple.Create(18, 58),
706Tuple.Create(18, 70),
707Tuple.Create(18, 71),
708Tuple.Create(18, 73),
709Tuple.Create(18, 81),
710Tuple.Create(18, 93),
711Tuple.Create(19, 23),
712Tuple.Create(19, 25),
713Tuple.Create(19, 28),
714Tuple.Create(19, 34),
715Tuple.Create(19, 46),
716Tuple.Create(19, 49),
717Tuple.Create(19, 52),
718Tuple.Create(19, 58),
719Tuple.Create(19, 70),
720Tuple.Create(19, 72),
721Tuple.Create(19, 75),
722Tuple.Create(19, 81),
723Tuple.Create(19, 93),
724Tuple.Create(20, 23),
725Tuple.Create(20, 24),
726Tuple.Create(20, 28),
727Tuple.Create(20, 34),
728Tuple.Create(20, 46),
729Tuple.Create(20, 48),
730Tuple.Create(20, 52),
731Tuple.Create(20, 58),
732Tuple.Create(20, 70),
733Tuple.Create(20, 71),
734Tuple.Create(20, 75),
735Tuple.Create(20, 81),
736Tuple.Create(20, 93),
737Tuple.Create(21, 23),
738Tuple.Create(21, 26),
739Tuple.Create(21, 27),
740Tuple.Create(21, 34),
741Tuple.Create(21, 46),
742Tuple.Create(21, 50),
743Tuple.Create(21, 51),
744Tuple.Create(21, 58),
745Tuple.Create(21, 70),
746Tuple.Create(21, 73),
747Tuple.Create(21, 74),
748Tuple.Create(21, 81),
749Tuple.Create(21, 93),
750Tuple.Create(22, 23),
751Tuple.Create(22, 29),
752Tuple.Create(22, 30),
753Tuple.Create(22, 31),
754Tuple.Create(22, 32),
755Tuple.Create(22, 33),
756Tuple.Create(22, 46),
757Tuple.Create(22, 53),
758Tuple.Create(22, 54),
759Tuple.Create(22, 55),
760Tuple.Create(22, 56),
761Tuple.Create(22, 57),
762Tuple.Create(22, 70),
763Tuple.Create(22, 76),
764Tuple.Create(22, 77),
765Tuple.Create(22, 78),
766Tuple.Create(22, 79),
767Tuple.Create(22, 80),
768Tuple.Create(22, 93),
769Tuple.Create(23, 35),
770Tuple.Create(23, 36),
771Tuple.Create(23, 37),
772Tuple.Create(23, 38),
773Tuple.Create(23, 39),
774Tuple.Create(23, 40),
775Tuple.Create(23, 41),
776Tuple.Create(23, 42),
777Tuple.Create(23, 43),
778Tuple.Create(23, 44),
779Tuple.Create(23, 45),
780Tuple.Create(23, 59),
781Tuple.Create(23, 60),
782Tuple.Create(23, 61),
783Tuple.Create(23, 62),
784Tuple.Create(23, 63),
785Tuple.Create(23, 64),
786Tuple.Create(23, 65),
787Tuple.Create(23, 66),
788Tuple.Create(23, 67),
789Tuple.Create(23, 68),
790Tuple.Create(23, 69),
791Tuple.Create(23, 82),
792Tuple.Create(23, 83),
793Tuple.Create(23, 84),
794Tuple.Create(23, 85),
795Tuple.Create(23, 86),
796Tuple.Create(23, 87),
797Tuple.Create(23, 88),
798Tuple.Create(23, 89),
799Tuple.Create(23, 90),
800Tuple.Create(23, 91),
801Tuple.Create(23, 92),
802Tuple.Create(24, 47),
803Tuple.Create(24, 49),
804Tuple.Create(24, 51),
805Tuple.Create(24, 54),
806Tuple.Create(24, 56),
807Tuple.Create(24, 60),
808Tuple.Create(24, 62),
809Tuple.Create(24, 65),
810Tuple.Create(24, 67),
811Tuple.Create(24, 94),
812Tuple.Create(25, 47),
813Tuple.Create(25, 48),
814Tuple.Create(25, 50),
815Tuple.Create(25, 53),
816Tuple.Create(25, 55),
817Tuple.Create(25, 59),
818Tuple.Create(25, 61),
819Tuple.Create(25, 64),
820Tuple.Create(25, 66),
821Tuple.Create(25, 94),
822Tuple.Create(26, 47),
823Tuple.Create(26, 49),
824Tuple.Create(26, 52),
825Tuple.Create(26, 54),
826Tuple.Create(26, 57),
827Tuple.Create(26, 60),
828Tuple.Create(26, 63),
829Tuple.Create(26, 65),
830Tuple.Create(26, 68),
831Tuple.Create(26, 94),
832Tuple.Create(27, 47),
833Tuple.Create(27, 48),
834Tuple.Create(27, 52),
835Tuple.Create(27, 53),
836Tuple.Create(27, 57),
837Tuple.Create(27, 59),
838Tuple.Create(27, 63),
839Tuple.Create(27, 64),
840Tuple.Create(27, 68),
841Tuple.Create(27, 94),
842Tuple.Create(28, 47),
843Tuple.Create(28, 50),
844Tuple.Create(28, 51),
845Tuple.Create(28, 55),
846Tuple.Create(28, 56),
847Tuple.Create(28, 61),
848Tuple.Create(28, 62),
849Tuple.Create(28, 66),
850Tuple.Create(28, 67),
851Tuple.Create(28, 94),
852Tuple.Create(29, 47),
853Tuple.Create(29, 49),
854Tuple.Create(29, 51),
855Tuple.Create(29, 58),
856Tuple.Create(29, 60),
857Tuple.Create(29, 62),
858Tuple.Create(29, 69),
859Tuple.Create(29, 94),
860Tuple.Create(30, 47),
861Tuple.Create(30, 48),
862Tuple.Create(30, 50),
863Tuple.Create(30, 58),
864Tuple.Create(30, 59),
865Tuple.Create(30, 61),
866Tuple.Create(30, 69),
867Tuple.Create(30, 94),
868Tuple.Create(31, 47),
869Tuple.Create(31, 49),
870Tuple.Create(31, 52),
871Tuple.Create(31, 58),
872Tuple.Create(31, 60),
873Tuple.Create(31, 63),
874Tuple.Create(31, 69),
875Tuple.Create(31, 94),
876Tuple.Create(32, 47),
877Tuple.Create(32, 48),
878Tuple.Create(32, 52),
879Tuple.Create(32, 58),
880Tuple.Create(32, 59),
881Tuple.Create(32, 63),
882Tuple.Create(32, 69),
883Tuple.Create(32, 94),
884Tuple.Create(33, 47),
885Tuple.Create(33, 50),
886Tuple.Create(33, 51),
887Tuple.Create(33, 58),
888Tuple.Create(33, 61),
889Tuple.Create(33, 62),
890Tuple.Create(33, 69),
891Tuple.Create(33, 94),
892Tuple.Create(34, 47),
893Tuple.Create(34, 53),
894Tuple.Create(34, 54),
895Tuple.Create(34, 55),
896Tuple.Create(34, 56),
897Tuple.Create(34, 57),
898Tuple.Create(34, 64),
899Tuple.Create(34, 65),
900Tuple.Create(34, 66),
901Tuple.Create(34, 67),
902Tuple.Create(34, 68),
903Tuple.Create(34, 94),
904Tuple.Create(35, 47),
905Tuple.Create(35, 49),
906Tuple.Create(35, 51),
907Tuple.Create(35, 54),
908Tuple.Create(35, 56),
909Tuple.Create(35, 70),
910Tuple.Create(35, 94),
911Tuple.Create(36, 47),
912Tuple.Create(36, 48),
913Tuple.Create(36, 50),
914Tuple.Create(36, 53),
915Tuple.Create(36, 55),
916Tuple.Create(36, 70),
917Tuple.Create(36, 94),
918Tuple.Create(37, 47),
919Tuple.Create(37, 49),
920Tuple.Create(37, 52),
921Tuple.Create(37, 54),
922Tuple.Create(37, 57),
923Tuple.Create(37, 70),
924Tuple.Create(37, 94),
925Tuple.Create(38, 47),
926Tuple.Create(38, 48),
927Tuple.Create(38, 52),
928Tuple.Create(38, 53),
929Tuple.Create(38, 57),
930Tuple.Create(38, 70),
931Tuple.Create(38, 94),
932Tuple.Create(39, 47),
933Tuple.Create(39, 50),
934Tuple.Create(39, 51),
935Tuple.Create(39, 55),
936Tuple.Create(39, 56),
937Tuple.Create(39, 70),
938Tuple.Create(39, 94),
939Tuple.Create(40, 47),
940Tuple.Create(40, 49),
941Tuple.Create(40, 51),
942Tuple.Create(40, 58),
943Tuple.Create(40, 70),
944Tuple.Create(40, 94),
945Tuple.Create(41, 47),
946Tuple.Create(41, 48),
947Tuple.Create(41, 50),
948Tuple.Create(41, 58),
949Tuple.Create(41, 70),
950Tuple.Create(41, 94),
951Tuple.Create(42, 47),
952Tuple.Create(42, 49),
953Tuple.Create(42, 52),
954Tuple.Create(42, 58),
955Tuple.Create(42, 70),
956Tuple.Create(42, 94),
957Tuple.Create(43, 47),
958Tuple.Create(43, 48),
959Tuple.Create(43, 52),
960Tuple.Create(43, 58),
961Tuple.Create(43, 70),
962Tuple.Create(43, 94),
963Tuple.Create(44, 47),
964Tuple.Create(44, 50),
965Tuple.Create(44, 51),
966Tuple.Create(44, 58),
967Tuple.Create(44, 70),
968Tuple.Create(44, 94),
969Tuple.Create(45, 47),
970Tuple.Create(45, 53),
971Tuple.Create(45, 54),
972Tuple.Create(45, 55),
973Tuple.Create(45, 56),
974Tuple.Create(45, 57),
975Tuple.Create(45, 70),
976Tuple.Create(45, 94),
977Tuple.Create(46, 47),
978Tuple.Create(46, 59),
979Tuple.Create(46, 60),
980Tuple.Create(46, 61),
981Tuple.Create(46, 62),
982Tuple.Create(46, 63),
983Tuple.Create(46, 64),
984Tuple.Create(46, 65),
985Tuple.Create(46, 66),
986Tuple.Create(46, 67),
987Tuple.Create(46, 68),
988Tuple.Create(46, 69),
989Tuple.Create(46, 94),
990Tuple.Create(47, 71),
991Tuple.Create(47, 72),
992Tuple.Create(47, 73),
993Tuple.Create(47, 74),
994Tuple.Create(47, 75),
995Tuple.Create(47, 76),
996Tuple.Create(47, 77),
997Tuple.Create(47, 78),
998Tuple.Create(47, 79),
999Tuple.Create(47, 80),
1000Tuple.Create(47, 81),
1001Tuple.Create(47, 82),
1002Tuple.Create(47, 83),
1003Tuple.Create(47, 84),
1004Tuple.Create(47, 85),
1005Tuple.Create(47, 86),
1006Tuple.Create(47, 87),
1007Tuple.Create(47, 88),
1008Tuple.Create(47, 89),
1009Tuple.Create(47, 90),
1010Tuple.Create(47, 91),
1011Tuple.Create(47, 92),
1012Tuple.Create(47, 93),
1013Tuple.Create(48, 95),
1014Tuple.Create(49, 95),
1015Tuple.Create(50, 95),
1016Tuple.Create(51, 95),
1017Tuple.Create(52, 95),
1018Tuple.Create(53, 95),
1019Tuple.Create(54, 95),
1020Tuple.Create(55, 95),
1021Tuple.Create(56, 95),
1022Tuple.Create(57, 95),
1023Tuple.Create(58, 95),
1024Tuple.Create(59, 95),
1025Tuple.Create(60, 95),
1026Tuple.Create(61, 95),
1027Tuple.Create(62, 95),
1028Tuple.Create(63, 95),
1029Tuple.Create(64, 95),
1030Tuple.Create(65, 95),
1031Tuple.Create(66, 95),
1032Tuple.Create(67, 95),
1033Tuple.Create(68, 95),
1034Tuple.Create(69, 95),
1035Tuple.Create(70, 95),
1036Tuple.Create(71, 95),
1037Tuple.Create(72, 95),
1038Tuple.Create(73, 95),
1039Tuple.Create(74, 95),
1040Tuple.Create(75, 95),
1041Tuple.Create(76, 95),
1042Tuple.Create(77, 95),
1043Tuple.Create(78, 95),
1044Tuple.Create(79, 95),
1045Tuple.Create(80, 95),
1046Tuple.Create(81, 95),
1047Tuple.Create(82, 95),
1048Tuple.Create(83, 95),
1049Tuple.Create(84, 95),
1050Tuple.Create(85, 95),
1051Tuple.Create(86, 95),
1052Tuple.Create(87, 95),
1053Tuple.Create(88, 95),
1054Tuple.Create(89, 95),
1055Tuple.Create(90, 95),
1056Tuple.Create(91, 95),
1057Tuple.Create(92, 95),
1058Tuple.Create(93, 95),
1059Tuple.Create(94, 95)
1060    };
1061    #endregion
1062  }
1063}
Note: See TracBrowser for help on using the repository browser.