Learn R Programming

sybil (version 2.2.0)

setRowsNames-methods: Set/Change Constraint Names

Description

Set or change names of constraints (rows) used in a optimization problem.

Usage

# S4 method for optObj_clpAPI,numeric,character
setRowsNames(lp, i, names)

# S4 method for optObj_cplexAPI,numeric,character setRowsNames(lp, i, names)

# S4 method for optObj_glpkAPI,numeric,character setRowsNames(lp, i, names)

# S4 method for optObj_lpSolveAPI,numeric,character setRowsNames(lp, i, names)

Arguments

lp

An object extending class '>optObj.

i

A numeric vector of row indices.

names

A character vector of the same length as i containing the row names.

Value

NULL is invisibly returned.

Methods

signature(lp = "optObj_clpAPI", i = "numeric", names = "character")

method to use with package optObj_clpAPI.

signature(lp = "optObj_cplexAPI", i = "numeric", names = "character")

method to use with package optObj_cplexAPI.

signature(lp = "optObj_glpkAPI", i = "numeric", names = "character")

method to use with package optObj_glpkAPI.

signature(lp = "optObj_lpSolveAPI", i = "numeric", names = "character")

method to use with package optObj_lpSolveAPI.

See Also

Superclass '>optObj and constructor function optObj.