picos.expressions

Mathematical expression types.

Exceptions

exception picos.expressions.IntractableWorstCase[source]

See picos.expressions.uncertain.uexpression.IntractableWorstCase.

exception picos.expressions.NotValued[source]

See picos.valuable.NotValued.

exception picos.expressions.PredictedFailure[source]

See picos.expressions.expression.PredictedFailure.

Classes

class picos.expressions.AffineExpression[source]

See picos.expressions.exp_affine.AffineExpression.

class picos.expressions.Ball[source]

See picos.expressions.set_ball.Ball.

class picos.expressions.BaseVariable[source]

See picos.expressions.variables.BaseVariable.

class picos.expressions.BiaffineExpression[source]

See picos.expressions.exp_biaffine.BiaffineExpression.

class picos.expressions.BinaryVariable[source]

See picos.expressions.variables.BinaryVariable.

class picos.expressions.ComplexAffineExpression[source]

See picos.expressions.exp_affine.ComplexAffineExpression.

class picos.expressions.ComplexVariable[source]

See picos.expressions.variables.ComplexVariable.

class picos.expressions.Cone[source]

See picos.expressions.cone.Cone.

class picos.expressions.ConicPerturbationSet[source]

See picos.expressions.uncertain.pert_conic.ConicPerturbationSet.

class picos.expressions.DetRootN[source]

See picos.expressions.exp_detrootn.DetRootN.

class picos.expressions.Ellipsoid[source]

See picos.expressions.set_ellipsoid.Ellipsoid.

class picos.expressions.Entropy[source]

See picos.expressions.exp_entropy.Entropy.

class picos.expressions.ExponentialCone[source]

See picos.expressions.cone_expcone.ExponentialCone.

class picos.expressions.Expression[source]

See picos.expressions.expression.Expression.

class picos.expressions.ExpressionType[source]

See picos.expressions.expression.ExpressionType.

class picos.expressions.Extremum[source]

See picos.expressions.exp_extremum.Extremum.

class picos.expressions.GeometricMean[source]

See picos.expressions.exp_geomean.GeometricMean.

class picos.expressions.HermitianVariable[source]

See picos.expressions.variables.HermitianVariable.

class picos.expressions.IntegerVariable[source]

See picos.expressions.variables.IntegerVariable.

class picos.expressions.LogSumExp[source]

See picos.expressions.exp_logsumexp.LogSumExp.

class picos.expressions.Logarithm[source]

See picos.expressions.exp_logarithm.Logarithm.

class picos.expressions.LowerTriangularVariable[source]

See picos.expressions.variables.LowerTriangularVariable.

class picos.expressions.MaximumConvex[source]

See picos.expressions.exp_extremum.MaximumConvex.

class picos.expressions.MinimumConcave[source]

See picos.expressions.exp_extremum.MinimumConcave.

class picos.expressions.MomentAmbiguitySet[source]

See picos.expressions.uncertain.pert_moment.MomentAmbiguitySet.

class picos.expressions.Mutable[source]

See picos.expressions.mutable.Mutable.

class picos.expressions.NegativeEntropy[source]

See picos.expressions.exp_entropy.NegativeEntropy.

class picos.expressions.NonnegativeOrthant[source]

See picos.expressions.cone_nno.NonnegativeOrthant.

class picos.expressions.Norm[source]

See picos.expressions.exp_norm.Norm.

class picos.expressions.NuclearNorm[source]

See picos.expressions.exp_nucnorm.NuclearNorm.

class picos.expressions.Perturbation[source]

See picos.expressions.uncertain.perturbation.Perturbation.

class picos.expressions.PerturbationUniverse[source]

See picos.expressions.uncertain.perturbation.PerturbationUniverse.

class picos.expressions.PositiveSemidefiniteCone[source]

See picos.expressions.cone_psd.PositiveSemidefiniteCone.

class picos.expressions.PowerTrace[source]

See picos.expressions.exp_powtrace.PowerTrace.

