class_docstr: Managing autoscaling policies and the lifecycle of the scaling function calls.
class_docstr_tok: ["Managing","autoscaling","policies","and","the","lifecycle","of","the","scaling","function","calls","."]
docstr: Get the autoscaling lower bound, including target_capacity changes.
  
  The autoscaler uses initial_replicas scaled by target_capacity only
  if the target capacity direction is UP.
docstr_tok: ["Get","the","autoscaling","lower","bound",",","including","target_capacity","changes",".","The","autoscaler","uses","initial_replicas","scaled","by","target_capacity","only","if","the","target","capacity","direction","is","UP","."]
code: def get_current_lower_bound(
      self,
      target_capacity: Optional[float] = None,
      target_capacity_direction: Optional[
          TargetCapacityDirection
      ] = None,
  ) -> int:
      """Get the autoscaling lower bound, including target_capacity changes.
  
      The autoscaler uses initial_replicas scaled by target_capacity only
      if the target capacity direction is UP.
      """
  
      if self.config.initial_replicas is not None and (
          target_capacity_direction == TargetCapacityDirection.UP
      ):
          return get_capacity_adjusted_num_replicas(
              self.config.initial_replicas,
              target_capacity,
          )
      else:
          return get_capacity_adjusted_num_replicas(
              self.config.min_replicas,
              target_capacity,
          )
  
file_path: ray/python/ray/serve/_private/autoscaling_policy.py
imports: import logging
  from typing import List, Optional
  from ray.serve._private.common import TargetCapacityDirection
  from ray.serve._private.constants import SERVE_LOGGER_NAME
  from ray.serve._private.utils import get_capacity_adjusted_num_replicas
  from ray.serve.config import AutoscalingConfig
label_desc: Use image node_id 5 for calling the AutoscalingPolicyManager obj's underlying member method code with example usage: obj.get_current_lower_bound(target_capacity, target_capacity_direction) and returns: get_capacity_adjusted_num_replicas, get_capacity_adjusted_num_replicas