mpq_read_mps.c File Reference

#include "qs_config.h"
#include "mpq_iqsutil.h"
#include "mpq_rawlp.h"
#include "mpq_read_mps.h"
#include "mpq_read_lp.h"
#include "mpq_format.h"

Include dependency graph for mpq_read_mps.c:

Go to the source code of this file.

Defines

#define mpq_END_LINE(p)   (((*(p)) == '$' || (*(p)) == '\n' || (*(p)) == '\0') ? 1 : 0)

Functions

static char mpq_get_double (mpq_ILLread_mps_state *state, int peek, mpq_t *coef)
void mpq_ILLmps_check_end_of_line (mpq_ILLread_mps_state *state)
int mpq_ILLmps_empty_field (mpq_ILLread_mps_state *state)
int mpq_ILLmps_empty_key (mpq_ILLread_mps_state *state)
int mpq_ILLmps_error (mpq_ILLread_mps_state *state, const char *format,...)
int mpq_ILLmps_int_sos_mode (mpq_ILLread_mps_state *state)
int mpq_ILLmps_next_bound (mpq_ILLread_mps_state *state, mpq_t *coef)
int mpq_ILLmps_next_coef (mpq_ILLread_mps_state *state, mpq_t *coef)
int mpq_ILLmps_next_field (mpq_ILLread_mps_state *state)
static char mpq_ILLmps_next_field_is_number (mpq_ILLread_mps_state *state)
int mpq_ILLmps_next_line (mpq_ILLread_mps_state *state)
const char * mpq_ILLmps_possibly_blank_name (const char *field, mpq_ILLread_mps_state *state, ILLsymboltab *tab)
void mpq_ILLmps_set_end_of_line (mpq_ILLread_mps_state *state)
int mpq_ILLmps_set_section (mpq_ILLread_mps_state *state, const ILLmps_section sec)
int mpq_ILLmps_state_init (mpq_ILLread_mps_state *state, mpq_qsline_reader *file, const char *mpq_fname)
void mpq_ILLmps_warn (mpq_ILLread_mps_state *state, const char *format,...)
static void mpq_mps_err (mpq_ILLread_mps_state *state, int isError, const char *format, va_list args)
static int mpq_mps_skip_comment (mpq_ILLread_mps_state *state)

Variables

static int TRACE = 0


Define Documentation

#define mpq_END_LINE (  )     (((*(p)) == '$' || (*(p)) == '\n' || (*(p)) == '\0') ? 1 : 0)

Definition at line 42 of file mpq_read_mps.c.


Function Documentation

static char mpq_get_double ( mpq_ILLread_mps_state state,
int  peek,
mpq_t *  coef 
) [static]

Definition at line 186 of file mpq_read_mps.c.

References ILL_FAILfalse, ILL_RESULT, mpq_ILLget_value(), and mpq_mps_skip_comment().

Referenced by mpq_ILLmps_next_bound(), mpq_ILLmps_next_coef(), and mpq_ILLmps_next_field_is_number().

Here is the call graph for this function:

void mpq_ILLmps_check_end_of_line ( mpq_ILLread_mps_state state  ) 

Definition at line 306 of file mpq_read_mps.c.

References mpq_END_LINE, mpq_ILLmps_warn(), and mpq_mps_skip_comment().

Referenced by mpq_read_mps_line_in_section().

Here is the call graph for this function:

int mpq_ILLmps_empty_field ( mpq_ILLread_mps_state state  ) 

Definition at line 427 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::field.

Referenced by mpq_add_bounds(), mpq_add_col(), mpq_add_row(), mpq_ILLlib_readbasis(), mpq_mps_read_col_line(), mpq_read_mps_line_in_section(), mpq_read_mps_name(), mpq_read_mps_objnamesense(), and mpq_read_mps_refrow().

int mpq_ILLmps_empty_key ( mpq_ILLread_mps_state state  ) 

Definition at line 421 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::key.

