NO FRAMES

CPXcopyqpsep

int CPXPUBLIC CPXcopyqpsep(CPXCENVptr env, CPXLPptr lp, const double * qsepvec)
Definition file: cplex.h
Include files: cplex.h

The routine CPXcopyqpsep is used to copy the quadratic objective matrix Q for a separable QP problem. A separable QP problem is one where the coefficients of Q have no nonzero off-diagonal elements.

Note
CPLEX evaluates the corresponding objective with a factor of 0.5 in front of the quadratic objective term.

Example

 status = CPXcopyqpsep (env, lp, qsepvec);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

qsepvec

An array of length CPXgetnumcols(env,lp).qsepvec[0], qsepvec[1],..., qsepvec[numcols-1] should contain the quadratic coefficients of the separable quadratic objective.

Returns:

The routine returns zero on success and nonzero if an error occurs.