picos.expressions.exp_geomean

Implements GeometricMean.

Outline

Classes

GeometricMean

Geometric mean of an affine expression.

Classes

GeometricMean

class picos.expressions.exp_geomean.GeometricMean(**kwargs)[source]

Bases: picos.expressions.expression.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.

__init__(x)[source]

Construct a GeometricMean.

Parameters

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

property x

The expression under the mean.