Changeset 13408 for branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/LocalSearchKnapsackSampleTest.cs
- Timestamp:
- 11/26/15 17:36:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/LocalSearchKnapsackSampleTest.cs
r12012 r13408 59 59 #region Problem Configuration 60 60 KnapsackProblem problem = new KnapsackProblem(); 61 problem.BestKnownQuality = new DoubleValue(362);61 problem.BestKnownQuality = 362; 62 62 problem.BestKnownSolution = new HeuristicLab.Encodings.BinaryVectorEncoding.BinaryVector(new bool[] { 63 63 true , false, false, true , true , true , true , true , false, true , true , true , true , true , true , false, true , false, true , true , false, true , true , false, true , false, true , true , true , false, true , true , false, true , true , false, true , false, true , true , true , true , true , true , true , true , true , true , true , true , true , false, true , false, false, true , true , false, true , true , true , true , true , true , true , true , false, true , false, true , true , true , true , false, true , true , true , true , true , true , true , true}); 64 problem.EvaluatorParameter.Value = new KnapsackEvaluator();65 64 problem.SolutionCreatorParameter.Value = new RandomBinaryVectorCreator(); 66 problem.KnapsackCapacity.Value = 297; 67 problem.Maximization.Value = true; 68 problem.Penalty.Value = 1; 65 problem.KnapsackCapacity = 297; 69 66 problem.Values = new IntArray(new int[] { 70 67 6, 1, 1, 6, 7, 8, 7, 4, 2, 5, 2, 6, 7, 8, 7, 1, 7, 1, 9, 4, 2, 6, 5, 3, 5, 3, 3, 6, 5, 2, 4, 9, 4, 5, 7, 1, 4, 3, 5, 5, 8, 3, 6, 7, 3, 9, 7, 7, 5, 5, 7, 1, 4, 4, 3, 9, 5, 1, 6, 2, 2, 6, 1, 6, 5, 4, 4, 7, 1, 8, 9, 9, 7, 4, 3, 8, 7, 5, 7, 4, 4, 5});
Note: See TracChangeset
for help on using the changeset viewer.