Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.MonteCarloTreeSearch/Base/TreeNode.cs @ 12050

Last change on this file since 12050 was 12050, checked in by aballeit, 9 years ago

#2283: first MCTS algorithmus concept

File size: 836 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HeuristicLab.Algorithms.Bandits;
7using HeuristicLab.Problems.GrammaticalOptimization;
8
9namespace HeuristicLab.Algorithms.MonteCarloTreeSearch
10{
11    public class TreeNode
12    {
13        public string phrase;
14        public TreeNode parent;
15        public List<TreeNode> children;
16        public IBanditPolicyActionInfo actionInfo;
17        public bool expandable;
18        public List<int> unvisitedNonTerminals;
19
20        public TreeNode(TreeNode parent, string phrase, bool expandable, List<int> unvisitedNonTerminals)
21        {
22            this.phrase = phrase;
23            this.expandable = expandable;
24            this.unvisitedNonTerminals = unvisitedNonTerminals;
25        }
26    }
27}
Note: See TracBrowser for help on using the repository browser.