'Formats EXP constraints 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):

    if (solver.name() == s.CVXOPT):
        eq_constr += self.__CVXOPT_format[0]
    elif (solver.name() in [s.SCS, s.JULIA_OPT]):
        leq_constr += self.__SCS_format[1]
    elif (solver.name() == s.ECOS):
        leq_constr += self.__ECOS_format[1]
    else:
        raise SolverError('Solver    does    not    support    exponential    cone.')
    dims[s.EXP_DIM] += (self.size[0] * self.size[1])
