6060const QuadtoSOC{T,OT<: MOI.ModelLike } =
6161 SingleBridgeOptimizer{QuadtoSOCBridge{T},OT}
6262
63- function compute_sparse_sqrt_root_fallback (Q, :: F , :: S ) where {F,S}
63+ function compute_sparse_sqrt_fallback (Q, :: F , :: S ) where {F,S}
6464 msg = """
6565 Unable to transform a quadratic constraint into a SecondOrderCone
6666 constraint because the quadratic constraint is not strongly convex and
@@ -79,10 +79,10 @@ function compute_sparse_sqrt_root_fallback(Q, ::F, ::S) where {F,S}
7979 return throw (MOI. AddConstraintNotAllowed {F,S} (msg))
8080end
8181
82- function compute_sparse_sqrt_root (Q, func, set)
82+ function compute_sparse_sqrt (Q, func, set)
8383 factor = LinearAlgebra. cholesky (Q; check = false )
8484 if ! LinearAlgebra. issuccess (factor)
85- return compute_sparse_sqrt_root_fallback (Q, func, set)
85+ return compute_sparse_sqrt_fallback (Q, func, set)
8686 end
8787 L, p = SparseArrays. sparse (factor. L), factor. p
8888 # We have Q = P' * L * L' * P. We want to find Q = U' * U, so U = L' * P
@@ -117,7 +117,7 @@ function bridge_constraint(
117117 MOI. ScalarAffineTerm (scale * term. coefficient, term. variable),
118118 ) for term in func. affine_terms
119119 ]
120- I, J, V = compute_sparse_sqrt_root (LinearAlgebra. Symmetric (Q), func, set)
120+ I, J, V = compute_sparse_sqrt (LinearAlgebra. Symmetric (Q), func, set)
121121 for (i, j, v) in zip (I, J, V)
122122 push! (
123123 vector_terms,
0 commit comments