-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
Status: help wantedThis issue needs could use help from the communityThis issue needs could use help from the communitySubmodule: UtilitiesAbout the Utilities submoduleAbout the Utilities submoduleType: Performance
Milestone
Description
There is not specialized implementation for the deletion of vector of constraints.
Because of this, deleting n constraints of the same type were there are m constraints in total is O(n * m) while it could be O(m).
Here are the O(m) operations:
https://github.com/JuliaOpt/MathOptInterface.jl/blob/525cf612602f48a77797ec5708349703ec3ea82d/src/Utilities/model.jl#L29
https://github.com/JuliaOpt/MathOptInterface.jl/blob/525cf612602f48a77797ec5708349703ec3ea82d/src/Utilities/model.jl#L562-L564
See https://discourse.julialang.org/t/jump-0-21-how-to-efficiently-delete-non-binding-constraints-in-an-lp/40650
Metadata
Metadata
Assignees
Labels
Status: help wantedThis issue needs could use help from the communityThis issue needs could use help from the communitySubmodule: UtilitiesAbout the Utilities submoduleAbout the Utilities submoduleType: Performance