value: Get values of expressions at optimizer

Description Usage Arguments Examples

Description

Value returns the values of expressions at optimizer (minimizer, maximizer and etc.).

Usage

1

Arguments

...

expressions needed to evaluate.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
    convex_setup()
    x <- Variable(4)
    b <- J(c(1:4))
    p <- minimize(sum((x - b) ^ 2))
    cvx_optim(p)
    value(x[1] + x[2], x[3] + x[4])

## End(Not run)

convexjlr documentation built on May 2, 2019, 5:28 a.m.