Learn R Programming

glpkAPI (version 1.3.4)

setColsBndsObjCoefsGLPK: Set/Change Column Bounds and Objective Coefficients and/or Constant Term

Description

This is an combined version of setColsBndsGLPK and setObjCoefsGLPK. Here, j can be an integer vector, lb, ub and obj_coef can be numeric vectors.

Usage

setColsBndsObjCoefsGLPK(lp, j, lb, ub, obj_coef, type = NULL)

Value

NULL

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

lb

Vector of lower bounds.

ub

Vector of upper bounds.

obj_coef

Vector of objective coefficients.

type

Vector of variable types (default: NULL). For possible values, see glpkConstants, section ‘LP/MIP problem object’.

Author

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

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

Details

Interface to the C function setColsBndsObjCoefs which calls the GLPK functions glp_set_col_bnds and glp_set_obj_coef.

If type is set to NULL, the type of the variables will be estimated. If lb[i] equals ub[i], variable j[i] is fixed, otherwise double bounded.

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants