示例#1
0
文件: UCT.cs 项目: Akneman93/Solvers
 public UCT(ISuccGenerator <UCTNode> succGen, double cp, int maxDepth)
 {
     SuccGen       = succGen;
     Cp            = cp;
     this.maxDepth = maxDepth;
     Env           = succGen.getEnvironment();
 }
示例#2
0
 public Astar(ISuccGenerator <ANode> successorNodesGenerator,
              IHCalculator <ANode> hValueCalculator)
 {
     comparer      = new FComparer(this);
     succGen       = successorNodesGenerator;
     hCalc         = hValueCalculator;
     Name          = "A*";
     timeAvaliable = 5000;
     openList      = new NodeTable <ANode>(Comparer);
     closedList    = new NodeTable <ANode>(Comparer);
 }
示例#3
0
 public AWA(ISuccGenerator <ANode> successorNodesGenerator,
            IHCalculator <ANode> hValueCalculator,
            int W)
 {
     succGen       = successorNodesGenerator;
     hCalc         = hValueCalculator;
     w             = W;
     Name          = "AWA*";
     timeAvaliable = 5000;
     comparer      = new FComparer(this);
     openList      = new NodeTable <ANode>(Comparer);
     closedList    = new NodeTable <ANode>(Comparer);
 }
示例#4
0
 public AWinA(ISuccGenerator <ANode> successorNodesGenerator,
              IHCalculator <ANode> hValueCalculator)
 {
     comparer      = new FComparer(this);
     suspendList   = new NodeTable <ANode>(comparer);
     succGen       = successorNodesGenerator;
     hCalc         = hValueCalculator;
     currentLvl    = -1;
     winSize       = 0;
     Name          = "AWinA*";
     timeAvaliable = 5000;
     openList      = new NodeTable <ANode>(Comparer);
     closedList    = new NodeTable <ANode>(Comparer);
 }