Changeset 1595 for trunk/Clp/test


Ignore:
Timestamp:
Aug 28, 2010 9:03:22 PM (9 years ago)
Author:
lou
Message:

Remove setObjectiveAndRefresh. Make getReducedGradient const. A few other
minor tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/test/OsiClpSolverInterfaceTest.cpp

    r1559 r1595  
    11751175    m.initialSolve();
    11761176  }
     1177# if 0
     1178/*
     1179  This section stops working without setObjectiveAndRefresh. Assertion failure
     1180  down in the guts of clp, likely due to reduced costs not properly updated.
     1181  Leave the code in for a bit so it's easily recoverable if anyone actually
     1182  yells about the loss. There was no response to a public announcement
     1183  of intent to delete, but sometimes it takes a whack on the head to get
     1184  peoples' attention. At some point, it'd be good to come back through and
     1185  make this work again. -- lh, 100828 --
     1186*/
    11771187  // Do parametrics on the objective by hand
    1178   {   
     1188  {
     1189    std::cout << " Beginning Osi Simplex mode 2 ... " << std::endl ;
    11791190    OsiClpSolverInterface m;
    11801191    std::string fn = mpsDir+"p0033";
     
    12071218    double totalDone=0.0;
    12081219    while (true) {
     1220      std::cout << " Starting iterations ... " << std::endl ;
    12091221      // Save current
    12101222      // (would be more accurate to start from scratch)
     
    12921304    delete [] djsNow;
    12931305    // exit special mode
     1306    std::cout << " Finished simplex mode 2 ; checking result." << std::endl ;
    12941307    m.disableSimplexInterface();
    12951308    simplex->messageHandler()->setLogLevel(4);
     
    12971310    assert (!m.getIterationCount());
    12981311  }
     1312# endif
    12991313  // Solve an lp when interface is on
    13001314  {   
Note: See TracChangeset for help on using the changeset viewer.