Learn R Programming

CVXR (version 1.9.1)

one_minus_pos: The difference 1 - x with domain (0, 1)

Description

Log-log concave atom for DGP. Solve with psolve(problem, gp = TRUE).

Usage

one_minus_pos(x)

Value

A OneMInusPos atom

Arguments

x

An Expression (elementwise in (0, 1))

Examples

Run this code
x <- Variable(pos = TRUE)
prob <- Problem(Maximize(one_minus_pos(x)), list(x >= 0.1, x <= 0.5))
if (FALSE) psolve(prob, gp = TRUE)

Run the code above in your browser using DataLab