This paper addresses the problem of determining the optimal location and operation of distribution static synchronous compensators (D-STATCOMs) in power distribution networks. Metaheuristic algorithms have been conventionally used to solve this mixed-integer nonlinear programming problem. In contrast, we propose a mixed-integer second-order cone programming (MI-SOCP) model that guarantees global optimum and fast convergence of the algorithms in optimization solvers. The model seeks to minimize the annual installation cost and the operating cost, subject to active and reactive power balance constraints, voltage regulation bounds, devices capabilities, and the number of D-STATCOMs available to be connected. The multiobjective nature of the problem is also analyzed and solved using the proposed MI-SOCP model. An extensive set of simulations on the IEEE-33 nodes test system demonstrate the advantages of this approach compared to conventional heuristic algorithms and with solutions given by algebraic modeling software.