Ejemplo n.º 1
0
 public MinMaxAlphaBeta(int max, IHeuristicFunction heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
     if (max == 0)
         _max = 1;
     _max = (max * 2) - 1;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
Archivo: MinMax.cs Proyecto: nickxbs/IA
 public MinMax(int max)
 {
     _heuristicFunction = new HeuristicFunctionDescnedent();
     if (max == 0)
         _max = 1;
     _max = (max * 2) - 1;
 }
Ejemplo n.º 4
0
 public MinMax(int max)
 {
     _heuristicFunction = new HeuristicFunctionDescnedent();
     if (max == 0)
     {
         _max = 1;
     }
     _max = (max * 2) - 1;
 }
Ejemplo n.º 5
0
 public MinMaxAlphaBeta(int max, IHeuristicFunction heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
     if (max == 0)
     {
         _max = 1;
     }
     _max = (max * 2) - 1;
 }
Ejemplo n.º 6
0
 public MinMaxAlphaBetaWithOpen(int max, IHeuristicFunction heuristicFunction)
     : base(max, heuristicFunction)
 {
 }
Ejemplo n.º 7
0
 public HillClimbingSearch(IHeuristicFunction hf)
 {
     this.hf = hf;
 }
 public GreedyBestFirstEvaluationFunction(IHeuristicFunction hf)
 {
     this.hf = hf;
 }
Ejemplo n.º 9
0
 public LRTAStarAgent(OnlineSearchProblem problem, IPerceptToStateFunction ptsFunction, IHeuristicFunction hf)
 {
     this.Problem = problem;
     this.PerceptToStateFunction = ptsFunction;
     this.HeuristicFunction      = hf;
 }
Ejemplo n.º 10
0
 public SimulatedAnnealingSearch(IHeuristicFunction hf)
 {
     this.hf        = hf;
     this.scheduler = new Scheduler();
 }
Ejemplo n.º 11
0
 public SimulatedAnnealingSearch(IHeuristicFunction hf, Scheduler scheduler)
 {
     this.hf        = hf;
     this.scheduler = scheduler;
 }
Ejemplo n.º 12
0
 public AStarSearch(IHeuristicFunction <TProblemState> heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
 }
Ejemplo n.º 13
0
 public AStarSearch( Problem problem, IHeuristicFunction heuristic )
 {
     this.m_problem = problem;
     this.m_heuristic = heuristic;
 }
Ejemplo n.º 14
0
 public RecursiveBestFirstSearch(IHeuristicFunction heuristicFn)
 {
     _heuristicFn = heuristicFn ?? throw new ArgumentNullException(nameof(heuristicFn));
 }
Ejemplo n.º 15
0
 public AStarSearch(QueueSearch search, IHeuristicFunction hf) : base(search, new AStarEvaluationFunction(hf))
 {
 }
Ejemplo n.º 16
0
 public MinMaxAlphaBetaWithOpen(int max, IHeuristicFunction heuristicFunction)
     : base(max, heuristicFunction)
 {
 }
 public RecursiveBestFirstSearch(IHeuristicFunction <TProblemState> heuristicFunction)
 {
     _heuristicFunction = heuristicFunction;
 }
Ejemplo n.º 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))
 {
 }
Ejemplo n.º 20
0
 public AStarEvaluationFunction(IHeuristicFunction hf)
 {
     this.hf = hf;
 }