dbl_read_mps.c File Reference

#include "qs_config.h"
#include "dbl_iqsutil.h"
#include "dbl_rawlp.h"
#include "dbl_read_mps.h"
#include "dbl_read_lp.h"
#include "dbl_format.h"

Include dependency graph for dbl_read_mps.c:

Go to the source code of this file.

Defines

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

Functions

static char dbl_get_double (dbl_ILLread_mps_state *state, int peek, double *coef)
void dbl_ILLmps_check_end_of_line (dbl_ILLread_mps_state *state)
int dbl_ILLmps_empty_field (dbl_ILLread_mps_state *state)
int dbl_ILLmps_empty_key (dbl_ILLread_mps_state *state)
int dbl_ILLmps_error (dbl_ILLread_mps_state *state, const char *format,...)
int dbl_ILLmps_int_sos_mode (dbl_ILLread_mps_state *state)
int dbl_ILLmps_next_bound (dbl_ILLread_mps_state *state, double *coef)
int dbl_ILLmps_next_coef (dbl_ILLread_mps_state *state, double *coef)
int dbl_ILLmps_next_field (dbl_ILLread_mps_state *state)
static char dbl_ILLmps_next_field_is_number (dbl_ILLread_mps_state *state)
int dbl_ILLmps_next_line (dbl_ILLread_mps_state *state)
const char * dbl_ILLmps_possibly_blank_name (const char *field, dbl_ILLread_mps_state *state, ILLsymboltab *tab)
void dbl_ILLmps_set_end_of_line (dbl_ILLread_mps_state *state)
int dbl_ILLmps_set_section (dbl_ILLread_mps_state *state, const ILLmps_section sec)
int dbl_ILLmps_state_init (dbl_ILLread_mps_state *state, dbl_qsline_reader *file, const char *dbl_fname)
void dbl_ILLmps_warn (dbl_ILLread_mps_state *state, const char *format,...)
static void dbl_mps_err (dbl_ILLread_mps_state *state, int isError, const char *format, va_list args)
static int dbl_mps_skip_comment (dbl_ILLread_mps_state *state)

Variables

static int TRACE = 0


Define Documentation

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

Definition at line 42 of file dbl_read_mps.c.


Function Documentation

static char dbl_get_double ( dbl_ILLread_mps_state state,
int  peek,
double *  coef 
) [static]

Definition at line 186 of file dbl_read_mps.c.

References dbl_ILLget_value(), dbl_mps_skip_comment(), ILL_FAILfalse, and ILL_RESULT.

Referenced by dbl_ILLmps_next_bound(), dbl_ILLmps_next_coef(), and dbl_ILLmps_next_field_is_number().

Here is the call graph for this function:

void dbl_ILLmps_check_end_of_line ( dbl_ILLread_mps_state state  ) 

Definition at line 306 of file dbl_read_mps.c.

References dbl_END_LINE, dbl_ILLmps_warn(), and dbl_mps_skip_comment().

Here is the call graph for this function:

int dbl_ILLmps_empty_field ( dbl_ILLread_mps_state state  ) 

Definition at line 427 of file dbl_read_mps.c.

References dbl_ILLread_mps_state_struct::field.

int dbl_ILLmps_empty_key ( dbl_ILLread_mps_state state  ) 

Definition at line 421 of file dbl_read_mps.c.

References dbl_ILLread_mps_state_struct::key.

