starling.structure.bme_utils.ExperimentalObservable
- class ExperimentalObservable[source]
Bases:
objectContainer for experimental observable data.
- Parameters:
value (float) – The experimental value of the observable.
uncertainty (float) – The experimental uncertainty (standard deviation).
constraint (str, optional) – Type of constraint. Must be one of: - “equality” (default): Observable should match value ± uncertainty - “upper”: Observable should not exceed value - “lower”: Observable should not fall below value
name (str, optional) – Optional name/description of the observable.
Methods
Get the optimization bounds for the Lagrange multiplier.
Attributes
- get_bounds() Tuple[float | None, float | None][source]
Get the optimization bounds for the Lagrange multiplier.
These bounds ensure the constraint type is enforced during optimization: - “equality”: No bounds (lambda can be any value) - “upper”: lambda >= 0 (positive lambda pushes observable down) - “lower”: lambda <= 0 (negative lambda pushes observable up)