'Formats SDP constraints as inequalities for the solver.
Parameters
eq_constr : list
A list of the equality constraints in the canonical problem.
leq_constr : list
A list of the inequality constraints in the canonical problem.
dims : dict
A dict with the dimensions of the conic constraints.
solver : str
The solver being called.'

def format(self, eq_constr, leq_constr, dims, solver):

    new_eq = self.__format[0]
    if new_eq:
        eq_constr += new_eq
        dims[s.EQ_DIM] += (self.size[0] * self.size[1])
    bool_id = lu.get_expr_vars(self.noncvx_var)[0][0]
    dims[self.CONSTR_TYPE].append(bool_id)
