Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

CVXR (version 0.95)

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

Run this code
# NOT RUN {
lambda <- Parameter()
value(lambda)

value(lambda) <- 5
value(lambda)
# }

Run the code above in your browser using DataLab