forked from coin-or/Clp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminimum.cpp
More file actions
27 lines (26 loc) · 726 Bytes
/
minimum.cpp
File metadata and controls
27 lines (26 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include "ClpSimplex.hpp"
int main(int argc, const char *argv[])
{
ClpSimplex model;
int status;
if (argc < 2) {
#if defined(SAMPLEDIR)
/*
SAMPLEDIR should "path/to/Data/Sample"
Include the quotes and final path separator.
*/
status = model.readMps(SAMPLEDIR "/p0033.mps", true);
#else
fprintf(stderr, "Do not know where to find sample MPS files.\n");
exit(1);
#endif
} else
status = model.readMps(argv[1]);
if (!status) {
model.primal();
}
return 0;
}