Previous Page: CPXsolutionFirst PageNext Page: CPXstrcpy

CPXsoswrite


Usage

Mixed Integer Users Only

Description

The routine CPXsoswrite() is used to write SOS information for a problem into an SOS format file.

Return Value

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

Synopsis

int CPXsoswrite (CPXENVptr env,
                 CPXLPptr lp,
                 char *filename);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

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

char *filename
A character string containing the name of the file to which the SOS information should be written.

Example

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

See Also

Example mipex3.c in the CPLEX User's Manual.

Previous Page: CPXsolutionFirst PageNext Page: CPXstrcpy