Skip to content

Commit

Permalink
minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Jul 14, 2022
1 parent bea8322 commit 9ea9134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mma.jl
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 9ea9134

Please sign in to comment.