Primitives#
simple_terms
#
- class AbsValue(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the absolute value function \(|x|\).
- Parameters:
operand (scalar UFL expression) – optimization variable \(x\)
- class LinearTerm(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the linear function \(x\).
- Parameters:
operand (scalar UFL expression) – optimization variable \(x\)
norms
#
- class L1Ball(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the L1-norm ball constraint \(||x||_1 \leq 1\).
- class L1Norm(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the L1-norm function \(||x||_1\).
- class L2Ball(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the L2-norm ball constraint \(||x||_2 \leq 1\).
- class L2Norm(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the L2-norm function \(||x||_2\).
- class LinfBall(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the Linf-norm ball constraint \(||x||_\infty \leq 1\).
eigenvalues
#
- class FrobeniusNorm(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the Froebenius norm function \(\boldsymbol{X}\in \mathcal{S}_n \to \sqrt{\text{tr}(\boldsymbol{X}^T\boldsymbol{X})}\).
- class LambdaMax(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the maximum eigenvalue function \(\boldsymbol{X}\in \mathcal{S}_n \to \lambda_{max}(\boldsymbol{X})\).
- class NuclearNorm(operand, deg_quad, quadrature_scheme='default', parameters=None)[source]#
Define the nuclear norm function \(\boldsymbol{X}\in \mathcal{S}_n \to \text{tr}(\sqrt{\boldsymbol{X}^T\boldsymbol{X}})\).