Skip to content

Commit

Permalink
Move function to the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
dourouc05 committed May 14, 2021
1 parent acd622a commit 29b5aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/interface/instance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ function reward(i::CombinatorialInstance, var)
return i.rewards[var]
end

function reward(i::MinimumBudget, var)
return reward(i.instance, var)
end

"""
value(s::CombinatorialSolution)
Expand Down
4 changes: 4 additions & 0 deletions src/interface/variants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ of `i`).
"""
abstract type MultipleMinBudgetedSolution <: MinBudgetedSolution end

function reward(i::MinimumBudget, var)
return reward(i.instance, var)
end

# TODO: weight interface for a solution (like value).

# # Maximum budget.
Expand Down

0 comments on commit 29b5aab

Please sign in to comment.