Example #1
0
 public MinMaxAlphaBeta(int max, IHeuristicFunction heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
     if (max == 0)
         _max = 1;
     _max = (max * 2) - 1;
 }
Example #2
0
 public SearchProblem(IGoalTest <S> goalTest, IStepCostFunction <A, S, C> stepCost, ISuccessorFunction <A, S> successor, IHeuristicFunction <S, C> heuristicFn)
 {
     this.goalTest    = goalTest;
     this.stepCost    = stepCost;
     this.successorFn = successor;
     this.heuristicFn = heuristicFn;
 }
Example #3
0
File: MinMax.cs Project: nickxbs/IA
 public MinMax(int max)
 {
     _heuristicFunction = new HeuristicFunctionDescnedent();
     if (max == 0)
         _max = 1;
     _max = (max * 2) - 1;
 }
Example #4
0
 public MinMax(int max)
 {
     _heuristicFunction = new HeuristicFunctionDescnedent();
     if (max == 0)
     {
         _max = 1;
     }
     _max = (max * 2) - 1;
 }
Example #5
0
 public MinMaxAlphaBeta(int max, IHeuristicFunction heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
     if (max == 0)
     {
         _max = 1;
     }
     _max = (max * 2) - 1;
 }
Example #6
0
 public MinMaxAlphaBetaWithOpen(int max, IHeuristicFunction heuristicFunction)
     : base(max, heuristicFunction)
 {
 }
Example #7
0
 public HillClimbingSearch(IHeuristicFunction hf)
 {
     this.hf = hf;
 }
 public GreedyBestFirstEvaluationFunction(IHeuristicFunction hf)
 {
     this.hf = hf;
 }
Example #9
0
 public LRTAStarAgent(OnlineSearchProblem problem, IPerceptToStateFunction ptsFunction, IHeuristicFunction hf)
 {
     this.Problem = problem;
     this.PerceptToStateFunction = ptsFunction;
     this.HeuristicFunction      = hf;
 }
Example #10
0
 public SimulatedAnnealingSearch(IHeuristicFunction hf)
 {
     this.hf        = hf;
     this.scheduler = new Scheduler();
 }
Example #11
0
 public SimulatedAnnealingSearch(IHeuristicFunction hf, Scheduler scheduler)
 {
     this.hf        = hf;
     this.scheduler = scheduler;
 }
Example #12
0
 public AStarSearch(IHeuristicFunction <TProblemState> heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
 }
 public AStarSearch( Problem problem, IHeuristicFunction heuristic )
 {
     this.m_problem = problem;
     this.m_heuristic = heuristic;
 }
Example #14
0
 public RecursiveBestFirstSearch(IHeuristicFunction heuristicFn)
 {
     _heuristicFn = heuristicFn ?? throw new ArgumentNullException(nameof(heuristicFn));
 }
Example #15
0
 public AStarSearch(QueueSearch search, IHeuristicFunction hf) : base(search, new AStarEvaluationFunction(hf))
 {
 }
Example #16
0
 public MinMaxAlphaBetaWithOpen(int max, IHeuristicFunction heuristicFunction)
     : base(max, heuristicFunction)
 {
 }
 public RecursiveBestFirstSearch(IHeuristicFunction <TProblemState> heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
 }
Example #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeuristicSearch"/> class.
 /// </summary>
 public HeuristicSearch()
 {
     _queue         = new PriorityQueue <double, Node>();
     this.Heuristic = new Heuristic();
 }
 public GreedyBestFirstSearch(QueueSearch search, IHeuristicFunction hf) : base(search, new GreedyBestFirstEvaluationFunction(hf))
 {
 }
Example #20
0
 public AStarEvaluationFunction(IHeuristicFunction hf)
 {
     this.hf = hf;
 }