picos.constraints.con_sumexp

Implementation of SumExponentialsConstraint.

Outline

Classes

SumExponentialsConstraint

Upper bound on a sum of exponentials.

Classes

SumExponentialsConstraint

class picos.constraints.con_sumexp.SumExponentialsConstraint(theSum, upperBound)[source]

Bases: picos.constraints.constraint.Constraint

Upper bound on a sum of exponentials.

class ConicConversion[source]

Bases: picos.constraints.constraint.ConstraintConversion

Sum of exponentials to exponential cone constraint conversion.

classmethod convert(con, options)[source]

Implement convert.

classmethod predict(subtype, options)[source]

Implement predict.

class LogSumExpConversion[source]

Bases: picos.constraints.constraint.ConstraintConversion

Sum of exponentials to logarithm of the sum constraint conversion.

classmethod convert(con, options)[source]

Implement convert.

classmethod predict(subtype, options)[source]

Implement predict.

__init__(theSum, upperBound)[source]

Construct a SumExponentialsConstraint.

Parameters
property denominator

The y of the sum, or 1.

property lse_representable

Whether this can be converted to a logarithmic constraint.

property numerator

The x of the sum.