class picos.expressions.ProductCone[source]

See picos.expressions.cone_product.ProductCone.

class picos.expressions.QuadraticExpression[source]

See picos.expressions.exp_quadratic.QuadraticExpression.

class picos.expressions.RandomExtremumAffine[source]

See picos.expressions.uncertain.uexp_rand_pwl.RandomExtremumAffine.

class picos.expressions.RandomMaximumAffine[source]

See picos.expressions.uncertain.uexp_rand_pwl.RandomMaximumAffine.

class picos.expressions.RandomMinimumAffine[source]

See picos.expressions.uncertain.uexp_rand_pwl.RandomMinimumAffine.

class picos.expressions.RealVariable[source]

See picos.expressions.variables.RealVariable.

class picos.expressions.RotatedSecondOrderCone[source]

See picos.expressions.cone_rsoc.RotatedSecondOrderCone.

class picos.expressions.Samples[source]

See picos.expressions.samples.Samples.

class picos.expressions.ScenarioPerturbationSet[source]

See picos.expressions.uncertain.pert_scenario.ScenarioPerturbationSet.

class picos.expressions.SecondOrderCone[source]

See picos.expressions.cone_soc.SecondOrderCone.

class picos.expressions.Set[source]

See picos.expressions.set.Set.

class picos.expressions.SetType[source]

See picos.expressions.set.SetType.

class picos.expressions.Simplex[source]

See picos.expressions.set_simplex.Simplex.

class picos.expressions.SkewSymmetricVariable[source]

See picos.expressions.variables.SkewSymmetricVariable.

class picos.expressions.SpectralNorm[source]

See picos.expressions.exp_specnorm.SpectralNorm.

class picos.expressions.SquaredNorm[source]

See picos.expressions.exp_sqnorm.SquaredNorm.

class picos.expressions.SumExponentials[source]

See picos.expressions.exp_sumexp.SumExponentials.

class picos.expressions.SumExtremes[source]

See picos.expressions.exp_sumxtr.SumExtremes.

class picos.expressions.SymmetricVariable[source]

See picos.expressions.variables.SymmetricVariable.

class picos.expressions.TheField[source]

See picos.expressions.cone_trivial.TheField.

class picos.expressions.UncertainAffineExpression[source]

See picos.expressions.uncertain.uexp_affine.UncertainAffineExpression.

class picos.expressions.UncertainExpression[source]

See picos.expressions.uncertain.uexpression.UncertainExpression.

class picos.expressions.UncertainNorm[source]

See picos.expressions.uncertain.uexp_norm.UncertainNorm.

class picos.expressions.UncertainSquaredNorm[source]

See picos.expressions.uncertain.uexp_sqnorm.UncertainSquaredNorm.

class picos.expressions.UnitBallPerturbationSet[source]

See picos.expressions.uncertain.pert_conic.UnitBallPerturbationSet.

class picos.expressions.UpperTriangularVariable[source]

See picos.expressions.variables.UpperTriangularVariable.

class picos.expressions.WassersteinAmbiguitySet[source]

See picos.expressions.uncertain.pert_wasserstein.WassersteinAmbiguitySet.

class picos.expressions.WeightedSum[source]

See picos.expressions.exp_wsum.WeightedSum.

class picos.expressions.ZeroSpace[source]

See picos.expressions.cone_trivial.ZeroSpace.

Functions

picos.expressions.Constant()[source]

See picos.expressions.exp_affine.Constant.

picos.expressions.ball()

See picos.expressions.algebra.ball.

picos.expressions.block()[source]

See picos.expressions.algebra.block.

picos.expressions.detrootn()

See picos.expressions.algebra.detrootn.

picos.expressions.diag()[source]

See picos.expressions.algebra.diag.

picos.expressions.diag_vect()[source]

See picos.expressions.algebra.diag_vect.

picos.expressions.exp()[source]

See picos.expressions.algebra.exp.

picos.expressions.expcone()

