class_docstr: Exception raised when optimization times out.
class_docstr_tok: ["Exception","raised","when","optimization","times","out","."]
docstr: Args:
      *args: Standard args to `BoTorchError`.
      current_x: A numpy array representing the current iterate.
      runtime: The total runtime in seconds after which the optimization
          timed out.
      **kwargs: Standard kwargs to `BoTorchError`.
docstr_tok: ["Args",":","*","args",":","Standard","args","to","`","BoTorchError","`",".","current_x",":","A","numpy","array","representing","the","current","iterate",".","runtime",":","The","total","runtime","in","seconds","after","which","the","optimization","timed","out",".","*","*","kwargs",":","Standard","kwargs","to","`","BoTorchError","`","."]
code: def __init__(
      self,
      /,
      *args: Any,
      current_x: np.ndarray,
      runtime: float,
      **kwargs: Any,
  ) -> None:
      r"""
      Args:
          *args: Standard args to `BoTorchError`.
          current_x: A numpy array representing the current iterate.
          runtime: The total runtime in seconds after which the optimization
              timed out.
          **kwargs: Standard kwargs to `BoTorchError`.
      """
      super().__init__(*args, **kwargs)
      self.current_x = current_x
      self.runtime = runtime
  
file_path: botorch/botorch/exceptions/errors.py
imports: from typing import Any
  import numpy
label_desc: Use image node_id 1 to create a new OptimizationTimeoutError object from inherited base classes: BotorchError with example: obj = OptimizationTimeoutError()