Skip to content

Commit 6271c21

Browse files
committed
Update
1 parent e046a69 commit 6271c21

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

src/Test/Test.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,6 @@ function Base.isapprox(x, y, config::Config{T}) where {T}
351351
return Base.isapprox(x, y; atol = config.atol, rtol = config.rtol)
352352
end
353353

354-
function Base.isapprox(
355-
x::AbstractVector{T},
356-
y::AbstractVector{T},
357-
config::Config{T},
358-
) where {T}
359-
return length(x) == length(y) &&
360-
all(isapprox(xi, yi, config) for (xi, yi) in zip(x, y))
361-
end
362-
363354
"""
364355
_supports(config::Config, attribute::MOI.AnyAttribute)
365356

src/Test/test_nonlinear.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,12 +2290,13 @@ function setup_test(
22902290
mock -> MOI.Utilities.mock_optimize!(
22912291
mock,
22922292
config.optimal_status,
2293-
T[1, 2, 3, 1, 13],
2293+
T[1, 2, 3, 1, 31],
22942294
(MOI.VectorOfVariables, MOI.VectorNonlinearOracle{T}) =>
2295-
zeros(T, 5),
2295+
[zeros(T, 5)],
22962296
),
22972297
)
2298-
return
2298+
model.eval_variable_constraint_dual = false
2299+
return () -> model.eval_variable_constraint_dual = true
22992300
end
23002301

23012302
version_added(::typeof(test_vector_nonlinear_oracle)) = v"1.46.0"
@@ -2352,12 +2353,13 @@ function setup_test(
23522353
mock -> MOI.Utilities.mock_optimize!(
23532354
mock,
23542355
config.optimal_status,
2355-
T[1, 2, 3, 1, 13],
2356+
T[1, 2, 3, 1, 31],
23562357
(MOI.VectorOfVariables, MOI.VectorNonlinearOracle{T}) =>
2357-
zeros(T, 5),
2358+
[zeros(T, 5)],
23582359
),
23592360
)
2360-
return
2361+
model.eval_variable_constraint_dual = false
2362+
return () -> model.eval_variable_constraint_dual = true
23612363
end
23622364

23632365
version_added(::typeof(test_vector_nonlinear_oracle_no_hessian)) = v"1.46.0"

0 commit comments

Comments
 (0)