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

lambda_sum_largest

Sum of Largest Eigenvalues


Description

The sum of the largest k eigenvalues of a matrix.

Usage

lambda_sum_largest(A, k)

Arguments

A

An Expression or matrix.

k

The number of eigenvalues to sum over.

Value

An Expression representing the sum of the largest k eigenvalues of the input.

Examples

C <- Variable(3,3)
val <- cbind(c(1,2,3), c(2,4,5), c(3,5,6))
prob <- Problem(Minimize(lambda_sum_largest(C,2)), list(C == val))
result <- solve(prob)
result$value
result$getValue(C)

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.