Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Test/test_basic_constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ end

function _set(::Type{T}, ::Type{MOI.VectorNonlinearOracle}) where {T}
set = MOI.VectorNonlinearOracle(;
dimension = 3,
dimension = 4,
l = T[0, 0],
u = T[1, 0],
eval_f = (ret, x) -> begin
Expand All @@ -194,7 +194,8 @@ function _set(::Type{T}, ::Type{MOI.VectorNonlinearOracle}) where {T}
return
end,
)
x, ret_f, ret_J = T[1, 2, 3, 4, 5], T[0, 0], T[0, 0, 0, 0]
@assert MOI.dimension(set) == 4
x, ret_f, ret_J = T[1, 2, 3, 4], T[0, 0], T[0, 0, 0, 0]
set.eval_f(ret_f, x)
set.eval_jacobian(ret_J, x)
return set
Expand Down
4 changes: 2 additions & 2 deletions src/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2739,7 +2739,7 @@ do
julia> import MathOptInterface as MOI

julia> set = MOI.VectorNonlinearOracle(;
dimension = 3,
dimension = 4,
l = [0.0, 0.0],
u = [1.0, 0.0],
eval_f = (ret, x) -> begin
Expand All @@ -2766,7 +2766,7 @@ julia> set = MOI.VectorNonlinearOracle(;

julia> set
VectorNonlinearOracle{Float64}(;
dimension = 3,
dimension = 4,
l = [0.0, 0.0],
u = [1.0, 0.0],
...,
Expand Down
Loading