Skip to content

Commit 145f495

Browse files
Add solve
1 parent e85bdb3 commit 145f495

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/solve.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ function solve(prob::OptimizationProblem, alg, args...;
9898
end
9999
end
100100

101+
function SciMLBase.solve(prob::EnsembleProblem{T}, args...; kwargs...) where {T <: OptimizationProblem}
102+
return SciMLBase.__solve(prob, args...; kwargs...)
103+
end
104+
101105
function _check_opt_alg(prob::OptimizationProblem, alg; kwargs...)
102106
!allowsbounds(alg) && (!isnothing(prob.lb) || !isnothing(prob.ub)) &&
103107
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) does not support box constraints. Either remove the `lb` or `ub` bounds passed to `OptimizationProblem` or use a different algorithm."))

0 commit comments

Comments
 (0)