Skip to content

Commit

Permalink
document owner_model for AbstractVariableRef
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Sep 23, 2018
1 parent e1d6a51 commit 19d0db4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ end

# owner_model should be implemented by all `AbstractVariableRef`.
"""
owner_model(v::VariableRef)
owner_model(v::AbstractVariableRef)
Returns the model to which `v` belongs.
Expand All @@ -115,6 +115,8 @@ julia> x = @variable(model)
julia> JuMP.owner_model(x) === model
true
"""
function owner_model end

owner_model(v::VariableRef) = v.model

Base.iszero(::VariableRef) = false
Expand Down

0 comments on commit 19d0db4

Please sign in to comment.