powered by
Computes the geometric matrix product where (A diamond X)_ij = prod_k X_kj^A_ik. Log-log affine atom for DGP. Solve with psolve(problem, gp = TRUE).
psolve(problem, gp = TRUE)
gmatmul(A, X)
A Gmatmul atom
A constant matrix
An Expression (positive matrix)
x <- Variable(2, pos = TRUE) A <- matrix(c(1, 0, 0, 1), 2, 2) prob <- Problem(Minimize(sum(gmatmul(A, x))), list(x >= 0.5)) if (FALSE) psolve(prob, gp = TRUE)
Run the code above in your browser using DataLab