picos.expressions.exp_logarithm

Implements Logarithm.

Outline

Classes

Logarithm

Logarithm of a scalar affine expression.

Classes

Logarithm

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

Bases: picos.expressions.expression.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.

__init__(x)[source]

Construct a Logarithm.

Parameters

x (AffineExpression) – The scalar affine expression x.

property exp

The exponential of the logarithm, equal to x.

property x

The expression x.