Ignore:
Timestamp:
May 24, 2010 9:03:59 PM (9 years ago)
Author:
mjs
Message:

Format examples with 'astyle -A4 -p'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/examples/testBarrier.cpp

    r1370 r1552  
    99int main (int argc, const char *argv[])
    1010{
    11   ClpInterior  model;
    12   int status;
    13   if (argc<2)
    14     status=model.readMps("../../Data/Sample/p0033.mps");
    15   else
    16     status=model.readMps(argv[1]);
    17   if (status) {
    18     printf("errors on input\n");
    19     exit(77);
    20   }
    21   // ** note this does not have presolve
     11     ClpInterior  model;
     12     int status;
     13     if (argc < 2)
     14          status = model.readMps("../../Data/Sample/p0033.mps");
     15     else
     16          status = model.readMps(argv[1]);
     17     if (status) {
     18          printf("errors on input\n");
     19          exit(77);
     20     }
     21     // ** note this does not have presolve
    2222#ifdef WSSMP_BARRIER
    23   ClpCholeskyWssmp * cholesky = new ClpCholeskyWssmp();
     23     ClpCholeskyWssmp * cholesky = new ClpCholeskyWssmp();
    2424#else
    25   ClpCholeskyDense * cholesky = new ClpCholeskyDense();
     25     ClpCholeskyDense * cholesky = new ClpCholeskyDense();
    2626#endif
    27   model.setCholesky(cholesky);
    28   model.primalDual();
    29   // Do crossover
    30   ClpSimplex model2(model);
    31   // make sure no status left
    32   model2.createStatus();
    33   model2.primal(1);
    34   return 0;
    35 }   
     27     model.setCholesky(cholesky);
     28     model.primalDual();
     29     // Do crossover
     30     ClpSimplex model2(model);
     31     // make sure no status left
     32     model2.createStatus();
     33     model2.primal(1);
     34     return 0;
     35}
Note: See TracChangeset for help on using the changeset viewer.