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

getColsNames-methods

Retrieve Variable Names


Description

Get names of variables (columns) used in a optimization problem.

Usage

## S4 method for signature 'optObj_cplexAPI,numeric'
getColsNames(lp, j)

## S4 method for signature 'optObj_glpkAPI,numeric'
getColsNames(lp, j)

## S4 method for signature 'optObj_lpSolveAPI,numeric'
getColsNames(lp, j)

Arguments

lp

An object extending class optObj.

j

A numeric vector of column indices.

Value

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

Methods

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

method to use with package optObj_cplexAPI.

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

method to use with package optObj_glpkAPI.

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

method to use with package optObj_lpSolveAPI.

Note

For the optObj_glpkAPI method: the result vector may be shorter than j, 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

Efficient Constrained Based Modelling

v2.1.5
GPL-3 | file LICENSE
Authors
Mayo Roettger [cre], Gabriel Gelius-Dietrich [aut], C. Jonathan Fritzemeier [ctb], Rajen Piernikarczyk [ctb], Marc Andre Daxer [ctb], Benjamin Braasch [ctb], Abdelmoneim Desouki [ctb], Martin J. Lercher [ctb]
Initial release
2019-03-07

We don't support your browser anymore

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