setColsBndsGLPK: Set/Change Column Bounds

Description Usage Arguments Details Value Author(s) References See Also

View source: R/glpkAPI.R

Description

This is an advanced version of setColBndGLPK. Here, j can be an integer vector, lb and ub can be numeric vectors.

Usage

1
  setColsBndsGLPK(lp, j, lb, ub, type = 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.

type

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

Details

Interface to the C function setColsBnds which calls the GLPK function glp_set_col_bnds.

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

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


glpkAPI documentation built on Sept. 21, 2018, 6:22 p.m.