Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/17 13:16:56 (7 years ago)
Author:
pkimmesw
Message:

#2665 fixed enable/disable issue for single instruction in selection view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PushProblem.cs

    r14746 r14747  
    88  using Core;
    99  using Encodings.IntegerVectorEncoding;
    10   using Expressions;
    1110
    1211  using HeuristicLab.BenchmarkSuite;
    1312  using HeuristicLab.Data;
    14   using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;
    1513
    1614  using Instances;
     
    2826    private readonly PushConfiguration config;
    2927    private PushInterpreterPool pool;
    30     private ManagedPoolProvider<PushProgram> pushProgramPoolProvider;
    3128
    3229    public PushProblem() {
    3330      config = new PushConfiguration();
    34       pool = new PushInterpreterPool(config);
    35 
    36       pushProgramPoolProvider = new ManagedPoolProvider<PushProgram>(1024);
    37       pushProgramPoolProvider.InitDummyPartition(() => new PushProgram());
     31      pool = new PushInterpreterPool(10000, 1024, 65536, config);
    3832
    3933      InitEvents();
     
    5044      : base(original, cloner) {
    5145      config = cloner.Clone(original.config);
    52       pool = new PushInterpreterPool(config);
     46      pool = new PushInterpreterPool(65536, 1024, 65536, config);
    5347
    5448      Instructions = config;
     
    6256      pool = new PushInterpreterPool(config);
    6357      Instructions = config;
    64 
    65       pushProgramPoolProvider = new ManagedPoolProvider<PushProgram>(1024);
    66       pushProgramPoolProvider.InitDummyPartition(() => new PushProgram());
    6758
    6859      InitEvents();
     
    426417          interpreter.FloatStack.Push(example.InputFloat);
    427418
    428           using (interpreter.PushProgramPool = pushProgramPoolProvider.CreatePool()) {
    429             interpreter.Run(program);
    430           }
     419          interpreter.Run(program);
    431420
    432421          result += GetDiff(example.OutputInt, interpreter.IntegerStack, DataDescriptor.WorstResult, LongDiffer)
Note: See TracChangeset for help on using the changeset viewer.