> > ILOG CPLEX File Formats > Solution Files

This section presents the solution files produced by CPLEX. It includes these topics:

Format of an ASCII-Text Solution File

An ASCII text solution file is created in Concert Technology with the method IloCplex::writeTextSolution, in the Callable Library with the CPXwritesol routine, or in the Interactive Optimizer via the write command. In either case, the file type TXT should be specified. If a file name with a .txt extension is specified, the file type may be omitted. A solution file consists of three sections: heading, rows, and columns.

Heading Section

A heading section in an ASCII-text solution file lists the following information:

Rows and Columns Sections

The rows section and the columns section in an ASCII-text solution file are in tabular format. For each row and each column, the file lists the following information:

ILOG CPLEX observes the MPS convention of printing the negative dual variables so that they correspond in sign to the reduced costs in the column section.