@SteveDiamond, any idea if there's a good way to serialize a CVXPY problem?
I know that get_problem_data exists, but that returns the problem data for specific solvers. I basically want to construct some sort of JSON (protobuf, etc.) that contains all the data for expressions to allow me to recreate a CVXPY Problem. This is different from get_problem_data in that I don't want all the data necessary to recreate, say, the input to ECOS or SCS--I just want all the data to recreate the original CVXPY problem.
I essentially want to pickle a Problem object, but would like to avoid all the security issues around python pickles (arbitrary code execution!).
@SteveDiamond, any idea if there's a good way to serialize a CVXPY problem?
I know that
get_problem_dataexists, but that returns the problem data for specific solvers. I basically want to construct some sort of JSON (protobuf, etc.) that contains all the data for expressions to allow me to recreate a CVXPY Problem. This is different fromget_problem_datain that I don't want all the data necessary to recreate, say, the input to ECOS or SCS--I just want all the data to recreate the original CVXPY problem.I essentially want to pickle a
Problemobject, but would like to avoid all the security issues around python pickles (arbitrary code execution!).