We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a75036b commit b6917fbCopy full SHA for b6917fb
1 file changed
lib/NonlinearSolveBase/src/bounds_transform.jl
@@ -103,8 +103,10 @@ SciMLBase.isinplace(w::BoundedWrapper{iip}) where {iip} = iip
103
104
# Check if bounds transform is needed for a given problem and algorithm.
105
function needs_bounds_transform(_prob, alg)
106
- return (_prob isa SciMLBase.NonlinearProblem ||
107
- _prob isa SciMLBase.NonlinearLeastSquaresProblem) &&
+ return (
+ _prob isa SciMLBase.NonlinearProblem ||
108
+ _prob isa SciMLBase.NonlinearLeastSquaresProblem
109
+ ) &&
110
(hasfield(typeof(_prob), :lb) && hasfield(typeof(_prob), :ub)) &&
111
(_prob.lb !== nothing || _prob.ub !== nothing) &&
112
(isnothing(alg) || !SciMLBase.allowsbounds(alg))
0 commit comments