Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

V_bound

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)

ROI

R Optimization Infrastructure

v1.0-0
GPL-3
Authors
Kurt Hornik [aut], David Meyer [aut], Florian Schwendinger [aut], Stefan Theussl [aut, cre], Diethelm Wuertz [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.