value: A helper function that extracts the value of a variable.

Description Usage Arguments Examples

Description

A helper function that extracts the value of a variable.

Usage

1
2
3
4
value(x)

## S4 method for signature 'ramlAlgObject'
value(x)

Arguments

x

The object.

Examples

1
2
3
4
5
6
7
m <- Model()
m$var(x >= 0)
m$objective(x)
m$constraint(x >= 0.1)
value(x) # NA
m$solve()
value(x) # 0.1

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