def __init__(self, bidirectional,
              metric_goal,
              metric_collapse, metric_collapse_threshold,
              max_depth=10000, max_iterations=10000, max_time=120,
              max_memory_MB=25,):
     '''
     
     :param bidirectional:
     :param metric_goal:
     :param metric_collapse:
     :param metric_collapse_threshold:
     :param max_depth:
     :param max_iterations:
     :param max_time:
     :param max_memory_MB:
     '''
     super(GenericGraphPlanner, self).__init__()
     self.bidirectional = bidirectional
     config = get_current_config()
     self.metric_goal = config.distances.instance(metric_goal)        
     self.metric_collapse = config.distances.instance(metric_collapse)        
     self.metric_collapse_threshold = metric_collapse_threshold
     self.max_iterations = max_iterations
     self.max_depth = max_depth
     self.max_time = max_time
     self.max_memory_MB = max_memory_MB
Пример #2
0
 def __init__(
     self,
     bidirectional,
     metric_goal,
     metric_collapse,
     metric_collapse_threshold,
     max_depth=10000,
     max_iterations=10000,
     max_time=120,
     max_memory_MB=25,
 ):
     '''
     
     :param bidirectional:
     :param metric_goal:
     :param metric_collapse:
     :param metric_collapse_threshold:
     :param max_depth:
     :param max_iterations:
     :param max_time:
     :param max_memory_MB:
     '''
     super(GenericGraphPlanner, self).__init__()
     self.bidirectional = bidirectional
     config = get_current_config()
     self.metric_goal = config.distances.instance(metric_goal)
     self.metric_collapse = config.distances.instance(metric_collapse)
     self.metric_collapse_threshold = metric_collapse_threshold
     self.max_iterations = max_iterations
     self.max_depth = max_depth
     self.max_time = max_time
     self.max_memory_MB = max_memory_MB
Пример #3
0
 def __init__(self, metric_attractor, **kwargs):
     config = get_current_config()
     self.metric_attractor = config.distances.instance(metric_attractor)
     super(InformedPlannerGreedyTree, self).__init__(**kwargs)
 def __init__(self, metric_attractor, **kwargs):
     config = get_current_config()
     self.metric_attractor = config.distances.instance(metric_attractor)
     super(InformedPlannerGreedyTree, self).__init__(**kwargs)