@@ -22,6 +22,7 @@ function runtests()
2222end
2323
2424include (" utilities.jl" )
25+ include (" sdpa_models.jl" )
2526
2627function test_add_remove_has_bridges ()
2728 T = Int
@@ -309,106 +310,6 @@ function test_MOI_runtests_LPModel()
309310 return
310311end
311312
312- # Model similar to SDPA format, it gives a good example because it does not
313- # support a lot hence need a lot of bridges
314- MOI. Utilities. @model (
315- StandardSDPAModel,
316- (),
317- (MOI. EqualTo,),
318- (MOI. Nonnegatives, MOI. PositiveSemidefiniteConeTriangle),
319- (),
320- (),
321- (MOI. ScalarAffineFunction,),
322- (MOI. VectorOfVariables,),
323- ()
324- )
325-
326- function MOI. supports_constraint (
327- :: StandardSDPAModel{T} ,
328- :: Type{MOI.VariableIndex} ,
329- :: Type {
330- <: Union {
331- MOI. GreaterThan{T},
332- MOI. LessThan{T},
333- MOI. EqualTo{T},
334- MOI. Interval{T},
335- MOI. ZeroOne,
336- MOI. Integer,
337- },
338- },
339- ) where {T}
340- return false
341- end
342-
343- function MOI. supports_constraint (
344- :: StandardSDPAModel{T} ,
345- :: Type{MOI.VectorOfVariables} ,
346- :: Type{MOI.Reals} ,
347- ) where {T}
348- return false
349- end
350-
351- function MOI. supports_add_constrained_variables (
352- :: StandardSDPAModel ,
353- :: Type{<:Union{MOI.Nonnegatives,MOI.PositiveSemidefiniteConeTriangle}} ,
354- )
355- return true
356- end
357-
358- function MOI. supports_add_constrained_variables (
359- :: StandardSDPAModel ,
360- :: Type{MOI.Reals} ,
361- )
362- return false
363- end
364-
365- function MOI. supports (
366- :: StandardSDPAModel{T} ,
367- :: MOI.ObjectiveFunction {
368- <: Union{MOI.VariableIndex,MOI.ScalarQuadraticFunction{T}} ,
369- },
370- ) where {T}
371- return false
372- end
373-
374- MOI. Utilities. @model (
375- GeometricSDPAModel,
376- (),
377- (),
378- (MOI. Zeros, MOI. Nonnegatives, MOI. PositiveSemidefiniteConeTriangle),
379- (),
380- (),
381- (),
382- (),
383- (MOI. VectorAffineFunction,)
384- )
385-
386- function MOI. supports_constraint (
387- :: GeometricSDPAModel{T} ,
388- :: Type{MOI.VariableIndex} ,
389- :: Type {
390- <: Union {
391- MOI. GreaterThan{T},
392- MOI. LessThan{T},
393- MOI. EqualTo{T},
394- MOI. Interval{T},
395- MOI. ZeroOne,
396- MOI. Integer,
397- },
398- },
399- ) where {T}
400- return false
401- end
402-
403- function MOI. supports (
404- :: GeometricSDPAModel{T} ,
405- :: MOI.ObjectiveFunction {
406- <: Union{MOI.VariableIndex,MOI.ScalarQuadraticFunction{T}} ,
407- },
408- ) where {T}
409- return false
410- end
411-
412313function test_MOI_runtests_StandardSDPAModel ()
413314 model = StandardSDPAModel {Float64} ()
414315 bridged = MOI. Bridges. full_bridge_optimizer (model, Float64)
0 commit comments