one_minus_pos | R Documentation |
The difference 1 - x
with domain \{x : 0 < x < 1\}
.
one_minus_pos(x)
x |
An Expression, vector, or matrix. |
This atom is log-log concave.
An Expression representing one minus the input restricted to (0,1)
.
x <- Variable(pos = TRUE)
y <- Variable(pos = TRUE)
prob <- Problem(Maximize(one_minus_pos(x*y)), list(x <= 2 * y^2, y >= .2))
result <- solve(prob, gp = TRUE)
result$value
result$getValue(x)
result$getValue(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.