Model: Create an optimization model.

Description Usage Examples

Description

Creates a object that will hold your optimization model. You can use the methods of this object to define your optimization problem.

Usage

1

Examples

1
2
3
4
5
6
7
8
m <- Model()
m$var(x >= 0)
m$var(y >= 0)
m$constraint(x + y <= 2)
m$sense <- "max"
m$objective(2*x + y)
m$solve()
value(x)

jlepird/raml documentation built on May 19, 2019, 12:46 p.m.