mixed_norm function

Mixed Norm

Mixed Norm

lp,q(x)=(i=1n(j=1mxi,j)q/p)1/ql_{p,q}(x) = \left(\sum_{i=1}^n (\sum_{j=1}^m |x_{i,j}|)^{q/p}\right)^{1/q}. methods

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.

Returns

An Expression representing the lp,ql_{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)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07