float128_read_mps.c File Reference

#include "qs_config.h"
#include "float128_iqsutil.h"
#include "float128_rawlp.h"
#include "float128_read_mps.h"
#include "float128_read_lp.h"
#include "float128_format.h"

Include dependency graph for float128_read_mps.c:

Go to the source code of this file.

Defines

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

Functions

static char float128_get_double (float128_ILLread_mps_state *state, int peek, float128 *coef)
void float128_ILLmps_check_end_of_line (float128_ILLread_mps_state *state)
int float128_ILLmps_empty_field (float128_ILLread_mps_state *state)
int float128_ILLmps_empty_key (float128_ILLread_mps_state *state)
int float128_ILLmps_error (float128_ILLread_mps_state *state, const char *format,...)
int float128_ILLmps_int_sos_mode (float128_ILLread_mps_state *state)
int float128_ILLmps_next_bound (float128_ILLread_mps_state *state, float128 *coef)
int float128_ILLmps_next_coef (float128_ILLread_mps_state *state, float128 *coef)
int float128_ILLmps_next_field (float128_ILLread_mps_state *state)
static char float128_ILLmps_next_field_is_number (float128_ILLread_mps_state *state)
int float128_ILLmps_next_line (float128_ILLread_mps_state *state)
const char * float128_ILLmps_possibly_blank_name (const char *field, float128_ILLread_mps_state *state, ILLsymboltab *tab)
void float128_ILLmps_set_end_of_line (float128_ILLread_mps_state *state)
int float128_ILLmps_set_section (float128_ILLread_mps_state *state, const ILLmps_section sec)
int float128_ILLmps_state_init (float128_ILLread_mps_state *state, float128_qsline_reader *file, const char *float128_fname)
void float128_ILLmps_warn (float128_ILLread_mps_state *state, const char *format,...)
static void float128_mps_err (float128_ILLread_mps_state *state, int isError, const char *format, va_list args)
static int float128_mps_skip_comment (float128_ILLread_mps_state *state)

Variables

static int TRACE = 0


Define Documentation

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

Definition at line 42 of file float128_read_mps.c.


Function Documentation

static char float128_get_double ( float128_ILLread_mps_state state,
int  peek,
float128 *  coef 
) [static]

Definition at line 186 of file float128_read_mps.c.

References float128_ILLget_value(), float128_mps_skip_comment(), ILL_FAILfalse, and ILL_RESULT.

Referenced by float128_ILLmps_next_bound(), float128_ILLmps_next_coef(), and float128_ILLmps_next_field_is_number().

Here is the call graph for this function:

void float128_ILLmps_check_end_of_line ( float128_ILLread_mps_state state  ) 

Definition at line 306 of file float128_read_mps.c.

References float128_END_LINE, float128_ILLmps_warn(), and float128_mps_skip_comment().

Referenced by float128_read_mps_line_in_section().

Here is the call graph for this function:

int float128_ILLmps_empty_field ( float128_ILLread_mps_state state  ) 

Definition at line 427 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::field.

Referenced by float128_add_bounds(), float128_add_col(), float128_add_row(), float128_ILLlib_readbasis(), float128_mps_read_col_line(), float128_read_mps_line_in_section(), float128_read_mps_name(), float128_read_mps_objnamesense(), and float128_read_mps_refrow().

int float128_ILLmps_empty_key ( float128_ILLread_mps_state state  ) 

Definition at line 421 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::key.

Referenced by float128_add_bounds(), float128_add_col(), float128_add_row(), float128_ILLlib_readbasis(), float128_ILLread_mps(), float128_mps_read_col_line(), float128_read_mps_line_in_section(), float128_read_mps_objnamesense(), float128_read_mps_refrow(), and float128_read_mps_section().

