13 Supported File Formats

MOSEK supports a range of problem and solution formats listed in Table 13.1 and Table 13.2. The Task format is MOSEK‘s native binary format and it supports all features that MOSEK supports. The OPF format is MOSEK‘s human-readable alternative that supports nearly all features (everything except semidefinite problems). In general, text formats are significantly slower to read, but can be examined and edited directly in any text editor.

Problem formats

See Table 13.1.

Table 13.1 List of supported file formats for optimization problems.
Format Type Ext. Binary/Text LP QO CQO SDP
LP lp plain text X X    
MPS mps plain text X X    
OPF opf plain text X X X  
CBF cbf plain text X   X X
OSiL xml xml text X X    
Task format task binary X X X X
Jtask format jtask text X X X X

Solution formats

See Table 13.2.

Table 13.2 List of supported solution formats.
Format Type Ext. Binary/Text Description
SOL sol plain text Interior Solution
bas plain text Basic Solution
int plain text Integer
Jsol format jsol text Solution


MOSEK supports GZIP compression of files. Problem files with an additional .gz extension are assumed to be compressed when read, and are automatically compressed when written. For example, a file called


will be considered as a GZIP compressed MPS file.