Skip to content

[FileFormats.MPS] slowing reading of .mps file #2888

@JunchengLiamLi

Description

@JunchengLiamLi

The read_from_file() function is quite slow on my .mps file. It takes 33 seconds to build a model from the .mps file, while the C_API of HiGHS (call from Julia) takes only about the 8 seconds. Please see the below:

@time model_JuMP = read_from_file("2025-1126-SCUC-noncon.mps");
33.343285 seconds (236.12 M allocations: 14.443 GiB, 25.32% gc time)

@time HiGHS.Highs_readModel(model_HiGHS,"2025-1126-SCUC-noncon.mps");
7.832455 seconds (1.50 k allocations: 78.234 KiB, 0.05% compilation time)

Just wondering if there is any way to build a JuMP.Model faster from .mps files.

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    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