The routine CPXcopylpwnames()
copies LP data into a CPLEX problem object in the same way as the routine CPXcopylp()
, but using some additional arguments to specify the names of constraints and variables in the CPLEX problem object. The arguments to CPXcopylpwnames()
define an objective function, constraint matrix, variable bounds, right-hand side constraint senses, and range values. Unlike the routine CPXcopylp()
, CPXcopylpwnames()
also copies names. This routine is used in the same manner as CPXcopylp()
.
The routine returns a zero on success, and a nonzero if an error occurs.
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
An integer that indicates whether the problem is a minimization or maximization problem.
objsen | = 1 | ( CPX_MIN ) minimize |
objsen | = -1 | ( CPX_MAX ) maximize |
An array of length at least numcols
containing the objective function coefficients.
sense[i] | = 'L' | constraint |
sense[i] | = 'E' | = constraint |
sense[i] | = 'G' | constraint |
sense[i] | = 'R' | ranged constraint |
|
The corresponding row indices are:
|
|
|
status = CPXcopylpwnames (env, lp, numcols, numrows, objsen, obj,
rhs, sense, matbeg, matcnt, matind,
matval, lb, ub, rngval, colname,
i |