Example #1
0
 def compute_complexity(self, evaluations):
     # Will change as self.num_calls increases
     return compute_complexity(evaluations, self.get_domain()) + \
            self.external.get_complexity(self.num_calls)
Example #2
0
 def compute_complexity(self, evaluations):
     # Should be constant
     return compute_complexity(evaluations, self.get_domain()) + \
            self.external.get_complexity(self.call_index)
Example #3
0
 def compute_complexity(self, evaluations, **kwargs):
     # Will change as self.num_calls increases
     #num_calls = INF if self.enumerated else self.num_calls
     return compute_complexity(evaluations, self.get_domain(), **kwargs) + \
            self.external.get_complexity(self.num_calls)