qics.io.write_cbf

qics.io.write_cbf(model, filename)[source]

Writes a conic program

\[ \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} \]

represented by a Model to a .cbf file using the Conic Benchmark Format.

Parameters:
modelModel

Model representing the conic program we want to write to a CBF file.

filenamestring

Name of the CBF file we want to write to.

See also

write_cbf

Read file in the Conic Benchmark Format.