Learn R Programming

sybil (version 1.1.2)

changeColsBndsObjCoefs-methods: Change Column (Variable) Bounds and Objective Coefficients in the Optimization Problem

Description

Change column (variable) bounds and objective coefficients in the optimization problem.

Usage

## S3 method for class 'optObj_clpAPI':
changeColsBndsObjCoefs(lp, j, lb, ub, obj_coef)

## S3 method for class 'optObj_cplexAPI': changeColsBndsObjCoefs(lp, j, lb, ub, obj_coef)

## S3 method for class 'optObj_glpkAPI': changeColsBndsObjCoefs(lp, j, lb, ub, obj_coef)

## S3 method for class 'optObj_lpSolveAPI': changeColsBndsObjCoefs(lp, j, lb, ub, obj_coef)

Arguments

lp
An object extending class optObj.
j
A numeric vector containing the column indices of the variables to change.
lb
A numeric vector of the same length as j containing the lower bounds of the variables to change.
ub
A numeric vector of the same length as j containing the upper bounds of the variables to change.
obj_coef
A numeric vector of the same length as j containing the objective coefficients of the variables to change.

encoding

utf8

See Also

Superclass optObj and constructor function optObj.