Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Cbc_ampl.h
Go to the documentation of this file.
1 /* $Id: Cbc_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
11 typedef struct {
15  int numberIntegers; /* non binary */
16  int numberSos;
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;
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
int numberArguments
Definition: Cbc_ampl.h:18
int numberSos
Definition: Cbc_ampl.h:16
double * rowUpper
Definition: Cbc_ampl.h:25
int * rowStatus
Definition: Cbc_ampl.h:34
int * cut
Definition: Cbc_ampl.h:44
void writeAmpl(ampl_info *info)
char ** arguments
Definition: Cbc_ampl.h:46
int numberElements
Definition: Cbc_ampl.h:17
int readAmpl(ampl_info *info, int argc, char **argv, void **coinModel)
double * sosReference
Definition: Cbc_ampl.h:43
int numberRows
Definition: Cbc_ampl.h:12
int * special
Definition: Cbc_ampl.h:45
double * columnLower
Definition: Cbc_ampl.h:26
int * sosPriority
Definition: Cbc_ampl.h:40
double * rowLower
Definition: Cbc_ampl.h:24
int numberBinary
Definition: Cbc_ampl.h:14
int ampl_obj_prec()
double offset
Definition: Cbc_ampl.h:21
double * columnUpper
Definition: Cbc_ampl.h:27
int * rows
Definition: Cbc_ampl.h:29
double * elements
Definition: Cbc_ampl.h:30
int * priorities
Definition: Cbc_ampl.h:35
double objValue
Definition: Cbc_ampl.h:22
double direction
Definition: Cbc_ampl.h:20
void freeArgs(ampl_info *info)
double * pseudoUp
Definition: Cbc_ampl.h:38
double * dualSolution
Definition: Cbc_ampl.h:32
int numberIntegers
Definition: Cbc_ampl.h:15
int * sosStart
Definition: Cbc_ampl.h:41
double * objective
Definition: Cbc_ampl.h:23
int numberColumns
Definition: Cbc_ampl.h:13
int * columnStatus
Definition: Cbc_ampl.h:33
void freeArrays1(ampl_info *info)
int * sosIndices
Definition: Cbc_ampl.h:42
double * pseudoDown
Definition: Cbc_ampl.h:37
int * starts
Definition: Cbc_ampl.h:28
int problemStatus
Definition: Cbc_ampl.h:19
int * branchDirection
Definition: Cbc_ampl.h:36
char * sosType
Definition: Cbc_ampl.h:39
void freeArrays2(ampl_info *info)
int nonLinear
Definition: Cbc_ampl.h:49
int logLevel
Definition: Cbc_ampl.h:48
double * primalSolution
Definition: Cbc_ampl.h:31