Skip to content

Commit 9f801b5

Browse files
committed
fixed parameter typing for zero(T)
1 parent 0d4fd13 commit 9f801b5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/psplit.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ function _bound_auxiliary(
6262
v::JuMP.AbstractVariableRef,
6363
func::JuMP.GenericAffExpr{T,V},
6464
method::PSplit
65-
) where {M <: JuMP.AbstractModel}
66-
T = JuMP.value_type(M)
65+
) where {M <: JuMP.AbstractModel, T, V}
6766

6867
lower_bound = has_lower_bound(v) ? lower_bound(v) : zero(T)
6968
upper_bound = has_upper_bound(v) ? upper_bound(v) : zero(T)
@@ -103,8 +102,7 @@ function _bound_auxiliary(
103102
v::JuMP.AbstractVariableRef,
104103
func::JuMP.GenericQuadExpr{T,V},
105104
method::PSplit
106-
) where {M <: JuMP.AbstractModel}
107-
T = JuMP.value_type(M)
105+
) where {M <: JuMP.AbstractModel, T, V}
108106

109107
# Handle linear terms
110108
_bound_auxiliary(model, v, func.aff, method)

0 commit comments

Comments
 (0)