# SOCP with Vector{GenericAffExpr}

Hi

Is it possible to add a SOCP constraint to Gurobi through JuMP using

`@constraint(model, vec in SecondOrderCone())`

where `vec` is a `Vector{GenericAffExpr{Float64,VariableRef}}` ?

I got the impression it is possible adding the bridge that allows `VectorAffineFunction` -in- `SOC` (as discussed here) but I don’t get how to add that bridge.

Best,

Michael.

1 Like

``````add_bridge(model, MOI.Bridges.Constraint.SOCtoNonConvexQuadBridge)