- Timestamp:
- 04/18/17 01:15:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/FeatureTests/Program.cs
r14834 r14875 8 8 using System.Threading; 9 9 using DirtyList; 10 11 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 10 12 using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration; 11 13 using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool; 12 using HeuristicLab.Problems.ProgramSynthesis.Push.Erc;13 14 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 14 15 using HeuristicLab.Problems.ProgramSynthesis.Push.Generators.CodeGenerator; … … 32 33 //Test3(); 33 34 34 TestCollectionPooling();35 //TestCollectionPooling(); 35 36 36 37 //DirtyListTest(); … … 45 46 //PerformanceParallelTestInterpreter(); 46 47 //PerformanceTestLinearCodeGenerator(); 47 //TestRobustness();48 TestRobustness(); 48 49 //TestPool(); 49 50 //TestPoolPerformance(); … … 380 381 ErcOptions = { 381 382 ErcProbability = 0.2, 382 FloatErcOptions = new FloatErcOptions(-100.5, 100.5, 1000.5, 2000.5),383 IntegerErcOptions = new IntegerErcOptions(-10, 10, 100, 200),383 FloatErcOptions = new FloatErcOptions(-100.5, 100.5, new [] { 1000.5, 2000.5 }), 384 IntegerErcOptions = new IntegerErcOptions(-10, 10, new [] { 100, 200 }), 384 385 StringErcOptions = 385 new StringErcOptions { AllowSpace = true, SpaceProbability = 0.2 }, 386 BooleanErcOptions = new BooleanErcOptions(), 387 CharErcOptions = new CharErcOptions(Convert.ToInt32('a'), Convert.ToInt32('Z')) 386 new StringErcOptions 387 { 388 IsEnabled = true, 389 AllowSpace = true, 390 SpaceProbability = 0.2 391 }, 392 BooleanErcOptions = new BooleanErcOptions(true, true), 393 CharErcOptions = new CharErcOptions('a', 'Z') 388 394 } 389 395 }; … … 401 407 var maxProgramSizeLimit = 1024; 402 408 var partitionSize = 100000; 403 var execCounters = new int[parallelism];409 var execCounters = new long[parallelism]; 404 410 405 411 var config = new PushConfiguration { … … 408 414 }; 409 415 416 config.DisableStack(StackTypes.Exec, true); 417 config.DisableStack(StackTypes.Code, true); 418 config.DisableStack(StackTypes.Float, true); 419 410 420 config.DisableExpression<ExecYExpression>(); 411 421 … … 422 432 423 433 execCounters[i] += interpreter.ExecCounter; 424 interpreter. Clear();434 interpreter.Reset(); 425 435 } 426 436 }
Note: See TracChangeset
for help on using the changeset viewer.