powered by
The elementwise maximum.
max_elemwise(arg1, arg2, ...)
An Expression representing the elementwise maximum of the inputs.
An Expression, vector, or matrix.
Additional Expression objects, vectors, or matrices.
c <- matrix(c(1,-1)) prob <- Problem(Minimize(max_elemwise(t(c), 2, 2 + t(c))[2])) result <- solve(prob) result$value
Run the code above in your browser using DataLab