reader.c File Reference

#include "reader.h"
#include "qstruct.h"
#include "iqsutil.h"
#include "qsopt.h"

Include dependency graph for reader.c:

Go to the source code of this file.

Functions

static int add_error (void *dest, QSformat_error error)
int main (int ac, char **av)
 main function, here we build the LP, execute the options and exit
static int parseargs (int ac, char **av)
QSLIB_INTERFACE int reader_main (int ac, char **av)
static void usage (char *s)

Variables

static char * fname = (char *) NULL
static int lpfile = 0
static char * out_lp = (char *) NULL
static char * out_mps = (char *) NULL
static int stats = 0
static int TEST_ERROR_COLLECTOR = 0
static int TEST_ERROR_MEMORY = 0
static int TRACE = 0


Function Documentation

static int add_error ( void *  dest,
QSformat_error  error 
) [static]

Definition at line 47 of file reader.c.

References NULL, QSerror_get_desc(), QSerror_get_line(), QSerror_get_line_number(), QSerror_get_pos(), QSerror_get_type(), and QSformat_error_type_string().

Referenced by reader_main().

Here is the call graph for this function:

int main ( int  ac,
char **  av 
)

main function, here we build the LP, execute the options and exit

Definition at line 278 of file reader.c.

References DUAL_SIMPLEX, load_test(), mpq_QSfree_prob(), mpq_QSget_colcount(), mpq_QSget_colnames(), mpq_QSget_objval(), mpq_QSget_pi_array(), mpq_QSget_rowcount(), mpq_QSget_rownames(), mpq_QSget_status(), mpq_QSget_x_array(), mpq_QSwrite_prob(), NULL, QS_LP_INFEASIBLE, QS_LP_MODIFIED, QS_LP_OPTIMAL, QS_LP_UNBOUNDED, QS_LP_UNSOLVED, QSexact_set_precision, QSexact_solver(), QSexactClear(), QSexactStart(), QSopt_ex_version(), and reader_main().

Here is the call graph for this function:

static int parseargs ( int  ac,
char **  av 
) [static]

Definition at line 225 of file reader.c.

References fname, ILLutil_bix_getopt(), lpfile, NULL, out_lp, out_mps, stats, TEST_ERROR_COLLECTOR, TEST_ERROR_MEMORY, TRACE, and usage().

Here is the call graph for this function:

QSLIB_INTERFACE int reader_main ( int  ac,
char **  av 
)

Definition at line 93 of file reader.c.

References add_error(), fname, ILL_CHECKnull, ILL_CLEANUP_IF, ILL_IFTRACE, ILLutil_init_timer(), ILLutil_start_timer(), ILLutil_stop_timer(), lpfile, NULL, out_lp, out_mps, parseargs(), QSerror_collector_free(), QSerror_collector_new(), QSerror_memory_collector_new(), QSerror_memory_create(), QSerror_memory_free(), QSerror_memory_get_last_error(), QSerror_memory_get_nerrors(), QSerror_memory_get_prev_error(), QSerror_print(), QSfree_prob(), QSget_colcount(), QSget_prob(), QSget_probname(), QSget_rowcount(), QSline_reader_free(), QSline_reader_new(), QSline_reader_set_error_collector(), QSread_prob(), QSwrite_prob(), stats, TEST_ERROR_COLLECTOR, and TEST_ERROR_MEMORY.

Referenced by main().

Here is the call graph for this function:

static void usage ( char *  s  )  [static]

Definition at line 211 of file reader.c.


Variable Documentation

char* fname = (char *) NULL [static]

Definition at line 34 of file reader.c.

int lpfile = 0 [static]

Definition at line 37 of file reader.c.

char* out_lp = (char *) NULL [static]

Definition at line 35 of file reader.c.

Referenced by parseargs(), and reader_main().

char* out_mps = (char *) NULL [static]

Definition at line 36 of file reader.c.

Referenced by parseargs(), and reader_main().

int stats = 0 [static]

Definition at line 38 of file reader.c.

Referenced by parseargs(), and reader_main().

int TEST_ERROR_COLLECTOR = 0 [static]

Definition at line 31 of file reader.c.

Referenced by parseargs(), and reader_main().

int TEST_ERROR_MEMORY = 0 [static]

Definition at line 32 of file reader.c.

Referenced by parseargs(), and reader_main().

int TRACE = 0 [static]

Definition at line 30 of file reader.c.


Generated on Thu Mar 29 09:48:27 2012 for QSopt_ex by  doxygen 1.4.7