exp,Expression-method {CVXR} | R Documentation |
Natural Exponential
Description
The elementwise natural exponential.
Usage
## S4 method for signature 'Expression'
exp(x)
Arguments
x |
An Expression. |
Value
An Expression representing the natural exponential of the input.
Examples
x <- Variable(5)
obj <- Minimize(sum(exp(x)))
prob <- Problem(obj, list(sum(x) == 1))
result <- solve(prob)
result$getValue(x)
[Package CVXR version 1.0-14 Index]