simplex

picos.simplex(gamma=1)

returns a TruncatedSimplex object representing the set \{x\geq 0: ||x||_1 \leq \gamma \}.

Example

>>> import picos as pic
>>> P = pic.Problem()
>>> x = P.add_variable('x', 3)
>>> x << pic.simplex()
<Standard Simplex Constraint: x ∈ {x ≥ 0 : ∑(x) ≤ 1}>
>>> x << pic.simplex(2)
<Simplex Constraint: x ∈ {x ≥ 0 : ∑(x) ≤ 2}>