See picos.expressions.algebra.expcone.

picos.expressions.flow_Constraint()[source]

See picos.expressions.algebra.flow_Constraint.

picos.expressions.geomean()

See picos.expressions.algebra.geomean.

picos.expressions.kldiv()

See picos.expressions.algebra.kldiv.

picos.expressions.kron()[source]

See picos.expressions.algebra.kron.

picos.expressions.kullback_leibler()

See picos.expressions.algebra.kullback_leibler.

picos.expressions.lambda_max()[source]

See picos.expressions.algebra.lambda_max.

picos.expressions.lambda_min()[source]

See picos.expressions.algebra.lambda_min.

picos.expressions.log()[source]

See picos.expressions.algebra.log.

picos.expressions.logsumexp()

See picos.expressions.algebra.logsumexp.

picos.expressions.lse()

See picos.expressions.algebra.lse.

picos.expressions.maindiag()[source]

See picos.expressions.algebra.maindiag.

picos.expressions.max()[source]

See picos.expressions.algebra.max.

picos.expressions.min()[source]

See picos.expressions.algebra.min.

picos.expressions.new_param()[source]

See picos.expressions.algebra.new_param.

picos.expressions.no_refinement()[source]

See picos.expressions.expression.no_refinement.

picos.expressions.norm()

See picos.expressions.algebra.norm.

picos.expressions.partial_trace()[source]

See picos.expressions.algebra.partial_trace.

picos.expressions.partial_transpose()[source]

See picos.expressions.algebra.partial_transpose.

picos.expressions.rsoc()

See picos.expressions.algebra.rsoc.

picos.expressions.simplex()[source]

See picos.expressions.algebra.simplex.

picos.expressions.soc()

See picos.expressions.algebra.soc.

picos.expressions.sum()[source]

See picos.expressions.algebra.sum.

picos.expressions.sum_k_largest()[source]

See picos.expressions.algebra.sum_k_largest.

picos.expressions.sum_k_largest_lambda()[source]

See picos.expressions.algebra.sum_k_largest_lambda.

picos.expressions.sum_k_smallest()[source]

See picos.expressions.algebra.sum_k_smallest.

picos.expressions.sum_k_smallest_lambda()[source]

See picos.expressions.algebra.sum_k_smallest_lambda.

picos.expressions.sumexp()

See picos.expressions.algebra.sumexp.

picos.expressions.trace()[source]

See picos.expressions.algebra.trace.

picos.expressions.tracepow()[source]

See picos.expressions.algebra.tracepow.

picos.expressions.truncated_simplex()[source]

See picos.expressions.algebra.truncated_simplex.

Objects

picos.expressions.CONTINUOUS_VARTYPES

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.

If the argument is a tuple, the return value is the same object.

Default value
(<class 'picos.expressions.variables.RealVariable'>,
 <class 'picos.expressions.variables.ComplexVariable'>,
 <class 'picos.expressions.variables.SymmetricVariable'>,
 <class 'picos.expressions.variables.SkewSymmetricVariable'>,
 <class...
picos.expressions.I[source]

Create an identity matrix.

Example

>>> from picos import I
>>> print(I(3))
[ 1.00e+00     0         0    ]
[    0      1.00e+00     0    ]
[    0         0      1.00e+00]
Default value
<functools._lru_cache_wrapper object at 0x7faf7100fb60>
picos.expressions.J[source]

Create a matrix of all ones.

Example

>>> from picos import J
>>> print(J(2, 3))
[ 1.00e+00  1.00e+00  1.00e+00]
[ 1.00e+00  1.00e+00  1.00e+00]
Default value
<functools._lru_cache_wrapper object at 0x7faf7100fab0>
picos.expressions.O[source]

Create a zero matrix.

Example

>>> from picos import O
>>> print(O(2, 3))
[0 0 0]
[0 0 0]
Default value
<functools._lru_cache_wrapper object at 0x7faf70fbbd70>