dist_ratio: Distance ratio

View source: R/119_atoms_dist_ratio.R

dist_ratioR Documentation

Distance ratio

Description

Computes norm(x - a)_2 / norm(x - b)_2, where a and b are constants. This is a quasiconvex atom.

Usage

dist_ratio(x, a, b)

Arguments

x

A vector expression

a

A numeric constant vector

b

A numeric constant vector

Value

An expression representing the distance ratio


CVXR documentation built on March 6, 2026, 9:10 a.m.