def pymoo2constr(pb):
    """
    Creates the list of the constraints relatives to the pymoo problem in argument.

    Parameters
    ----------
    pb : pymoo.problems
        Constrained pymoo problem to optimize.

    Returns
    -------
    list_con : list
        List of the callable constraints : ndarray[ne,nx] -> ndarray[ne].

    """
    list_con = []
    for i in range(pb.n_constr):

        def g_equiv(x, i=i):
            output = {}
            pb._evaluate(x, output)
            return output["G"][:, i]

        list_con.append(g_equiv)
    return list_con