Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 12:55:58 (7 years ago)
Author:
pkimmesw
Message:

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PushInterpreterPool.cs

    r15189 r15273  
    55  using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;
    66  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    7   using HeuristicLab.Random;
    87
    98  public class PushInterpreterPool {
     
    3332    public PooledPushInterpreter Create(IRandom random = null) {
    3433      var interpreter = pool.Allocate();
    35       interpreter.Random = random ?? new MersenneTwister();
    36       interpreter.Reset();
     34      interpreter.Reset(random);
    3735
    3836      return interpreter;
     
    4038
    4139    public void Free(PooledPushInterpreter interpreter) {
    42       interpreter.Random = null;
     40      interpreter.ClearStacks();
    4341      pool.Free(interpreter);
    4442    }
Note: See TracChangeset for help on using the changeset viewer.