File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2323
2424[weakdeps ]
2525MathOptInterface = " b8f27783-ece8-5eb3-8dc8-9495eed66fee"
26+ QuadraticModels = " f468eda6-eac5-11e8-05a5-ff9e497bcd19"
2627
2728[extensions ]
2829CoolPDLPMOIExt = " MathOptInterface"
30+ CoolPDLPQuadraticModelsExt = " QuadraticModels"
2931
3032[compat ]
3133Adapt = " 4.4.0"
@@ -37,6 +39,7 @@ KernelAbstractions = "0.9.38"
3739LinearAlgebra = " 1"
3840MathOptInterface = " 1"
3941Printf = " 1.11.0"
42+ QuadraticModels = " 0.9"
4043ProgressMeter = " 1.11.0"
4144QPSReader = " 0.2.1"
4245Random = " 1.11.0"
Original file line number Diff line number Diff line change 1+ module CoolPDLPQuadraticModelsExt
2+
3+ import SparseArrays: SparseMatrixCSC
4+ import QuadraticModels: AbstractQuadraticModel
5+ import CoolPDLP
6+
7+ function CoolPDLP. MILP (qm:: AbstractQuadraticModel ; ignore_islp = false , kwargs... )
8+ ignore_islp || @assert qm. meta. islp
9+
10+ return CoolPDLP. MILP (;
11+ c = qm. data. c,
12+ lv = qm. meta. lvar,
13+ uv = qm. meta. uvar,
14+ A = SparseMatrixCSC (qm. data. A),
15+ lc = qm. meta. lcon,
16+ uc = qm. meta. ucon,
17+ name = qm. meta. name,
18+ kwargs...
19+ )
20+ end
21+
22+ end # module
You can’t perform that action at this time.
0 commit comments