Referenced by mpq_add_bounds(), mpq_add_col(), mpq_add_row(), mpq_ILLlib_readbasis(), mpq_ILLread_mps(), mpq_mps_read_col_line(), mpq_read_mps_line_in_section(), mpq_read_mps_objnamesense(), mpq_read_mps_refrow(), and mpq_read_mps_section().

int mpq_ILLmps_error ( mpq_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 491 of file mpq_read_mps.c.

References mpq_mps_err().

Referenced by mpq_add_bounds(), mpq_add_ranges(), mpq_add_rhs(), mpq_add_row(), mpq_check_section_order(), mpq_ILLlib_readbasis(), mpq_ILLmps_int_sos_mode(), mpq_ILLmps_set_section(), mpq_ILLread_mps(), mpq_mps_read_col_line(), mpq_mps_read_marker_line(), mpq_read_mps_line_in_section(), mpq_read_mps_objnamesense(), mpq_read_mps_objsense(), mpq_read_mps_refrow(), and mpq_read_mps_section().

Here is the call graph for this function:

int mpq_ILLmps_int_sos_mode ( mpq_ILLread_mps_state state  ) 

Definition at line 341 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::field, ILL_RESULT, mpq_ILLread_mps_state_struct::intvar, mpq_ILLmps_error(), and mpq_ILLread_mps_state_struct::sosvar.

Referenced by mpq_mps_read_marker_line().

Here is the call graph for this function:

int mpq_ILLmps_next_bound ( mpq_ILLread_mps_state state,
mpq_t *  coef 
)

Definition at line 224 of file mpq_read_mps.c.

References ILL_RESULT, ILL_RETURN, mpq_END_LINE, mpq_get_double(), mpq_ILL_MAXDOUBLE, mpq_ILL_MINDOUBLE, and mpq_mps_skip_comment().

Referenced by mpq_add_bounds().

Here is the call graph for this function:

int mpq_ILLmps_next_coef ( mpq_ILLread_mps_state state,
mpq_t *  coef 
)

Definition at line 211 of file mpq_read_mps.c.

References ILL_RESULT, mpq_get_double(), and mpq_mps_skip_comment().

Referenced by mpq_add_ranges(), mpq_add_rhs(), and mpq_mps_read_col_line().

Here is the call graph for this function:

int mpq_ILLmps_next_field ( mpq_ILLread_mps_state state  ) 

Definition at line 170 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::field, and mpq_mps_skip_comment().

Referenced by mpq_add_bounds(), mpq_add_ranges(), mpq_add_rhs(), mpq_add_row(), mpq_ILLlib_readbasis(), mpq_mps_read_col_line(), and mpq_mps_read_marker_line().

Here is the call graph for this function:

static char mpq_ILLmps_next_field_is_number ( mpq_ILLread_mps_state state  )  [static]

Definition at line 291 of file mpq_read_mps.c.

References mpq_get_double(), and mpq_mps_skip_comment().

Referenced by mpq_ILLmps_possibly_blank_name().

Here is the call graph for this function:

int mpq_ILLmps_next_line ( mpq_ILLread_mps_state state  ) 

Definition at line 80 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::field, mpq_ILLread_mps_state_struct::field_num, mpq_ILLread_mps_state_struct::file, ILL_FAILfalse, ILL_namebufsize, mpq_ILLread_mps_state_struct::key, mpq_ILLread_mps_state_struct::line, mpq_ILLread_mps_state_struct::line_num, mpq_ILL_ISBLANK, mpq_ILLline_reader_get, and mpq_ILLread_mps_state_struct::p.

Referenced by mpq_ILLlib_readbasis(), mpq_ILLread_mps(), mpq_read_mps_objnamesense(), and mpq_read_mps_refrow().

const char* mpq_ILLmps_possibly_blank_name ( const char *  field,
mpq_ILLread_mps_state state,
ILLsymboltab tab 
)

Definition at line 395 of file mpq_read_mps.c.

References ILLsymboltab_lookup(), and mpq_ILLmps_next_field_is_number().

Referenced by mpq_add_bounds(), mpq_add_ranges(), and mpq_add_rhs().

Here is the call graph for this function:

void mpq_ILLmps_set_end_of_line ( mpq_ILLread_mps_state state  ) 

Definition at line 318 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::p.

Referenced by mpq_add_bounds(), mpq_add_ranges(), and mpq_add_rhs().

int mpq_ILLmps_set_section ( mpq_ILLread_mps_state state,
const ILLmps_section  sec 
)

Definition at line 324 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::active, ILL_FAILfalse, ILL_MPS_NONE, ILL_RESULT, mpq_ILLmps_error(), mpq_ILLmps_section_name, and mpq_ILLread_mps_state_struct::section.

Referenced by mpq_read_mps_section().

Here is the call graph for this function:

int mpq_ILLmps_state_init ( mpq_ILLread_mps_state state,
mpq_qsline_reader file,
const char *  mpq_fname 
)

Definition at line 49 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::active, mpq_ILLread_mps_state_struct::field, mpq_ILLread_mps_state_struct::file, mpq_ILLread_mps_state_struct::file_name, ILL_FAILtrue, ILL_MPS_N_SECTIONS, ILL_MPS_NONE, ILL_RESULT, mpq_ILLread_mps_state_struct::intvar, mpq_ILLread_mps_state_struct::key, mpq_ILLread_mps_state_struct::line, mpq_ILLread_mps_state_struct::line_num, mpq_ILLread_mps_state_struct::obj, mpq_ILLread_mps_state_struct::p, mpq_ILLread_mps_state_struct::section, and mpq_ILLread_mps_state_struct::sosvar.

Referenced by mpq_ILLlib_readbasis(), and mpq_ILLread_mps().

void mpq_ILLmps_warn ( mpq_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 504 of file mpq_read_mps.c.

References mpq_mps_err().

Referenced by mpq_add_ranges(), mpq_add_rhs(), mpq_ILLlib_readbasis(), mpq_ILLmps_check_end_of_line(), mpq_ILLread_mps(), mpq_mps_set_bound(), and mpq_read_mps_name().

Here is the call graph for this function:

static void mpq_mps_err ( mpq_ILLread_mps_state state,
int  isError,
const char *  format,
va_list  args 
) [static]

Definition at line 433 of file mpq_read_mps.c.

References mpq_qsline_reader::error_collector, mpq_ILLread_mps_state_struct::file, mpq_ILLread_mps_state_struct::file_name, ILL_FAILfalse, ILL_FAILfalse_no_rval, mpq_ILLread_mps_state_struct::line, mpq_ILLread_mps_state_struct::line_num, mpq_ILLformat_error, mpq_ILLformat_error_create(), mpq_ILLformat_error_delete(), mpq_ILLread_mps_state_struct::p, QS_MPS_FORMAT_ERROR, and QS_MPS_FORMAT_WARN.

Referenced by mpq_ILLmps_error(), and mpq_ILLmps_warn().

Here is the call graph for this function:

static int mpq_mps_skip_comment ( mpq_ILLread_mps_state state  )  [static]

Definition at line 156 of file mpq_read_mps.c.

References mpq_ILLread_mps_state_struct::field_num, mpq_ILL_ISBLANK, and mpq_ILLread_mps_state_struct::p.

Referenced by mpq_get_double(), mpq_ILLmps_check_end_of_line(), mpq_ILLmps_next_bound(), mpq_ILLmps_next_coef(), mpq_ILLmps_next_field(), and mpq_ILLmps_next_field_is_number().


Variable Documentation

int TRACE = 0 [static]

Definition at line 40 of file mpq_read_mps.c.


Generated on Thu Mar 29 09:45:00 2012 for QSopt_ex by  doxygen 1.4.7