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

value-methods

Get or Set Value


Description

Get or set the value of a variable, parameter, expression, or problem.

Usage

value(object)

value(object) <- value

Arguments

object

A Variable, Parameter, Expression, or Problem object.

value

A numeric scalar, vector, or matrix to assign to the object.

Value

The numeric value of the variable, parameter, or expression. If any part of the mathematical object is unknown, return NA.

Examples

lambda <- Parameter()
value(lambda)

value(lambda) <- 5
value(lambda)

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.