Learn R Programming

cplexAPI (version 1.4.0)

chgNameCPLEX: Change the Name of a Constraint a Variable in a CPLEX Problem Object.

Description

Low level interface function to the IBM ILOG CPLEX function CPXchgname. Consult the IBM ILOG CPLEX documentation for more detailed information.

Usage

chgNameCPLEX(env, lp, key, ij, name)

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.

key

A character to specify whether a row name or a column name should be changed.

ij

An integer that specifies the numeric index of the column or row whose name is to be changed.

name

A pointer to a character string containing the new name.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function chgName which calls the CPLEX function CPXchgname.

References

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