Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Dec 16, 2023
1 parent 11b8934 commit 46da3ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Base.@kwdef mutable struct Constraint{V}
end
end

Constraint(v::T, b::Int) where {T<:Value} = Constraint{T}(v, Float64(b))
Constraint(v::T, b::Int) where {T<:Value} = Constraint(v, Float64(b))
Constraint(v::T, b::Tuple{X,Y}) where {T<:Value,X<:Real,Y<:Real} =
Constraint{T}(v, Float64.(b))
Constraint(v, Float64.(b))

Base.:-(a::Constraint) = -1 * a
Base.:*(a::Real, b::Constraint) = b * a
Expand Down

0 comments on commit 46da3ec

Please sign in to comment.