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 72eef92 commit 7a78689
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/OptimizationPRIMA/src/OptimizationPRIMA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,8 @@ function SciMLBase.__solve(cache::Optimization.OptimizationCache{
b₁ = cache.lcons[lineqsinds]
A₂ = J[linineqsinds, :]
b₂ = cache.ucons[linineqsinds]
function fwcons(θ, res)
nonlincons(res, θ)
return _loss(θ)
end
(minx, inf) = optfunc(fwcons,

(minx, inf) = optfunc(_loss,
cache.u0;
linear_eq = (A₁, b₁),
linear_ineq = (A₂, b₂),
Expand Down

0 comments on commit 7a78689

Please sign in to comment.