Absolute Value
The elementwise absolute value.
## S4 method for signature 'Expression' abs(x)
x |
An Expression. |
An Expression representing the absolute value of the input.
A <- Variable(2,2) prob <- Problem(Minimize(sum(abs(A))), list(A <= -2)) result <- solve(prob) result$value result$getValue(A)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.