source: stable/1.17/Clp/src/Clp_ampl.h @ 2439

Last change on this file since 2439 was 2385, checked in by unxusr, 10 months ago

formatting

File size: 1.6 KB
Line 
1/* $Id: Clp_ampl.h 1573 2011-01-05 01:12:36Z lou $ */
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
11typedef 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#if COIN_BIG_INDEX == 0
29  int *starts;
30#else
31  long unsigned int *starts;
32#endif
33  int *rows;
34  double *elements;
35  double *primalSolution;
36  double *dualSolution;
37  int *columnStatus;
38  int *rowStatus;
39  int *priorities;
40  int *branchDirection;
41  double *pseudoDown;
42  double *pseudoUp;
43  char *sosType;
44  int *sosPriority;
45  int *sosStart;
46  int *sosIndices;
47  double *sosReference;
48  int *cut;
49  int *special;
50  char **arguments;
51  char buffer[300];
52  int logLevel;
53  int nonLinear;
54} ampl_info;
55#ifdef __cplusplus
56extern "C" {
57#endif
58/* return nonzero if bad */
59int readAmpl(ampl_info *info, int argc, char **argv,
60  void **coinModel);
61/* frees some input arrays */
62void freeArrays1(ampl_info *info);
63/* frees rest */
64void freeArrays2(ampl_info *info);
65/* frees fake arguments */
66void freeArgs(ampl_info *info);
67/* writes ampl stuff */
68void writeAmpl(ampl_info *info);
69/* objective precision */
70int ampl_obj_prec();
71#ifdef __cplusplus
72}
73#endif
74#endif
75
76/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
77*/
Note: See TracBrowser for help on using the repository browser.