You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."))
149
-
requiresbounds(alg) &&isnothing(prob.lb) &&
150
-
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) requires box constraints. Either pass `lb` and `ub` bounds to `OptimizationProblem` or use a different algorithm."))
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) does not support constraints. Either remove the `cons` function passed to `OptimizationFunction` or use a different algorithm."))
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) does not support callbacks, remove the `callback` keyword argument from the `solve` call."))
162
-
requiresgradient(alg) &&!(prob.f isa AbstractOptimizationFunction) &&
163
-
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) requires gradients, hence use `OptimizationFunction` to generate them with an automatic differentiation backend e.g. `OptimizationFunction(f, AutoForwardDiff())` or pass it in with `grad` kwarg."))
164
-
requireshessian(alg) &&!(prob.f isa AbstractOptimizationFunction) &&
165
-
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) requires hessians, hence use `OptimizationFunction` to generate them with an automatic differentiation backend e.g. `OptimizationFunction(f, AutoFiniteDiff(); kwargs...)` or pass them in with `hess` kwarg."))
166
-
requiresconsjac(alg) &&!(prob.f isa AbstractOptimizationFunction) &&
167
-
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) requires constraint jacobians, hence use `OptimizationFunction` to generate them with an automatic differentiation backend e.g. `OptimizationFunction(f, AutoFiniteDiff(); kwargs...)` or pass them in with `cons` kwarg."))
168
-
requiresconshess(alg) &&!(prob.f isa AbstractOptimizationFunction) &&
169
-
throw(IncompatibleOptimizerError("The algorithm $(typeof(alg)) requires constraint hessians, hence use `OptimizationFunction` to generate them with an automatic differentiation backend e.g. `OptimizationFunction(f, AutoFiniteDiff(), AutoFiniteDiff(hess=true); kwargs...)` or pass them in with `cons` kwarg."))
170
-
return
171
-
end
172
-
173
-
const OPTIMIZER_MISSING_ERROR_MESSAGE ="""
174
-
Optimization algorithm not found. Either the chosen algorithm is not a valid solver
175
-
choice for the `OptimizationProblem`, or the Optimization solver library is not loaded.
176
-
Make sure that you have loaded an appropriate Optimization.jl solver library, for example,
177
-
`solve(prob,Optim.BFGS())` requires `using OptimizationOptimJL` and
0 commit comments