source: branches/sandbox/Cbc/src/Cbc_ampl.h @ 1273

Last change on this file since 1273 was 1271, checked in by forrest, 10 years ago

Creating new stable branch 2.4 from trunk (rev 1270)

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