source: stable/1.13/Clp/examples/minimum.cpp @ 1898

Last change on this file since 1898 was 1649, checked in by stefan, 9 years ago

sync with trunk rev1648, except for half of chgset1635 and except for chgset1643

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 659 bytes
Line 
1/* $Id: minimum.cpp 1649 2010-12-19 17:25:22Z stefan $ */
2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
4
5#include "ClpSimplex.hpp"
6int main(int argc, const char *argv[])
7{
8     ClpSimplex  model;
9     int status;
10     if (argc < 2) {
11#if defined(SAMPLEDIR)
12/*
13  SAMPLEDIR should "path/to/Data/Sample/"
14  Include the quotes and final path separator.
15*/
16          status = model.readMps(SAMPLEDIR "p0033.mps", true);
17#else
18          fprintf(stderr, "Do not know where to find sample MPS files.\n");
19          exit(1);
20#endif
21     } else
22          status = model.readMps(argv[1]);
23     if (!status) {
24          model.primal();
25     }
26     return 0;
27}
Note: See TracBrowser for help on using the repository browser.