dual_value: Get the Dual Value of a Constraint

View source: R/121_constraints_constraint.R

dual_valueR Documentation

Get the Dual Value of a Constraint

Description

Returns the dual variable value(s) associated with a constraint after solving. Returns NULL before the problem is solved.

Usage

dual_value(x)

Arguments

x

A Constraint object.

Value

A numeric matrix (single dual variable) or a list of numeric matrices (multiple dual variables), or NULL.


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