NO FRAMES

CPXreadcopysos

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

The routine CPXreadcopysos reads in SOS data from an SOS file, and copies the data into a MIP problem object.

This routine changes the problem type to MIP, if it is not already a MIP.

Example

 status = CPXreadcopysos (env, lp, "myprob.sos");

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 SOS information should be read.

Returns:

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