Skip to content

Commit

Permalink
Fix typo (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanneau authored Mar 1, 2021
1 parent 7198be0 commit 5993063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Interfaces/tulip_julia_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Set the lower bound of constraint `i` in model `m` to `lb`.
"""
function set_attribute(m::Model{T}, ::ConstraintLowerBound, i::Int, lb::T) where{T}
# sanity checks
1 <= i <= m.pbdata.nvar || error("Invalid constraint index $i")
1 <= i <= m.pbdata.ncon || error("Invalid constraint index $i")

# Update bound
m.pbdata.lcon[i] = lb
Expand All @@ -135,7 +135,7 @@ Set the upper bound of constraint `i` in model `m` to `ub`.
"""
function set_attribute(m::Model{T}, ::ConstraintUpperBound, i::Int, ub::T) where{T}
# sanity checks
1 <= i <= m.pbdata.nvar || error("Invalid constraint index $i")
1 <= i <= m.pbdata.ncon || error("Invalid constraint index $i")

# Update bound
m.pbdata.ucon[i] = ub
Expand Down

0 comments on commit 5993063

Please sign in to comment.