public  Planning suggererProduction(ArrayPlanning listPlanning)
    {
        ArrayPlanning t=new ArrayPlanning();
        ArrayPlanning j=new ArrayPlanning();
        while(true)
        {
            for(Planning planning:listPlanning.getList())
            {
                if(planning.getNbKanban()>=planning.getIndexRouge())
                {
                    t.ajouterPlanning(planning);
                }
                else if(planning.getNbKanban()<planning.getIndexRouge()) 
                {
                    j.ajouterPlanning(planning);
                }
            }
            if(!t.getList().isEmpty())
            {
                return chercherPlusCritique(t);
            }
            else if(!j.getList().isEmpty())
            {
                return chercherPlusCritique(j);
            }
        }
    }