abs,Expression-method | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.