Description Usage Arguments Value Examples
addConstraint
add additional constraints to optimization problem.
1 | addConstraint(p, ...)
|
p |
optimization problem to add constraints. |
... |
additional constraints. |
the optimization problem with the additional constraints.
1 2 3 4 5 6 7 8 | ## Not run:
convex_setup()
x <- Variable(4)
b <- J(c(1:4))
p <- minimize(sum((x - b) ^ 2))
p <- addConstraint(p, x >= 0, x <= 3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.