Learn R Programming

cplexAPI (version 1.4.0)

chgColsBndsCPLEX: Change Lower and Upper Bounds on a Set of Variables of a Problem

Description

Set lower and upper bounds on a set of variables in one step. If lb[i] == ub[i] the type of the bound is set to "B", otherwise lb[i] is set to "L" and ub[i] is set to "U".

Usage

chgColsBndsCPLEX(env, lp, j, lb, ub)

Arguments

env

An object of class "'>cplexPtr" as returned by openEnvCPLEX. This is basically a pointer to an IBM ILOG CPLEX environment.

lp

An object of class "'>cplexPtr" as returned by initProbCPLEX. This is basically a pointer to an IBM ILOG CPLEX problem object.

j

An integer that specifies the numeric index of the column in which the coefficient is located.

lb

A vector containing the lower bounds.

ub

A vector containing the upper bounds.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function chgColsBnds which calls the CPLEX function CPXchgbds.

References

The IBM ILOG CPLEX home page at https://www.ibm.com/support/knowledgecenter/SSSA5P.

See Also

chgBndsCPLEX, tightenBndsCPLEX