picos.expressions.exp_logsumexp

Implements LogSumExp.

Outline

Classes

LogSumExp

Logarithm of the sum of elementwise exponentials of an expression.

Classes

LogSumExp

class picos.expressions.exp_logsumexp.LogSumExp(**kwargs)[source]

Bases: picos.expressions.expression.Expression

Logarithm of the sum of elementwise exponentials of an expression.

Definition

For an n-dimensional real affine expression x, this is the logarithm of the sum of elementwise exponentials

\log\sum_{i = 1}^n \exp(\operatorname{vec}(x)_i).

__init__(x)[source]

Construct a LogSumExp.

Parameters

x (AffineExpression) – The affine expression x.

property exp

The elementwise sum of exponentials of x.

property n

Length of x.

property x

The expression x.