V_bound {ROI}R Documentation

Objective Variable Bounds

Description

Constructs a variable bounds object.

Usage

V_bound(li, ui, lb, ub, nobj, ld = 0, ud = Inf, names = NULL)

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

ld

a numeric giving lower default bound.

ud

a numeric giving upper default bound.

names

a character vector giving the names of the bounds.

x

object to be coerced or tested.

Details

This function returns a sparse representation of objective variable bounds.

Value

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

Examples

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)

[Package ROI version 1.0-1 Index]