Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mixed_norm

Mixed Norm


Description

l_{p,q}(x) = ≤ft(∑_{i=1}^n (∑_{j=1}^m |x_{i,j}|)^{q/p}\right)^{1/q}.

Usage

mixed_norm(X, p = 2, q = 1)

Arguments

X

An Expression, vector, or matrix.

p

The type of inner norm.

q

The type of outer norm.

Value

An Expression representing the l_{p,q} norm of the input.

Examples

A <- Variable(2,2)
val <- cbind(c(3,3), c(4,4))
prob <- Problem(Minimize(mixed_norm(A,2,1)), list(A == val))
result <- solve(prob)
result$value
result$getValue(A)

val <- cbind(c(1,4), c(5,6))
prob <- Problem(Minimize(mixed_norm(A,1,Inf)), list(A == val))
result <- solve(prob)
result$value
result$getValue(A)

CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.