Skip to content

Problem serialization #532

@echu

Description

@echu

@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!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions