NO FRAMES

CPXreadcopyqp

int CPXPUBLIC CPXreadcopyqp(CPXCENVptr env, CPXLPptr lp, const char * filename_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXreadcopyqp reads in the QP file specified by the argument filename and copies the quadratic matrix data into the CPLEX problem object.

This routine changes the problem type to QP if it is not already a QP. It may not be used on a problem whose type is MIP.

Example

 status = CPXreadcopyqp (env, lp, "myprob.qp");

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

filename_str

The name of the file from which the QP information should be read.

Returns:

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