source: trunk/Samples/testBarrier.cpp @ 279

Last change on this file since 279 was 279, checked in by forrest, 15 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 736 bytes
Line 
1// Copyright (C) 2003, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#include "ClpInterior.hpp"
5#include "ClpSimplex.hpp"
6#include "ClpCholeskyWssmp.hpp"
7int main (int argc, const char *argv[])
8{
9  ClpInterior  model;
10  int status;
11  if (argc<2)
12    status=model.readMps("../../Mps/Sample/p0033.mps");
13  else
14    status=model.readMps(argv[1]);
15  if (status) {
16    printf("errors on input\n");
17    exit(77);
18  }
19  // ** note this does not have presolve
20  ClpCholeskyWssmp * cholesky = new ClpCholeskyWssmp();
21  model.setCholesky(cholesky);
22  model.primalDual();
23  // Do crossover
24  ClpSimplex model2(model);
25  // make sure no status left
26  model2.createStatus();
27  model2.primal(1);
28  return 0;
29}   
Note: See TracBrowser for help on using the repository browser.