File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,21 @@ function test_time_limit_secs()
326
326
return
327
327
end
328
328
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
+
329
344
end # module
330
345
331
346
TestSCS. runtests ()
Original file line number Diff line number Diff line change @@ -17,5 +17,7 @@ include("test_problems.jl")
17
17
18
18
@testset " GpuIndirectSolver" begin
19
19
@test SCS. is_available (SCS. GpuIndirectSolver)
20
+ version = SCS. scs_version (SCS. GpuIndirectSolver)
21
+ @test VersionNumber (version) >= v " 3.2.0"
20
22
feasible_basic_problems (SCS. GpuIndirectSolver)
21
23
end
You can’t perform that action at this time.
0 commit comments