picos.expressions.exp_logarithm

Implements Logarithm.

Classes

class picos.expressions.exp_logarithm.Logarithm(x)[source]

Bases: Expression

Logarithm of a scalar affine expression.

Definition

For a real scalar affine expression x, this is \log(x).

Warning

When you pose a lower bound on a logarithm \log(x), then PICOS enforces x \geq 0 through an auxiliary constraint during solution search.

__add__(other)[source]

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

__ge__(other)[source]

Return a constraint that the expression is lower-bounded.

__init__(x)[source]

Construct a Logarithm.

Parameters

x (AffineExpression) – The scalar affine expression x.

__mul__(other)[source]

Denote multiplication with another expression on the right.

__radd__(other)[source]

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

__rmul__(other)[source]

Denote multiplication with another expression on the left.

__sub__(other)[source]

Denote subtraction of another expression from the expression.

property exp

The exponential of the logarithm, equal to x.

property x

The expression x.