Learn R Programming

cplexAPI (version 1.4.0)

openProbCPLEX: Create new CPLEX Environment And New CPLEX Problem Object

Description

The function openProbCPLEX creates a new CPLEX environment and a new CPLEX problem object.

Usage

openProbCPLEX(pname = "CPLEX_PROB",
                ptrtypeENV = "cplex_env",
                ptrtypePROB = "cplex_prob")

Arguments

pname

A single character string containing the name of the problem object.

ptrtypeENV

A name for the IBM ILOG CPLEX environment pointer object.

ptrtypePROB

A name for the IBM ILOG CPLEX problem pointer object.

Value

env

A pointer to the CPLEX environment as returned by openEnvCPLEX.

lp

A pointer to the CPLEX problem object as returned by initProbCPLEX.

If openEnvCPLEX() failes, env will be of class "'>cplexError" and lp will be NULL. Each list element is an object of class "'>cplexPtr".

Details

Interface to the C functions openEnv and initProb calling CPLEX functions CPXopenCPLEX and CPXcreateprob.

References

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

See Also

closeProbCPLEX, openEnvCPLEX, initProbCPLEX