powered by
Used in DGP (geometric programming) context. Solve with psolve(problem, gp = TRUE).
psolve(problem, gp = TRUE)
prod_entries(x, axis = NULL, keepdims = FALSE)
A Prod atom
An Expression
NULL (all), 1 (row-wise), or 2 (column-wise)
Whether to keep reduced dimensions
x <- Variable(3, pos = TRUE) prob <- Problem(Minimize(prod_entries(x)), list(x >= 2)) if (FALSE) psolve(prob, gp = TRUE)
Run the code above in your browser using DataLab