qics.io.read_cbf

qics.io.read_cbf(filename)[source]

Reads a file in the Conic Benchmark Format *.cbf, and returns a Model representing a conic program of the form

\[ \begin{align}\begin{aligned}\min_{x \in \mathbb{R}^n} &&& c^\top x\\\text{s.t.} &&& b - Ax = 0\\ &&& h - Gx \in \mathcal{K}.\end{aligned}\end{align} \]

Warning

This function is quite limited in the types of *.cbf files that can be read. It is recommended to only use this function together with files written using write_cbf().

Parameters:
filenamestring

Name of the CBF file we want to read.

Returns:
Model

Model representing the conic program from the specified file.

See also

write_cbf

Write file in the Conic Benchmark Format.