From 792cd12836235698cec6c98e10a50a2f9e118add Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 20 Feb 2025 17:18:01 +1300 Subject: [PATCH] Update model.jl --- test/Utilities/model.jl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/Utilities/model.jl b/test/Utilities/model.jl index 142e6dee5f..62d5d57a7e 100644 --- a/test/Utilities/model.jl +++ b/test/Utilities/model.jl @@ -595,15 +595,16 @@ function test_constraints_invalid_index() return end +MOI.Utilities.@struct_of_constraints_by_set_types( + Set4802, + Union{MOI.LessThan{T},MOI.GreaterThan{T}}, + MOI.EqualTo{T}, + MOI.ZeroOne, + Int, +) + function test_struct_of_constraints_by_set_types() - MOI.Utilities.@struct_of_constraints_by_set_types( - MySet1, - Union{MOI.LessThan{T},MOI.GreaterThan{T}}, - MOI.EqualTo{T}, - MOI.ZeroOne, - Int, - ) - set = MySet1{Float64,Vector{Float64},Vector{Float64},Vector{Bool},Int}() + set = Set4802{Float64,Vector{Float64},Vector{Float64},Vector{Bool},Int}() @test set.num_variables == 0 @test set.int === nothing set.int = 1