Usage
Barrier Users OnlyDescription
The CPXcopyqpsep() routine is used to copy a Q matrix for separable QP problems. A separable QP problem is one where the coefficients of Q have no nonzero off-diagonal elements. Note that CPLEX will evaluate the corresponding objective with a factor of 0.5 in front of the quadratic objective term.CPXcopyqpsep() call must be CPXPROB_LP or CPXPROB_QP for this routine to succeed. Use CPXchgprobtype() to change the problem type. After successful execution of CPXcopyqpsep(), the problem type will be CPXPROB_QP.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXcopyqpsep (CPXENVptr env,
CPXLPptr lp,
double *qsepvec);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
double *qsepvecAn array of length
CPXgetnumcols(env,lp).qsepvec[0], qsepvec[1],..., qsepvec[numcols-1] should contain the quadratic coefficients of the separable quadratic objective.
status = CPXcopyqpsep (env, lp, qsepvec);