Absolute Value
The elementwise absolute value. methods
## 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)