Skip to contents

Used in DGP (geometric programming) context. Solve with psolve(problem, gp = TRUE).

Usage

prod_entries(x, axis = NULL, keepdims = FALSE)

Arguments

x

An Expression

axis

NULL (all), 1 (row-wise), or 2 (column-wise)

keepdims

Whether to keep reduced dimensions

Value

A Prod atom

Examples

x <- Variable(3, pos = TRUE)
prob <- Problem(Minimize(prod_entries(x)), list(x >= 2))
if (FALSE) psolve(prob, gp = TRUE) # \dontrun{}