Last change
on this file since 2127 was
1573,
checked in by lou, 9 years ago
|
Change to EPL license notice.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.6 KB
|
Line | |
---|
1 | /* $Id: Cbc_ampl.h 1573 2011-01-05 01:12:36Z forrest $ */ |
---|
2 | /* |
---|
3 | Copyright (C) 2006, International Business Machines Corporation and others. |
---|
4 | All Rights Reserved. |
---|
5 | |
---|
6 | This code is licensed under the terms of the Eclipse Public License (EPL). |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef AmplInterface_H |
---|
10 | #define AmplInterface_H |
---|
11 | typedef struct { |
---|
12 | int numberRows; |
---|
13 | int numberColumns; |
---|
14 | int numberBinary; |
---|
15 | int numberIntegers; /* non binary */ |
---|
16 | int numberSos; |
---|
17 | int numberElements; |
---|
18 | int numberArguments; |
---|
19 | int problemStatus; |
---|
20 | double direction; |
---|
21 | double offset; |
---|
22 | double objValue; |
---|
23 | double * objective; |
---|
24 | double * rowLower; |
---|
25 | double * rowUpper; |
---|
26 | double * columnLower; |
---|
27 | double * columnUpper; |
---|
28 | int * starts; |
---|
29 | int * rows; |
---|
30 | double * elements; |
---|
31 | double * primalSolution; |
---|
32 | double * dualSolution; |
---|
33 | int * columnStatus; |
---|
34 | int * rowStatus; |
---|
35 | int * priorities; |
---|
36 | int * branchDirection; |
---|
37 | double * pseudoDown; |
---|
38 | double * pseudoUp; |
---|
39 | char * sosType; |
---|
40 | int * sosPriority; |
---|
41 | int * sosStart; |
---|
42 | int * sosIndices; |
---|
43 | double * sosReference; |
---|
44 | int * cut; |
---|
45 | int * special; |
---|
46 | char ** arguments; |
---|
47 | char buffer[300]; |
---|
48 | int logLevel; |
---|
49 | int nonLinear; |
---|
50 | } ampl_info; |
---|
51 | #ifdef __cplusplus |
---|
52 | extern "C" { |
---|
53 | #endif |
---|
54 | /* return nonzero if bad */ |
---|
55 | int readAmpl(ampl_info * info, int argc, char ** argv, |
---|
56 | void ** coinModel); |
---|
57 | /* frees some input arrays */ |
---|
58 | void freeArrays1(ampl_info * info); |
---|
59 | /* frees rest */ |
---|
60 | void freeArrays2(ampl_info * info); |
---|
61 | /* frees fake arguments */ |
---|
62 | void freeArgs(ampl_info * info); |
---|
63 | /* writes ampl stuff */ |
---|
64 | void writeAmpl(ampl_info * info); |
---|
65 | /* objective precision */ |
---|
66 | int ampl_obj_prec(); |
---|
67 | #ifdef __cplusplus |
---|
68 | } |
---|
69 | #endif |
---|
70 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.