Skip to content

Commit 1094f62

Browse files
committed
allow vectors of subtypes of ConstraintRef
1 parent aed5df9 commit 1094f62

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/incidence_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function get_bipartite_incidence_graph(constraints::Vector{JuMP.ConstraintRef})
117117
end
118118

119119
function get_bipartite_incidence_graph(
120-
constraints::Vector{JuMP.ConstraintRef},
120+
constraints::Vector{<:JuMP.ConstraintRef},
121121
variables::Vector{JuMP.VariableRef},
122122
)
123123
ncon = length(constraints)

src/incidence_matrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ between the provided constraints and variables.
3838
Rows correspond to constraints and columns correspond to varibales.
3939
"""
4040
function incidence_matrix(
41-
constraints::Vector{JuMP.ConstraintRef},
41+
constraints::Vector{<:JuMP.ConstraintRef},
4242
variables::Vector{JuMP.VariableRef},
4343
)::SparseArrays.SparseMatrixCSC
4444
graph, con_node_map, var_node_map = get_bipartite_incidence_graph(

src/interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ IncidenceGraphInterface(
119119

120120

121121
IncidenceGraphInterface(
122-
constraints::Vector{JuMP.ConstraintRef},
122+
constraints::Vector{<:JuMP.ConstraintRef},
123123
variables::Vector{JuMP.VariableRef},
124124
) = IncidenceGraphInterface(
125125
get_bipartite_incidence_graph(constraints, variables)

0 commit comments

Comments
 (0)