From 8b07eb535c9b46714c108f643ef11ca8af639565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sun, 17 May 2026 22:01:58 +0200 Subject: [PATCH] Fix basic tests with power cone --- src/Test/test_basic_constraint.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Test/test_basic_constraint.jl b/src/Test/test_basic_constraint.jl index 0d3788d009..f9d0030d66 100644 --- a/src/Test/test_basic_constraint.jl +++ b/src/Test/test_basic_constraint.jl @@ -117,8 +117,10 @@ _set(::Type{MOI.RotatedSecondOrderCone}) = MOI.RotatedSecondOrderCone(3) _set(::Type{MOI.GeometricMeanCone}) = MOI.GeometricMeanCone(3) _set(::Type{MOI.ExponentialCone}) = MOI.ExponentialCone() _set(::Type{MOI.DualExponentialCone}) = MOI.DualExponentialCone() -_set(::Type{MOI.PowerCone}) = MOI.PowerCone(0.5) -_set(::Type{MOI.DualPowerCone}) = MOI.DualPowerCone(0.5) +_set(::Type{T}, ::Type{MOI.PowerCone}) where {T} = MOI.PowerCone(T(1//2)) +function _set(::Type{T}, ::Type{MOI.DualPowerCone}) where {T} + return MOI.DualPowerCone(T(1//2)) +end _set(::Type{MOI.RelativeEntropyCone}) = MOI.RelativeEntropyCone(3) _set(::Type{MOI.NormSpectralCone}) = MOI.NormSpectralCone(2, 3) _set(::Type{MOI.NormNuclearCone}) = MOI.NormNuclearCone(2, 3)