problem_creating: Create optimization problem

Description Usage Arguments Examples

Description

Create different kinds of optimization problems with targets and constraints.

Usage

1
2
3
4
5

Arguments

...

optimization targets and constraints.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
    convex_setup()
    x <- Variable(4)
    b <- J(c(1:4))
    p <- minimize(sum((x - b) ^ 2), x >= 0, x <= 3)
    p <- maximize(-sum((x - b) ^ 2), x >= 0, x <= 3)
    p <- satisfy(sum((x - b) ^ 2) <= 1, x >= 0, x <= 3)

## End(Not run)

convexjlr documentation built on May 2, 2019, 5:28 a.m.