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.
If no additional expression
is given, this is the sum of elementwise exponentials
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.
- __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
.
- property x¶
The expression
.