fp20_read_mps.c File Reference

#include "qs_config.h"
#include "fp20_iqsutil.h"
#include "fp20_rawlp.h"
#include "fp20_read_mps.h"
#include "fp20_read_lp.h"
#include "fp20_format.h"

Include dependency graph for fp20_read_mps.c:

Go to the source code of this file.

Defines

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

Functions

static char fp20_get_double (fp20_ILLread_mps_state *state, int peek, EGfp20_t *coef)
void fp20_ILLmps_check_end_of_line (fp20_ILLread_mps_state *state)
int fp20_ILLmps_empty_field (fp20_ILLread_mps_state *state)
int fp20_ILLmps_empty_key (fp20_ILLread_mps_state *state)
int fp20_ILLmps_error (fp20_ILLread_mps_state *state, const char *format,...)
int fp20_ILLmps_int_sos_mode (fp20_ILLread_mps_state *state)
int fp20_ILLmps_next_bound (fp20_ILLread_mps_state *state, EGfp20_t *coef)
int fp20_ILLmps_next_coef (fp20_ILLread_mps_state *state, EGfp20_t *coef)
int fp20_ILLmps_next_field (fp20_ILLread_mps_state *state)
static char fp20_ILLmps_next_field_is_number (fp20_ILLread_mps_state *state)
int fp20_ILLmps_next_line (fp20_ILLread_mps_state *state)
const char * fp20_ILLmps_possibly_blank_name (const char *field, fp20_ILLread_mps_state *state, ILLsymboltab *tab)
void fp20_ILLmps_set_end_of_line (fp20_ILLread_mps_state *state)
int fp20_ILLmps_set_section (fp20_ILLread_mps_state *state, const ILLmps_section sec)
int fp20_ILLmps_state_init (fp20_ILLread_mps_state *state, fp20_qsline_reader *file, const char *fp20_fname)
void fp20_ILLmps_warn (fp20_ILLread_mps_state *state, const char *format,...)
static void fp20_mps_err (fp20_ILLread_mps_state *state, int isError, const char *format, va_list args)
static int fp20_mps_skip_comment (fp20_ILLread_mps_state *state)

Variables

static int TRACE = 0


Define Documentation

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

Definition at line 42 of file fp20_read_mps.c.


Function Documentation

static char fp20_get_double ( fp20_ILLread_mps_state state,
int  peek,
EGfp20_t *  coef 
) [static]

Definition at line 186 of file fp20_read_mps.c.

References fp20_ILLget_value(), fp20_mps_skip_comment(), ILL_FAILfalse, and ILL_RESULT.

Referenced by fp20_ILLmps_next_bound(), fp20_ILLmps_next_coef(), and fp20_ILLmps_next_field_is_number().

Here is the call graph for this function:

void fp20_ILLmps_check_end_of_line ( fp20_ILLread_mps_state state  ) 

Definition at line 306 of file fp20_read_mps.c.

References fp20_END_LINE, fp20_ILLmps_warn(), and fp20_mps_skip_comment().

Here is the call graph for this function:

int fp20_ILLmps_empty_field ( fp20_ILLread_mps_state state  ) 

Definition at line 427 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::field.

int fp20_ILLmps_empty_key ( fp20_ILLread_mps_state state  ) 

Definition at line 421 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::key.

