COIN-OR::LEMON - Graph Library

Ticket #255: 21148f69b6c7.patch

File 21148f69b6c7.patch, 1.3 KB (added by Balazs Dezso, 16 years ago)

Silent glp_adv_basis()

  • lemon/glpk.cc

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1238693396 -7200
    # Node ID 21148f69b6c7e6da942e2a3eb81335beca4a11a2
    # Parent  fc9e366e6759193639870b0673b5f8b618899185
    Silent glp_adv_basis()
    
    diff -r fc9e366e6759 -r 21148f69b6c7 lemon/glpk.cc
    a b  
    586586    case GLP_EBADB:
    587587    case GLP_ESING:
    588588    case GLP_ECOND:
    589       lpx_set_int_parm(lp, LPX_K_MSGLEV, smcp.msg_lev);
     589      glp_term_out(false);
    590590      glp_adv_basis(lp, 0);
     591      glp_term_out(true);
    591592      if (glp_simplex(lp, &smcp) != 0) return UNSOLVED;
    592593      break;
    593594    default:
     
    628629    case GLP_EBADB:
    629630    case GLP_ESING:
    630631    case GLP_ECOND:
    631       lpx_set_int_parm(lp, LPX_K_MSGLEV, smcp.msg_lev);
     632      glp_term_out(false);
    632633      glp_adv_basis(lp, 0);
     634      glp_term_out(true);
    633635      if (glp_simplex(lp, &smcp) != 0) return UNSOLVED;
    634636      break;
    635637    default:
     
    922924    case GLP_EBADB:
    923925    case GLP_ESING:
    924926    case GLP_ECOND:
    925       lpx_set_int_parm(lp, LPX_K_MSGLEV, smcp.msg_lev);
     927      glp_term_out(false);
    926928      glp_adv_basis(lp, 0);
     929      glp_term_out(true);
    927930      if (glp_simplex(lp, &smcp) != 0) return UNSOLVED;
    928931      break;
    929932    default: