picos.expressions.exp_geomean

Implements GeometricMean.

Classes

class picos.expressions.exp_geomean.GeometricMean(x)[source]

Bases: Expression

Geometric mean of an affine expression.

Definition

For an n-dimensional affine expression x with x \geq 0, the geometric mean is given as

\left(\prod_{i = 1}^n x_i \right)^{\frac{1}{n}}.

Warning

When you pose a lower bound on a geometric mean, then PICOS enforces x \geq 0 through an auxiliary constraint during solution search.

__ge__(other)[source]

Return a constraint that the expression is lower-bounded.

__init__(x)[source]

Construct a GeometricMean.

Parameters

x (AffineExpression) – The affine expression to form the geometric mean of.

__mul__(other)[source]

Denote multiplication with another expression on the right.

__rmul__(other)[source]

Denote multiplication with another expression on the left.

property x

The expression under the mean.