A Binary 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 all cases the file type "BIN" should be specified. If a file name with a .bin
extension is specified, the file type may be omitted. The file is called binary because all the numbers in the file are in their internal, binary representations and the records are not text-type records. Consequently, a binary file cannot be read by a text editor; nor can it be printed.
| (length) | ------data------ | (length) | |
The first record in a binary solution file is:
Data bytes 1 - 8: 'NAME ' 9 - 16: (first 8 characters of problem name) |
The last record in a binary solution file is:
Data bytes 1 - 8: 'ENDATA ' 9 - 16: ' ' |
The field types are represented by integer codes:
1 | integer |
2 | character |
3 | floating point |
The field sizes are the number of bytes for the data item.