Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions src/Bridges/Constraint/quad_to_soc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,15 @@ function bridge_constraint(
sparse(F.L), F.p
catch err
if err isa PosDefException
error(
"The optimizer supports second-order cone constraints and",
" not quadratic constraints but you entered a quadratic",
" constraint of type: `$(typeof(func))`-in-`$(typeof(set))`.",
" A bridge attempted to transform the quadratic constraint",
" to a second order cone constraint but the constraint is",
" not strongly convex, i.e., the symmetric matrix of",
" quadratic coefficients is not positive definite. Convex",
" constraints that are not strongly convex, i.e. the matrix is",
" positive semidefinite but not positive definite, are not",
" supported yet.",
)
error("""
Unable to transform a quadratic constraint into a second-order cone
constraint because the quadratic constraint is not strongly convex.

Convex constraints that are not strongly convex (i.e., the matrix is
positive semidefinite but not positive definite) are not supported
yet.

Note that a quadratic equality constraint is non-convex.""")
else
rethrow(err)
end
Expand Down