Clp 1.17.6

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Clp_ampl.h
Go to the documentation of this file.
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
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 #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
56 extern "C" {
57 #endif
58 /* return nonzero if bad */
59 int readAmpl(ampl_info *info, int argc, char **argv,
60 void **coinModel);
61 /* frees some input arrays */
62 void freeArrays1(ampl_info *info);
63 /* frees rest */
64 void freeArrays2(ampl_info *info);
65 /* frees fake arguments */
66 void freeArgs(ampl_info *info);
67 /* writes ampl stuff */
68 void writeAmpl(ampl_info *info);
69 /* objective precision */
70 int ampl_obj_prec();
71 #ifdef __cplusplus
72 }
73 #endif
74 #endif
75
76 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
77 */
ampl_info::numberArguments
int numberArguments
Definition: Clp_ampl.h:18
ampl_info::pseudoUp
double * pseudoUp
Definition: Clp_ampl.h:42
freeArrays2
void freeArrays2(ampl_info *info)
ampl_info::sosType
char * sosType
Definition: Clp_ampl.h:43
ampl_info::columnLower
double * columnLower
Definition: Clp_ampl.h:26
ampl_info::columnStatus
int * columnStatus
Definition: Clp_ampl.h:37
ampl_info::numberSos
int numberSos
Definition: Clp_ampl.h:16
ampl_info::rowLower
double * rowLower
Definition: Clp_ampl.h:24
ampl_info::sosReference
double * sosReference
Definition: Clp_ampl.h:47
ampl_info::priorities
int * priorities
Definition: Clp_ampl.h:39
ampl_info::numberElements
int numberElements
Definition: Clp_ampl.h:17
ampl_info::sosPriority
int * sosPriority
Definition: Clp_ampl.h:44
ampl_info::rows
int * rows
Definition: Clp_ampl.h:33
ampl_info::numberRows
int numberRows
Definition: Clp_ampl.h:12
ampl_info::primalSolution
double * primalSolution
Definition: Clp_ampl.h:35
ampl_info
Definition: Clp_ampl.h:11
ampl_info::numberBinary
int numberBinary
Definition: Clp_ampl.h:14
ampl_info::offset
double offset
Definition: Clp_ampl.h:21
ampl_info::dualSolution
double * dualSolution
Definition: Clp_ampl.h:36
ampl_info::rowStatus
int * rowStatus
Definition: Clp_ampl.h:38
ampl_info::starts
int * starts
Definition: Clp_ampl.h:29
ampl_info::pseudoDown
double * pseudoDown
Definition: Clp_ampl.h:41
ampl_obj_prec
int ampl_obj_prec()
freeArgs
void freeArgs(ampl_info *info)
ampl_info::branchDirection
int * branchDirection
Definition: Clp_ampl.h:40
ampl_info::elements
double * elements
Definition: Clp_ampl.h:34
ampl_info::cut
int * cut
Definition: Clp_ampl.h:48
ampl_info::objValue
double objValue
Definition: Clp_ampl.h:22
ampl_info::direction
double direction
Definition: Clp_ampl.h:20
ampl_info::arguments
char ** arguments
Definition: Clp_ampl.h:50
ampl_info::sosIndices
int * sosIndices
Definition: Clp_ampl.h:46
ampl_info::numberIntegers
int numberIntegers
Definition: Clp_ampl.h:15
ampl_info::objective
double * objective
Definition: Clp_ampl.h:23
ampl_info::columnUpper
double * columnUpper
Definition: Clp_ampl.h:27
ampl_info::rowUpper
double * rowUpper
Definition: Clp_ampl.h:25
ampl_info::numberColumns
int numberColumns
Definition: Clp_ampl.h:13
readAmpl
int readAmpl(ampl_info *info, int argc, char **argv, void **coinModel)
writeAmpl
void writeAmpl(ampl_info *info)
ampl_info::special
int * special
Definition: Clp_ampl.h:49
ampl_info::problemStatus
int problemStatus
Definition: Clp_ampl.h:19
ampl_info::nonLinear
int nonLinear
Definition: Clp_ampl.h:53
freeArrays1
void freeArrays1(ampl_info *info)
ampl_info::sosStart
int * sosStart
Definition: Clp_ampl.h:45
ampl_info::logLevel
int logLevel
Definition: Clp_ampl.h:52