# picos.expressions.exp_sumexp¶

Implements SumExponentials.

Classes

class picos.expressions.exp_sumexp.SumExponentials(x, y=None)[source]

Bases: Expression

Sum of elementwise exponentials of an affine expression.

Definition

Let be an -dimensional real affine expression.

1. If no additional expression is given, this is the sum of elementwise exponentials

2. If an additional affine expression of same shape as is given, this is the sum of elementwise perspectives of exponentials

Warning

When you pose an upper bound on a sum of elementwise exponentials, then PICOS enforces through an auxiliary constraint during solution search. When an additional expression is given, PICOS enforces as well.

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

__init__(x, y=None)[source]

Construct a SumExponentials.

Parameters
• x (AffineExpression) – The affine expression .

• y (AffineExpression) – An additional affine expression . If necessary, PICOS will attempt to reshape or broadcast it to the shape of .

__le__(other)[source]

Return a constraint that the expression is upper-bounded.

__mul__(other)[source]

Denote scaling from the right hand side.

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

__rmul__(other)[source]

Denote scaling from the left hand side.

__truediv__(other)[source]

Denote division by a constant scalar.

property log[source]

The logarithm of the expression.

property n

Length of x.

property x

The expression .

property y

The additional expression , or None.