/// <summary> /// Supprime les contraintes inactives /// </summary> /// <param name="tree">Arbre de recherche</param> private void remove_inactive(glp_tree tree) { int cnt; SWIGTYPE_p_int clist; cnt = inactive(tree, null); //Récupère les contraintes inactives if (cnt > 0) { clist = GLPK.new_intArray(cnt + 1); inactive(tree, clist); GLPK.glp_del_rows(problem, cnt, clist); //On supprime les contraintes inactives } }
private void remove_inactive(glp_tree tree) { /* remove inactive transitivity constraints */ int cnt; SWIGTYPE_p_int clist; cnt = inactive(tree, null); if (cnt > 0) { clist = GLPK.new_intArray(cnt + 1); inactive(tree, clist); GLPK.glp_del_rows(prob, cnt, clist); } }