CPXcopyqpsep


Description

The routine CPXcopyqpsep() 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.

Return Value

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

Synopsis

  int CPXcopyqpsep (CPXCENVptr env,
                    CPXLPptr lp,
                    const double *qsepvec);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXLPptr lp

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

const double *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.

Example

  status = CPXcopyqpsep (env, lp, qsepvec);


Previous Page: CPXcopyorder Return to Top Next Page: CPXcopyquad