dist_ratio: Distance ratio

View source: R/128_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 Oct. 19, 2026, 5:07 p.m.