Loading...
Searching...
No Matches
Clp_ampl.h
Go to the documentation of this file.
/* $Id: Clp_ampl.h 1573 2011-01-05 01:12:36Z lou $ */
/*
Copyright (C) 2006, International Business Machines Corporation and others.
All Rights Reserved.
This code is licensed under the terms of the Eclipse Public License (EPL).
*/
#ifndef AmplInterface_H
#define AmplInterface_H
typedef struct {
int numberRows;
int numberColumns;
int numberBinary;
int numberIntegers; /* non binary */
int numberSos;
int numberElements;
int numberArguments;
int problemStatus;
double direction;
double offset;
double objValue;
double *objective;
double *rowLower;
double *rowUpper;
double *columnLower;
double *columnUpper;
#if COIN_BIG_INDEX == 0
int *starts;
#else
long unsigned int *starts;
#endif
int *rows;
double *elements;
double *primalSolution;
double *dualSolution;
int *columnStatus;
int *rowStatus;
int *priorities;
int *branchDirection;
double *pseudoDown;
double *pseudoUp;
char *sosType;
int *sosPriority;
int *sosStart;
int *sosIndices;
double *sosReference;
int *cut;
int *special;
char **arguments;
char buffer[300];
int logLevel;
int nonLinear;
} ampl_info;
#ifdef __cplusplus
extern "C" {
#endif
/* return nonzero if bad */
int readAmpl(ampl_info *info, int argc, char **argv,
void **coinModel);
/* frees some input arrays */
void freeArrays1(ampl_info *info);
/* frees rest */
void freeArrays2(ampl_info *info);
/* frees fake arguments */
void freeArgs(ampl_info *info);
/* writes ampl stuff */
void writeAmpl(ampl_info *info);
/* objective precision */
int ampl_obj_prec();
#ifdef __cplusplus
}
#endif
#endif
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
readAmpl
int readAmpl(ampl_info *info, int argc, char **argv, void **coinModel)
freeArgs
void freeArgs(ampl_info *info)
freeArrays1
void freeArrays1(ampl_info *info)
writeAmpl
void writeAmpl(ampl_info *info)
ampl_obj_prec
int ampl_obj_prec()
freeArrays2
void freeArrays2(ampl_info *info)
ampl_info
Definition Clp_ampl.h:11
ampl_info::pseudoDown
double * pseudoDown
Definition Clp_ampl.h:41
ampl_info::numberIntegers
int numberIntegers
Definition Clp_ampl.h:15
ampl_info::pseudoUp
double * pseudoUp
Definition Clp_ampl.h:42
ampl_info::objective
double * objective
Definition Clp_ampl.h:23
ampl_info::rows
int * rows
Definition Clp_ampl.h:33
ampl_info::columnLower
double * columnLower
Definition Clp_ampl.h:26
ampl_info::primalSolution
double * primalSolution
Definition Clp_ampl.h:35
ampl_info::starts
int * starts
Definition Clp_ampl.h:29
ampl_info::arguments
char ** arguments
Definition Clp_ampl.h:50
ampl_info::cut
int * cut
Definition Clp_ampl.h:48
ampl_info::priorities
int * priorities
Definition Clp_ampl.h:39
ampl_info::objValue
double objValue
Definition Clp_ampl.h:22
ampl_info::rowStatus
int * rowStatus
Definition Clp_ampl.h:38
ampl_info::numberRows
int numberRows
Definition Clp_ampl.h:12
ampl_info::buffer
char buffer[300]
Definition Clp_ampl.h:51
ampl_info::offset
double offset
Definition Clp_ampl.h:21
ampl_info::sosIndices
int * sosIndices
Definition Clp_ampl.h:46
ampl_info::special
int * special
Definition Clp_ampl.h:49
ampl_info::numberBinary
int numberBinary
Definition Clp_ampl.h:14
ampl_info::sosStart
int * sosStart
Definition Clp_ampl.h:45
ampl_info::rowUpper
double * rowUpper
Definition Clp_ampl.h:25
ampl_info::direction
double direction
Definition Clp_ampl.h:20
ampl_info::dualSolution
double * dualSolution
Definition Clp_ampl.h:36
ampl_info::rowLower
double * rowLower
Definition Clp_ampl.h:24
ampl_info::problemStatus
int problemStatus
Definition Clp_ampl.h:19
ampl_info::columnUpper
double * columnUpper
Definition Clp_ampl.h:27
ampl_info::sosType
char * sosType
Definition Clp_ampl.h:43
ampl_info::sosPriority
int * sosPriority
Definition Clp_ampl.h:44
ampl_info::numberArguments
int numberArguments
Definition Clp_ampl.h:18
ampl_info::nonLinear
int nonLinear
Definition Clp_ampl.h:53
ampl_info::sosReference
double * sosReference
Definition Clp_ampl.h:47
ampl_info::numberElements
int numberElements
Definition Clp_ampl.h:17
ampl_info::elements
double * elements
Definition Clp_ampl.h:34
ampl_info::numberSos
int numberSos
Definition Clp_ampl.h:16
ampl_info::logLevel
int logLevel
Definition Clp_ampl.h:52
ampl_info::branchDirection
int * branchDirection
Definition Clp_ampl.h:40
ampl_info::columnStatus
int * columnStatus
Definition Clp_ampl.h:37
ampl_info::numberColumns
int numberColumns
Definition Clp_ampl.h:13