int fp20_ILLmps_error ( fp20_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 491 of file fp20_read_mps.c.

References fp20_mps_err(), and fp20_TRUE.

Here is the call graph for this function:

int fp20_ILLmps_int_sos_mode ( fp20_ILLread_mps_state state  ) 

Definition at line 341 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::field, fp20_ILLmps_error(), ILL_RESULT, fp20_ILLread_mps_state_struct::intvar, and fp20_ILLread_mps_state_struct::sosvar.

Here is the call graph for this function:

int fp20_ILLmps_next_bound ( fp20_ILLread_mps_state state,
EGfp20_t *  coef 
)

Definition at line 224 of file fp20_read_mps.c.

References fp20_END_LINE, fp20_get_double(), fp20_ILL_MAXDOUBLE, fp20_ILL_MINDOUBLE, fp20_mps_skip_comment(), ILL_RESULT, and ILL_RETURN.

Here is the call graph for this function:

int fp20_ILLmps_next_coef ( fp20_ILLread_mps_state state,
EGfp20_t *  coef 
)

Definition at line 211 of file fp20_read_mps.c.

References fp20_get_double(), fp20_mps_skip_comment(), and ILL_RESULT.

Here is the call graph for this function:

int fp20_ILLmps_next_field ( fp20_ILLread_mps_state state  ) 

Definition at line 170 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::field, and fp20_mps_skip_comment().

Here is the call graph for this function:

static char fp20_ILLmps_next_field_is_number ( fp20_ILLread_mps_state state  )  [static]

Definition at line 291 of file fp20_read_mps.c.

References fp20_get_double(), and fp20_mps_skip_comment().

Referenced by fp20_ILLmps_possibly_blank_name().

Here is the call graph for this function:

int fp20_ILLmps_next_line ( fp20_ILLread_mps_state state  ) 

Definition at line 80 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::field, fp20_ILLread_mps_state_struct::field_num, fp20_ILLread_mps_state_struct::file, fp20_ILL_ISBLANK, fp20_ILLline_reader_get, ILL_FAILfalse, ILL_namebufsize, fp20_ILLread_mps_state_struct::key, fp20_ILLread_mps_state_struct::line, fp20_ILLread_mps_state_struct::line_num, and fp20_ILLread_mps_state_struct::p.

const char* fp20_ILLmps_possibly_blank_name ( const char *  field,
fp20_ILLread_mps_state state,
ILLsymboltab tab 
)

Definition at line 395 of file fp20_read_mps.c.

References fp20_ILLmps_next_field_is_number(), and ILLsymboltab_lookup().

Here is the call graph for this function:

void fp20_ILLmps_set_end_of_line ( fp20_ILLread_mps_state state  ) 

Definition at line 318 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::p.

int fp20_ILLmps_set_section ( fp20_ILLread_mps_state state,
const ILLmps_section  sec 
)

Definition at line 324 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::active, fp20_ILLmps_error(), fp20_ILLmps_section_name, ILL_FAILfalse, ILL_MPS_NONE, ILL_RESULT, and fp20_ILLread_mps_state_struct::section.

Here is the call graph for this function:

int fp20_ILLmps_state_init ( fp20_ILLread_mps_state state,
fp20_qsline_reader file,
const char *  fp20_fname 
)

Definition at line 49 of file fp20_read_mps.c.

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

void fp20_ILLmps_warn ( fp20_ILLread_mps_state state,
const char *  format,
  ... 
)

Definition at line 504 of file fp20_read_mps.c.

References fp20_FALSE, and fp20_mps_err().

Here is the call graph for this function:

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

Definition at line 433 of file fp20_read_mps.c.

References fp20_qsline_reader::error_collector, fp20_ILLread_mps_state_struct::file, fp20_ILLread_mps_state_struct::file_name, fp20_ILLformat_error, fp20_ILLformat_error_create(), fp20_ILLformat_error_delete(), ILL_FAILfalse, ILL_FAILfalse_no_rval, fp20_ILLread_mps_state_struct::line, fp20_ILLread_mps_state_struct::line_num, fp20_ILLread_mps_state_struct::p, QS_MPS_FORMAT_ERROR, and QS_MPS_FORMAT_WARN.

Referenced by fp20_ILLmps_error(), and fp20_ILLmps_warn().

Here is the call graph for this function:

static int fp20_mps_skip_comment ( fp20_ILLread_mps_state state  )  [static]

Definition at line 156 of file fp20_read_mps.c.

References fp20_ILLread_mps_state_struct::field_num, fp20_ILL_ISBLANK, and fp20_ILLread_mps_state_struct::p.

Referenced by fp20_get_double(), fp20_ILLmps_check_end_of_line(), fp20_ILLmps_next_bound(), fp20_ILLmps_next_coef(), fp20_ILLmps_next_field(), and fp20_ILLmps_next_field_is_number().


Variable Documentation

int TRACE = 0 [static]

Definition at line 40 of file fp20_read_mps.c.


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