getRowsNames-methods: Retrieve Constraint Names

Description Usage Arguments Value Methods Note Author(s) See Also

Description

Get names of constraints (rows) used in a optimization problem.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'optObj_cplexAPI,numeric'
getRowsNames(lp, i)

## S4 method for signature 'optObj_glpkAPI,numeric'
getRowsNames(lp, i)

## S4 method for signature 'optObj_lpSolveAPI,numeric'
getRowsNames(lp, i)

Arguments

lp

An object extending class optObj.

i

A numeric vector of row indices.

Value

A character vector of row names, if names are existing.

Methods

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

method to use with package optObj_cplexAPI.

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

method to use with package optObj_glpkAPI.

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

method to use with package optObj_lpSolveAPI.

Note

For the optObj_glpkAPI method: the result vector may be shorter than i, if some names are missing.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

See Also

Superclass optObj and constructor function optObj.


sybil documentation built on May 31, 2021, 5:08 p.m.