source: branches/devel/Cbc/src/Cbc_ampl.h @ 523

Last change on this file since 523 was 523, checked in by forrest, 12 years ago

nonlinear stuff

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