int dbl_ILLmps_error ( dbl_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 491 of file dbl_read_mps.c.

References dbl_mps_err(), and dbl_TRUE.

Here is the call graph for this function:

int dbl_ILLmps_int_sos_mode ( dbl_ILLread_mps_state state  ) 

Definition at line 341 of file dbl_read_mps.c.

References dbl_ILLmps_error(), dbl_ILLread_mps_state_struct::field, ILL_RESULT, dbl_ILLread_mps_state_struct::intvar, and dbl_ILLread_mps_state_struct::sosvar.

Here is the call graph for this function:

int dbl_ILLmps_next_bound ( dbl_ILLread_mps_state state,
double *  coef 
)

Definition at line 224 of file dbl_read_mps.c.

References dbl_END_LINE, dbl_get_double(), dbl_ILL_MAXDOUBLE, dbl_ILL_MINDOUBLE, dbl_mps_skip_comment(), ILL_RESULT, and ILL_RETURN.

Here is the call graph for this function:

int dbl_ILLmps_next_coef ( dbl_ILLread_mps_state state,
double *  coef 
)

Definition at line 211 of file dbl_read_mps.c.

References dbl_get_double(), dbl_mps_skip_comment(), and ILL_RESULT.

Here is the call graph for this function:

int dbl_ILLmps_next_field ( dbl_ILLread_mps_state state  ) 

Definition at line 170 of file dbl_read_mps.c.

References dbl_mps_skip_comment(), and dbl_ILLread_mps_state_struct::field.

Here is the call graph for this function:

static char dbl_ILLmps_next_field_is_number ( dbl_ILLread_mps_state state  )  [static]

Definition at line 291 of file dbl_read_mps.c.

References dbl_get_double(), and dbl_mps_skip_comment().

Referenced by dbl_ILLmps_possibly_blank_name().

Here is the call graph for this function:

int dbl_ILLmps_next_line ( dbl_ILLread_mps_state state  ) 

Definition at line 80 of file dbl_read_mps.c.

References dbl_ILL_ISBLANK, dbl_ILLline_reader_get, dbl_ILLread_mps_state_struct::field, dbl_ILLread_mps_state_struct::field_num, dbl_ILLread_mps_state_struct::file, ILL_FAILfalse, ILL_namebufsize, dbl_ILLread_mps_state_struct::key, dbl_ILLread_mps_state_struct::line, dbl_ILLread_mps_state_struct::line_num, and dbl_ILLread_mps_state_struct::p.

const char* dbl_ILLmps_possibly_blank_name ( const char *  field,
dbl_ILLread_mps_state state,
ILLsymboltab tab 
)

Definition at line 395 of file dbl_read_mps.c.

References dbl_ILLmps_next_field_is_number(), and ILLsymboltab_lookup().

Here is the call graph for this function:

void dbl_ILLmps_set_end_of_line ( dbl_ILLread_mps_state state  ) 

Definition at line 318 of file dbl_read_mps.c.

References dbl_ILLread_mps_state_struct::p.

int dbl_ILLmps_set_section ( dbl_ILLread_mps_state state,
const ILLmps_section  sec 
)

Definition at line 324 of file dbl_read_mps.c.

References dbl_ILLread_mps_state_struct::active, dbl_ILLmps_error(), dbl_ILLmps_section_name, ILL_FAILfalse, ILL_MPS_NONE, ILL_RESULT, and dbl_ILLread_mps_state_struct::section.

Here is the call graph for this function:

int dbl_ILLmps_state_init ( dbl_ILLread_mps_state state,
dbl_qsline_reader file,
const char *  dbl_fname 
)

Definition at line 49 of file dbl_read_mps.c.

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

void dbl_ILLmps_warn ( dbl_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 504 of file dbl_read_mps.c.

References dbl_FALSE, and dbl_mps_err().

Here is the call graph for this function:

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

Definition at line 433 of file dbl_read_mps.c.

References dbl_ILLformat_error, dbl_ILLformat_error_create(), dbl_ILLformat_error_delete(), dbl_qsline_reader::error_collector, dbl_ILLread_mps_state_struct::file, dbl_ILLread_mps_state_struct::file_name, ILL_FAILfalse, ILL_FAILfalse_no_rval, dbl_ILLread_mps_state_struct::line, dbl_ILLread_mps_state_struct::line_num, dbl_ILLread_mps_state_struct::p, QS_MPS_FORMAT_ERROR, and QS_MPS_FORMAT_WARN.

Referenced by dbl_ILLmps_error(), and dbl_ILLmps_warn().

Here is the call graph for this function:

static int dbl_mps_skip_comment ( dbl_ILLread_mps_state state  )  [static]

Definition at line 156 of file dbl_read_mps.c.

References dbl_ILL_ISBLANK, dbl_ILLread_mps_state_struct::field_num, and dbl_ILLread_mps_state_struct::p.

Referenced by dbl_get_double(), dbl_ILLmps_check_end_of_line(), dbl_ILLmps_next_bound(), dbl_ILLmps_next_coef(), dbl_ILLmps_next_field(), and dbl_ILLmps_next_field_is_number().


Variable Documentation

int TRACE = 0 [static]

Definition at line 40 of file dbl_read_mps.c.


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