min_elemwise function

Elementwise Minimum

Elementwise Minimum

The elementwise minimum. methods

min_elemwise(arg1, arg2, ...)

Arguments

  • arg1: An Expression , vector, or matrix.
  • arg2: An Expression , vector, or matrix.
  • ...: Additional Expression objects, vectors, or matrices.

Returns

An Expression representing the elementwise minimum of the inputs.

Examples

a <- cbind(c(-5,2), c(-3,-1)) b <- cbind(c(5,4), c(-1,2)) prob <- Problem(Minimize(min_elemwise(a, 0, b)[1,2])) result <- solve(prob) result$value
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07