The more comprehensive routine CPXcopylpwnames()
can be used in place of CPXcopylp()
to copy linear programs with associated names.
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 = CPXcopylp (env, lp, numcols, numrows, objsen, obj, rhs, sense, matbeg, matcnt, matind, matval, lb, ub, rngval); |