Skip to content

Commit

Permalink
add hypercube restriction to FastLin according to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerarnon committed Nov 2, 2020
1 parent 703527f commit 2fa1071
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adversarial/fastLin.jl
Expand Up @@ -34,6 +34,8 @@ Sound but not complete.
end

function solve(solver::FastLin, problem::Problem)
@assert is_hypercube(problem.input)

ϵ_upper = 2 * max(solver.ϵ0, maximum(problem.input.radius))
ϵ = fill(maximum(problem.input.radius), solver.maxIter+1)
ϵ_lower = 0.0
Expand Down

0 comments on commit 2fa1071

Please sign in to comment.