picos.expressions.exp_logsumexp¶

Implements LogSumExp.

Classes

class picos.expressions.exp_logsumexp.LogSumExp(x)[source]

Logarithm of the sum of elementwise exponentials of an expression.

Definition

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

Denote addition with another expression on the right-hand side.

__init__(x)[source]

Construct a LogSumExp.

Parameters

x (AffineExpression) – The affine expression .

__le__(other)[source]

Return a constraint that the expression is upper-bounded.

Denote addition with another expression on the left-hand side.

__sub__(other)[source]

Denote subtraction of another expression from the expression.

property exp[source]

The elementwise sum of exponentials of .

property n

Length of x.

property x

The expression .