Learn R Programming

sybil (version 1.1.2)

addColsToProb-methods: Add New Columns (Variables) to an Optimization Problem

Description

Add new columns (variables) to an optimization problem.

Usage

## S3 method for class 'optObj_clpAPI':
addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S3 method for class 'optObj_cplexAPI': addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S3 method for class 'optObj_glpkAPI': addColsToProb(lp, j, obj, lb, ub, rind, nzval)

## S3 method for class 'optObj_lpSolveAPI': addColsToProb(lp, j, obj, lb, ub, rind, nzval)

Arguments

lp
An object extending class optObj.
j
A numeric vector containing the new column indices.
obj
A numeric vector containing the objective coefficients of the new variables.
lb
A numeric vector containing the lower bounds of the new variables.
ub
A numeric vector containing the upper bounds of the new variables.
rind
A list containing the row indices of the new non-zero elements.
nzval
A list containing the new non-zero elements.

encoding

utf8

See Also

Superclass optObj and constructor function optObj.