Skip to content

Commit

Permalink
Update OptimizationPRIMA.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Jun 2, 2024
1 parent 544a322 commit 72eef92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationPRIMA/src/OptimizationPRIMA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function SciMLBase.__solve(cache::Optimization.OptimizationCache{
cache.u0;
linear_eq = (A₁, b₁),
linear_ineq = (A₂, b₂),
nonlinear_ineq = length(nonlininds),
nonlinear_ineq = x -> (res = zeros(eltype(x), length(nonlininds)); nonlincons(res, x); res),
kws...)
else
(minx, inf) = optfunc(_loss, cache.u0; kws...)
Expand Down

0 comments on commit 72eef92

Please sign in to comment.