Skip to content

Slow read_from_file for .cbf files containing SDP constraints #135

@mipals

Description

@mipals

Hi there,

I am currently solving a few models with PSD constraints using MosekTools.jl. The models are all read from .cbf files using JuMP.read_from_file, but there seem to be a large overhead in the reading of the models.

As an example one the models look as follows

julia> model_mosek
A JuMP Model
Maximization problem with:
Variables: 100750
Objective function type: AffExpr
`Vector{VariableRef}`-in-`MathOptInterface.Nonnegatives`: 1 constraint
`Vector{VariableRef}`-in-`MathOptInterface.PositiveSemidefiniteConeTriangle`: 9632 constraints
`Vector{AffExpr}`-in-`MathOptInterface.Zeros`: 3 constraints
`Vector{AffExpr}`-in-`MathOptInterface.Nonpositives`: 1 constraint
Model mode: AUTOMATIC
CachingOptimizer state: ATTACHED_OPTIMIZER
Solver name: Mosek

Using @time optimize!(model_mosek) I get the following

 43.853957 seconds (2.12 G allocations: 142.302 GiB, 13.44% gc time)

The model itself is solved in around 6 seconds, so the main issue here seem to be in the conversion of the model.

When reading and solving the same models using Clarabel there is no overhead when reading in the .cbf files, which is making me think there is an issue hiding somewhere here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions