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

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

#2521: Adapted graph coloring problem

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