Changeset 1004 for branches


Ignore:
Timestamp:
May 9, 2007 5:53:21 AM (12 years ago)
Author:
forrest
Message:

for idiot

Location:
branches/devel/Clp/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Clp/src/ClpMain.cpp

    r1000 r1004  
    10601060                }
    10611061#else
    1062                 if (dualize) {
    1063                   ClpSimplex * model3 = ((ClpSimplexOther *) model2)->dualOfModel();
    1064                   printf("Dual of model has %d rows and %d columns\n",
    1065                          model3->numberRows(),model3->numberColumns());
    1066                   model3->writeMps(fileName.c_str(),(outputFormat-1)/2,1+((outputFormat-1)&1));
    1067                   delete model3;
    1068                 } else {
    1069                   model2->writeMps(fileName.c_str(),(outputFormat-1)/2,1+((outputFormat-1)&1));
    1070                 }
     1062                model2->writeMps(fileName.c_str(),(outputFormat-1)/2,1+((outputFormat-1)&1));
    10711063#endif
    10721064                if (deleteModel2)
  • branches/devel/Clp/src/Idiot.cpp

    r1003 r1004  
    838838          break;
    839839        }
     840        memcpy(colsol,saveSol,ncols*sizeof(double));
    840841      } else {
    841842        maxIts=maxIts2;
  • branches/devel/Clp/src/Idiot.hpp

    r987 r1004  
    180180
    181181  /// Does actual work
     182  // allow public!
     183public:
    182184  void solve2(CoinMessageHandler * handler,const CoinMessages *messages);
     185private:
    183186IdiotResult IdiSolve(
    184187                     int nrows, int ncols, double * rowsol , double * colsol,
Note: See TracChangeset for help on using the changeset viewer.