Format of an ASCII-Text Solution File

An ASCII text solution file is created in the Concert Technology Library with the member function IloCplex::exportModel(), 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.


Previous Page: Solution Files  Return to Top Next Page: Format of a Binary Solution File