Skip to content

Commit

Permalink
Update lib/OptimizationOptimJL/src/OptimizationOptimJL.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored May 17, 2024
1 parent 3d5d102 commit 4737e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationOptimJL/src/OptimizationOptimJL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function SciMLBase.__init(prob::OptimizationProblem,
if prob.f isa OptimizationFunction && !(prob.f.adtype isa NoAD)
opt = Optim.Fminbox(opt)
else
@warn "Fminbox($opt) requires gradients, since you didn't use `OptimizationFunction` with a valid AD backend https://docs.sciml.ai/Optimization/stable/API/ad/ the lower and upper bounds thus will be ignored."
throw(ArgumentError("Fminbox($opt) requires gradients, since you didn't use `OptimizationFunction` with a valid AD backend https://docs.sciml.ai/Optimization/stable/API/ad/ the lower and upper bounds thus will be ignored."))
end
end
end
Expand Down

0 comments on commit 4737e28

Please sign in to comment.