picos.modeling.file_in¶
Functions for reading optimization problems from a file.
Functions
- picos.modeling.file_in.import_cbf(filename)[source]¶
Create a
Problem
from a CBF file.The created problem contains one (multidimensional) variable for each cone specified in the section
VAR
of the .cbf file, and one (multidimmensional) constraint for each cone specified in the sectionsCON
andPSDCON
.- Returns
A tuple
(P, x, X, params)
whereP
is the imported picosProblem
object,x
is a list of multidimensional variables representing the scalar variables found in the file,X
is a list of symmetric variables representing the positive semidefinite variables found in the file, andparams
is a dictionary containing PICOS cosntants used to define the problem. Indexing is with respect to the blocks of variables as defined in the sectionsVAR
andCON
of the file.