Additive.__init__#

Additive.__init__(lower_bound, upper_bound, init_fn_or_value=None, functional=True)[source]

Create a new Additive asset.

Parameters:
  • lower_bound (float) – The lower bound of the asset.

  • upper_bound (float) – The upper bound of the asset.

  • init_fn_or_value (PrimitiveType | AssetSpace | Callable[[], Any] | None) – The function to initialize the asset. It can be a primitive type, a callable with no arguments or an AssetSpace object. If it is not provided, the asset will be initialized with the lower bound. Defaults to None.

  • functional (bool, optional) – If True, the asset is functional. Defaults to True.

Raises:

ValueError – If $lower_bound > upper_bound$.