From 7a786890b6e29adf6b9528fc902a00f851609ea9 Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar Dixit Date: Sun, 2 Jun 2024 01:36:16 -0400 Subject: [PATCH] Update OptimizationPRIMA.jl --- lib/OptimizationPRIMA/src/OptimizationPRIMA.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/OptimizationPRIMA/src/OptimizationPRIMA.jl b/lib/OptimizationPRIMA/src/OptimizationPRIMA.jl index dfe67bdca..da620721f 100644 --- a/lib/OptimizationPRIMA/src/OptimizationPRIMA.jl +++ b/lib/OptimizationPRIMA/src/OptimizationPRIMA.jl @@ -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₂),