Skip to content

Commit 54524d3

Browse files
committed
Update
1 parent f32be7c commit 54524d3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

test/MOI_wrapper.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,21 @@ function test_time_limit_secs()
326326
return
327327
end
328328

329+
function test_unsupported_objective()
330+
model = MOI.Utilities.Model{Float64}()
331+
x = MOI.add_variables(model, 3)
332+
f = MOI.Utilities.operate(vcat, Float64, 1.0 .* x...)
333+
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
334+
attr = MOI.ObjectiveFunction{MOI.VariableIndex}()
335+
MOI.set(model, attr, x[1])
336+
scs = SCS.Optimizer()
337+
@test_throws(
338+
MOI.UnsupportedAttribute{typeof(attr)},
339+
MOI.optimize!(scs, model),
340+
)
341+
return
342+
end
343+
329344
end # module
330345

331346
TestSCS.runtests()

test/test_gpu.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ include("test_problems.jl")
1717

1818
@testset "GpuIndirectSolver" begin
1919
@test SCS.is_available(SCS.GpuIndirectSolver)
20+
version = SCS.scs_version(SCS.GpuIndirectSolver)
21+
@test VersionNumber(version) >= v"3.2.0"
2022
feasible_basic_problems(SCS.GpuIndirectSolver)
2123
end

0 commit comments

Comments
 (0)