From 9ea9134fe51c5a8b0b6b6448bc7e0b5f79b0ac1c Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Thu, 14 Jul 2022 23:25:10 +1000 Subject: [PATCH] minor test fixes --- test/mma.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mma.jl b/test/mma.jl index 183f026..0b57af9 100755 --- a/test/mma.jl +++ b/test/mma.jl @@ -1,6 +1,6 @@ using NonconvexMMA, LinearAlgebra, Test, Zygote -f(x::AbstractVector) = sqrt(x[2]) +f(x::AbstractVector) = x[2] < 0 ? Inf : sqrt(x[2]) g(x::AbstractVector, a, b) = (a*x[1] + b)^3 - x[2] options = MMAOptions(