source: stable/1.14/Clp/examples/minimum.cpp @ 1669

Last change on this file since 1669 was 1662, checked in by lou, 9 years ago

Add EPL license notice in examples.

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