Skip to content

Commit

Permalink
feat: Add warning for using optimal path
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh2 committed Apr 17, 2023
1 parent 1629de7 commit 0ced47f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/opt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ julia> xs, nonzeros, profits = AllocationOpt.optimize(
```
"""
function optimize(::Val{:optimal}, Ω, ψ, σ, K, Φ, Ψ, g)
@warn "This uses the pairwise greedy algorithm, which is currently experimental."

# Helper function to compute profit
obj = x -> profit.(indexingreward.(x, Ω, ψ, Φ, Ψ), g) |> sum

Expand Down

0 comments on commit 0ced47f

Please sign in to comment.