Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 25, 2024
1 parent f32be7c commit 54524d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,21 @@ function test_time_limit_secs()
return
end

function test_unsupported_objective()
model = MOI.Utilities.Model{Float64}()
x = MOI.add_variables(model, 3)
f = MOI.Utilities.operate(vcat, Float64, 1.0 .* x...)
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
attr = MOI.ObjectiveFunction{MOI.VariableIndex}()
MOI.set(model, attr, x[1])
scs = SCS.Optimizer()
@test_throws(
MOI.UnsupportedAttribute{typeof(attr)},
MOI.optimize!(scs, model),
)
return
end

end # module

TestSCS.runtests()
2 changes: 2 additions & 0 deletions test/test_gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ include("test_problems.jl")

@testset "GpuIndirectSolver" begin
@test SCS.is_available(SCS.GpuIndirectSolver)
version = SCS.scs_version(SCS.GpuIndirectSolver)
@test VersionNumber(version) >= v"3.2.0"
feasible_basic_problems(SCS.GpuIndirectSolver)
end

0 comments on commit 54524d3

Please sign in to comment.