File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 136
136
"""
137
137
struct ListOfNonstandardBridges{T} <: MOI.AbstractOptimizerAttribute end
138
138
139
- attribute_value_type (:: ListOfNonstandardBridges ) = Vector{Type}
139
+ MOI . attribute_value_type (:: ListOfNonstandardBridges ) = Vector{Type}
140
140
141
141
MOI. is_copyable (:: ListOfNonstandardBridges ) = false
142
142
Original file line number Diff line number Diff line change @@ -1978,16 +1978,20 @@ function MOI.get(
1978
1978
:: OptimizerWithBridgeListOfNonstandardBridges ,
1979
1979
:: MOI.Bridges.ListOfNonstandardBridges{T} ,
1980
1980
) where {T}
1981
- return [BridgeListOfNonstandardBridges{T}]
1981
+ return Type [BridgeListOfNonstandardBridges{T}]
1982
1982
end
1983
1983
1984
- function test_toadd ()
1984
+ function test_ListOfNonstandardBridges ()
1985
1985
b = MOI. Bridges. full_bridge_optimizer (
1986
1986
OptimizerWithBridgeListOfNonstandardBridges (),
1987
1987
Int,
1988
1988
)
1989
1989
@test MOI. Bridges. has_bridge (b, BridgeListOfNonstandardBridges{Int})
1990
1990
@test ! MOI. Bridges. has_bridge (b, BridgeListOfNonstandardBridges{Float64})
1991
+ attr = MOI. Bridges. ListOfNonstandardBridges {Int} ()
1992
+ ret = MOI. get (b, attr)
1993
+ @test ret isa MOI. attribute_value_type (attr)
1994
+ return
1991
1995
end
1992
1996
1993
1997
function test_hermitian (T = Float64)
You can’t perform that action at this time.
0 commit comments