int float128_ILLmps_error ( float128_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 491 of file float128_read_mps.c.

References float128_mps_err().

Referenced by float128_add_bounds(), float128_add_ranges(), float128_add_rhs(), float128_add_row(), float128_check_section_order(), float128_ILLlib_readbasis(), float128_ILLmps_int_sos_mode(), float128_ILLmps_set_section(), float128_ILLread_mps(), float128_mps_read_col_line(), float128_mps_read_marker_line(), float128_read_mps_line_in_section(), float128_read_mps_objnamesense(), float128_read_mps_objsense(), float128_read_mps_refrow(), and float128_read_mps_section().

Here is the call graph for this function:

int float128_ILLmps_int_sos_mode ( float128_ILLread_mps_state state  ) 

Definition at line 341 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILLmps_error(), ILL_RESULT, float128_ILLread_mps_state_struct::intvar, and float128_ILLread_mps_state_struct::sosvar.

Referenced by float128_mps_read_marker_line().

Here is the call graph for this function:

int float128_ILLmps_next_bound ( float128_ILLread_mps_state state,
float128 *  coef 
)

Definition at line 224 of file float128_read_mps.c.

References float128_END_LINE, float128_get_double(), float128_ILL_MAXDOUBLE, float128_ILL_MINDOUBLE, float128_mps_skip_comment(), ILL_RESULT, and ILL_RETURN.

Referenced by float128_add_bounds().

Here is the call graph for this function:

int float128_ILLmps_next_coef ( float128_ILLread_mps_state state,
float128 *  coef 
)

Definition at line 211 of file float128_read_mps.c.

References float128_get_double(), float128_mps_skip_comment(), and ILL_RESULT.

Referenced by float128_add_ranges(), float128_add_rhs(), and float128_mps_read_col_line().

Here is the call graph for this function:

int float128_ILLmps_next_field ( float128_ILLread_mps_state state  ) 

Definition at line 170 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::field, and float128_mps_skip_comment().

Referenced by float128_add_bounds(), float128_add_ranges(), float128_add_rhs(), float128_add_row(), float128_ILLlib_readbasis(), float128_mps_read_col_line(), and float128_mps_read_marker_line().

Here is the call graph for this function:

static char float128_ILLmps_next_field_is_number ( float128_ILLread_mps_state state  )  [static]

Definition at line 291 of file float128_read_mps.c.

References float128_get_double(), and float128_mps_skip_comment().

Referenced by float128_ILLmps_possibly_blank_name().

Here is the call graph for this function:

int float128_ILLmps_next_line ( float128_ILLread_mps_state state  ) 

Definition at line 80 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILLread_mps_state_struct::field_num, float128_ILLread_mps_state_struct::file, float128_ILL_ISBLANK, float128_ILLline_reader_get, ILL_FAILfalse, ILL_namebufsize, float128_ILLread_mps_state_struct::key, float128_ILLread_mps_state_struct::line, float128_ILLread_mps_state_struct::line_num, and float128_ILLread_mps_state_struct::p.

Referenced by float128_ILLlib_readbasis(), float128_ILLread_mps(), float128_read_mps_objnamesense(), and float128_read_mps_refrow().

const char* float128_ILLmps_possibly_blank_name ( const char *  field,
float128_ILLread_mps_state state,
ILLsymboltab tab 
)

Definition at line 395 of file float128_read_mps.c.

References float128_ILLmps_next_field_is_number(), and ILLsymboltab_lookup().

Referenced by float128_add_bounds(), float128_add_ranges(), and float128_add_rhs().

Here is the call graph for this function:

void float128_ILLmps_set_end_of_line ( float128_ILLread_mps_state state  ) 

Definition at line 318 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::p.

Referenced by float128_add_bounds(), float128_add_ranges(), and float128_add_rhs().

int float128_ILLmps_set_section ( float128_ILLread_mps_state state,
const ILLmps_section  sec 
)

Definition at line 324 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::active, float128_ILLmps_error(), float128_ILLmps_section_name, ILL_FAILfalse, ILL_MPS_NONE, ILL_RESULT, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_section().

Here is the call graph for this function:

int float128_ILLmps_state_init ( float128_ILLread_mps_state state,
float128_qsline_reader file,
const char *  float128_fname 
)

Definition at line 49 of file float128_read_mps.c.

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

Referenced by float128_ILLlib_readbasis(), and float128_ILLread_mps().

void float128_ILLmps_warn ( float128_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 504 of file float128_read_mps.c.

References float128_mps_err().

Referenced by float128_add_ranges(), float128_add_rhs(), float128_ILLlib_readbasis(), float128_ILLmps_check_end_of_line(), float128_ILLread_mps(), float128_mps_set_bound(), and float128_read_mps_name().

Here is the call graph for this function:

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

Definition at line 433 of file float128_read_mps.c.

References float128_qsline_reader::error_collector, float128_ILLread_mps_state_struct::file, float128_ILLread_mps_state_struct::file_name, float128_ILLformat_error, float128_ILLformat_error_create(), float128_ILLformat_error_delete(), ILL_FAILfalse, ILL_FAILfalse_no_rval, float128_ILLread_mps_state_struct::line, float128_ILLread_mps_state_struct::line_num, float128_ILLread_mps_state_struct::p, QS_MPS_FORMAT_ERROR, and QS_MPS_FORMAT_WARN.

Referenced by float128_ILLmps_error(), and float128_ILLmps_warn().

Here is the call graph for this function:

static int float128_mps_skip_comment ( float128_ILLread_mps_state state  )  [static]

Definition at line 156 of file float128_read_mps.c.

References float128_ILLread_mps_state_struct::field_num, float128_ILL_ISBLANK, and float128_ILLread_mps_state_struct::p.

Referenced by float128_get_double(), float128_ILLmps_check_end_of_line(), float128_ILLmps_next_bound(), float128_ILLmps_next_coef(), float128_ILLmps_next_field(), and float128_ILLmps_next_field_is_number().


Variable Documentation

int TRACE = 0 [static]

Definition at line 40 of file float128_read_mps.c.


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