Learn R Programming

ROI (version 0.2-1)

V_bound: Objective Variable Bounds

Description

Constructs a variable bounds object.

Usage

V_bound(li, ui, lb, ub, nobj = max(li, ui))
"c"(...)
as.V_bound(x)
is.V_bound(x)

Arguments

li
an integer vector specifying the indices of non-standard (i.e., values != 0) lower bounds.
ui
an integer vector specifying the indices of non-standard (i.e., values != Inf) upper bounds.
lb
a numeric vector with lower bounds.
ub
a numeric vector with upper bounds.
nobj
an integer representing the number of objective variables
x
object to be coerced or tested.
...
objects to be combined.

Value

An S3 object of class "V_bound" containing lower and upper bounds of the objective variables.

Details

This function returns a sparse representation of objective variable bounds.

Examples

Run this code
V_bound(li=1:3, lb=rep.int(-Inf, 3))
V_bound(li=c(1, 5, 10), ui=13, lb=rep.int(-Inf, 3), ub=100, nobj=20)

Run the code above in your browser using DataLab