Learn R Programming

CVXR (version 1.9.1)

dotsort: Weighted sorted dot product

Description

Computes <sort(vec(X)), sort(vec(W))> where X is an expression and W is a constant. A generalization of sum_largest and sum_smallest.

Usage

dotsort(X, W)

Value

A scalar convex Expression.

Arguments

X

An Expression or numeric value.

W

A constant numeric vector or matrix.