dots: Vector inner products.

Description Usage Arguments Examples

Description

Takes the inner product of a variable array and a numeric array.

Usage

1
2
3
4
5
6
7
dot(a, b)

## S4 method for signature 'numeric,ramlArray'
dot(a, b)

## S4 method for signature 'ramlArray,numeric'
dot(a, b)

Arguments

a

An array of class "numeric".

b

An array of variables.

Examples

1
2
3
4
5
m <- Model()
m$var(x[1:3] >= 0)
m$constraint(dot(x, c(1,1,1)) >= 1)
m$objective(dot(c(1,2,3), x))
show(m)

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