10 Supported File Formats¶
MOSEK supports a range of problem and solution formats listed in Table 10.1 and Table 10.2.
The most important are:
the Task format, MOSEK‘s native binary format which supports all features that MOSEK supports. It is the closest possible representation of the internal data in a task and it is ideal for submitting problem data support questions.
the PTF format, MOSEK‘s human-readable format that supports all linear, conic and mixed-integer features. It is ideal for debugging. It is not an exact copy of all the data in the task, but it contains all information required to reconstruct it, presented in a readable fashion.
MPS, LP, CBF formats are industry standards, each supporting some limited set of features, and potentially requiring some degree of reformulation during read/write.
Problem formats
Format Type |
Ext. |
Binary/Text |
LP |
QCQO |
ACC |
SDP |
DJC |
Sol |
Param |
---|---|---|---|---|---|---|---|---|---|
lp |
plain text |
X |
X |
||||||
mps |
plain text |
X |
X |
||||||
ptf |
plain text |
X |
X |
X |
X |
X |
X |
||
cbf |
plain text |
X |
X |
X |
|||||
task |
binary |
X |
X |
X |
X |
X |
X |
X |
|
jtask |
text/JSON |
X |
X |
X |
X |
X |
X |
X |
|
OPF (deprecated for conic problems) |
opf |
plain text |
X |
X |
X |
X |
The columns of the table indicate if the specified file format supports:
LP - linear problems, possibly with integer variables,
QCQO - quadratic objective or constraints,
ACC - affine conic constraints,
SDP - semidefinite cone/variables,
DJC - disjunctive constraints,
Sol - solutions,
Param - optimizer parameters.
Solution formats
Format Type |
Ext. |
Binary/Text |
Description |
---|---|---|---|
sol |
plain text |
Interior Solution |
|
bas |
plain text |
Basic Solution |
|
int |
plain text |
Integer |
|
jsol |
text/JSON |
All solutions |
Compression
MOSEK supports GZIP and Zstandard compression. Problem files with extension .gz
(for GZIP) and .zst
(for Zstandard) are assumed to be compressed when read, and are automatically compressed when written. For example, a file called
problem.mps.zst
will be considered as a Zstandard compressed MPS file.