source: trunk/Clp/examples/minimum.cpp

Last change on this file was 1935, checked in by stefan, 5 years ago

fix compiler warnings; fix path to sample instance in minimum

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 737 bytes
Line 
1/* $Id: minimum.cpp 1935 2013-04-08 19:16:07Z forrest $ */
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.