Learn R Programming

sybil (version 1.1.2)

getObjCoefs-methods: Get Objective Coefficients of the Optimization Problem

Description

Get objective coefficients of the optimization problem.

Usage

## S3 method for class 'optObj_clpAPI,numeric':
getObjCoefs(lp, j)

## S3 method for class 'optObj_cplexAPI,numeric': getObjCoefs(lp, j)

## S3 method for class 'optObj_glpkAPI,numeric': getObjCoefs(lp, j)

## S3 method for class 'optObj_lpSolveAPI,numeric': getObjCoefs(lp, j)

Arguments

lp
An object extending class optObj.
j
A numeric vector containing the column (variable) indices.

Value

  • A numeric vector containing the desired objective coefficients.

encoding

utf8

See Also

Superclass optObj and constructor function optObj.