picos.constraints.con_wsum¶
Implementation of WeightedSumConstraint
.
Classes
- class picos.constraints.con_wsum.WeightedSumConstraint(wsum, relation, rhs)[source]¶
Bases:
Constraint
Bound on a convex or concave weighted sum of expressions.
- class Conversion[source]¶
Bases:
ConstraintConversion
Bound on a weighted sum of expressions conversion.
- __init__(wsum, relation, rhs)[source]¶
Construct a
WeightedSumConstraint
.- Parameters
wsum (WeightedSum) – Left hand side expression.
relation (str) – Constraint relation symbol.
rhs (AffineExpression) – Right hand side expression.