float128_mps.c File Reference

#include "qs_config.h"
#include "float128_iqsutil.h"
#include "float128_mps.h"
#include "float128_rawlp.h"
#include "float128_lpdata.h"

Include dependency graph for float128_mps.c:

Go to the source code of this file.

Functions

static int float128_add_bounds (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_add_col (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_add_ranges (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_add_rhs (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_add_row (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_check_section_order (float128_ILLread_mps_state *state, int sec)
int float128_ILLread_mps (float128_qsline_reader *file, const char *f, float128_rawlpdata *lp)
int float128_ILLwrite_mps (float128_ILLlpdata *lp, float128_qserror_collector *collector)
static int float128_is_marker_line (float128_ILLread_mps_state *state)
static int float128_mps_fill_in (float128_rawlpdata *lp, const char *obj)
static int float128_mps_read_col_line (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_mps_read_marker_line (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static void float128_mps_set_bound (float128_rawlpdata *lp, float128_ILLread_mps_state *state, int colind, const char *bndtype, float128 bnd)
static int float128_mps_write_col (int i, int iorig, char *colname, float128_ILLlpdata *lp, char **rownames, int intmode, char *objname)
static int float128_read_mps_line_in_section (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_read_mps_name (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_read_mps_objname (float128_ILLread_mps_state *state)
static int float128_read_mps_objnamesense (ILLmps_section sec, float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_read_mps_objsense (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_read_mps_refrow (float128_ILLread_mps_state *state, float128_rawlpdata *lp)
static int float128_read_mps_section (float128_ILLread_mps_state *state, float128_rawlpdata *lp)

Variables

const char * float128_ILLmps_section_name [ILL_MPS_N_SECTIONS+2]
static const char * float128_mps_bound_name []
static int TRACE = 0


Function Documentation

static int float128_add_bounds ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 761 of file float128_mps.c.

References float128_rawlpdata::coltab, float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_bound(), float128_ILLmps_next_field(), float128_ILLmps_possibly_blank_name(), float128_ILLmps_set_end_of_line(), float128_ILLraw_set_bounds_name(), float128_ILLutil_index(), float128_mps_bound_name, float128_mps_set_bound(), ILL_FAILtrue, ILL_RESULT, ILLsymboltab_lookup(), and NULL.

Referenced by float128_read_mps_line_in_section().

Here is the call graph for this function:

static int float128_add_col ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 538 of file float128_mps.c.

References float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_is_marker_line(), float128_mps_read_col_line(), float128_mps_read_marker_line(), ILL_FAILtrue, and ILL_RETURN.

Here is the call graph for this function:

static int float128_add_ranges ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 900 of file float128_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILLmps_error(), float128_ILLmps_next_coef(), float128_ILLmps_next_field(), float128_ILLmps_possibly_blank_name(), float128_ILLmps_set_end_of_line(), float128_ILLmps_warn(), float128_ILLraw_add_ranges_coef(), float128_ILLraw_rowname(), float128_ILLraw_set_ranges_name(), ILLsymboltab_lookup(), and float128_rawlpdata::rowtab.

Referenced by float128_read_mps_line_in_section().

Here is the call graph for this function:

static int float128_add_rhs ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 695 of file float128_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILLmps_error(), float128_ILLmps_next_coef(), float128_ILLmps_next_field(), float128_ILLmps_possibly_blank_name(), float128_ILLmps_set_end_of_line(), float128_ILLmps_warn(), float128_ILLraw_rowname(), float128_ILLraw_set_rhs_name(), ILLsymboltab_lookup(), and float128_rawlpdata::rowtab.

Referenced by float128_read_mps_line_in_section().

Here is the call graph for this function:

static int float128_add_row ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 491 of file float128_mps.c.

References float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_field(), float128_ILLraw_add_row(), ILL_FAILtrue, ILL_RESULT, ILLsymboltab_lookup(), and float128_rawlpdata::rowtab.

Here is the call graph for this function:

static int float128_check_section_order ( float128_ILLread_mps_state state,
int  sec 
) [static]

Definition at line 201 of file float128_mps.c.

References float128_ILLmps_error(), float128_ILLmps_section_name, ILL_MPS_BOUNDS, ILL_MPS_COLS, ILL_MPS_RANGES, ILL_MPS_REFROW, ILL_MPS_RHS, ILL_MPS_ROWS, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_section().

Here is the call graph for this function:

int float128_ILLread_mps ( float128_qsline_reader file,
const char *  f,
float128_rawlpdata lp 
)

Definition at line 132 of file float128_mps.c.

References float128_rawlpdata::coltab, float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_line(), float128_ILLmps_section_name, float128_ILLmps_state_init(), float128_ILLmps_warn(), float128_mps_fill_in(), float128_read_mps_line_in_section(), float128_read_mps_section(), ILL_IFTRACE, ILL_MPS_ENDATA, ILL_RESULT, ILLsymboltab_create(), and float128_rawlpdata::rowtab.

Referenced by float128_ILLread().

Here is the call graph for this function:

int float128_ILLwrite_mps ( float128_ILLlpdata lp,
float128_qserror_collector collector 
)

Definition at line 1084 of file float128_mps.c.

References float128_ILLlpdata::colnames, float128_ILL_MIN, float128_ILLdata_warn(), float128_ILLlp_rows_init(), float128_ILLprint_report(), ILL_CHECKnull, ILL_CLEANUP_IF, ILL_FAILfalse, ILL_FAILtrue, ILL_namebufsize, ILLsymboltab_uname(), float128_ILLlpdata::nrows, NULL, float128_ILLlpdata::objname, float128_ILLlpdata::objsense, float128_ILLlpdata::probname, float128_ILLlpdata::refind, float128_ILLlpdata::refrowname, float128_ILLlp_rows::rowcnt, float128_ILLlpdata::rownames, float128_ILLlpdata::rowtab, and float128_ILLlpdata::sense.

Referenced by float128_QSreport_prob().

Here is the call graph for this function:

static int float128_is_marker_line ( float128_ILLread_mps_state state  )  [static]

Definition at line 630 of file float128_mps.c.

References float128_ILL_ISBLANK, float128_ILLutil_strchr(), and float128_ILLread_mps_state_struct::line.

Referenced by float128_add_col().

Here is the call graph for this function:

static int float128_mps_fill_in ( float128_rawlpdata lp,
const char *  obj 
) [static]

Definition at line 966 of file float128_mps.c.

References float128_rawlpdata::error_collector, float128_ILLdata_error(), float128_ILLdata_warn(), ILLsymboltab_lookup(), float128_rawlpdata::nrows, float128_rawlpdata::objindex, float128_rawlpdata::rowsense, and float128_rawlpdata::rowtab.

Referenced by float128_ILLread_mps().

Here is the call graph for this function:

static int float128_mps_read_col_line ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 559 of file float128_mps.c.

References float128_rawlpdata::coltab, float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_coef(), float128_ILLmps_next_field(), float128_ILLraw_add_col(), float128_ILLraw_add_col_coef(), float128_ILLraw_add_sos_member(), float128_ILLraw_colname(), float128_ILLraw_is_mem_other_sos(), ILL_CLEANUP_IF, ILL_FAILfalse, ILL_FAILtrue, ILL_RESULT, ILLsymboltab_lookup(), float128_rawlpdata::intmarker, float128_rawlpdata::ncols, and float128_rawlpdata::rowtab.

Referenced by float128_add_col().

Here is the call graph for this function:

static int float128_mps_read_marker_line ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 649 of file float128_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILL_SOS_TYPE1, float128_ILL_SOS_TYPE2, float128_ILLmps_error(), float128_ILLmps_int_sos_mode(), float128_ILLmps_next_field(), float128_ILLraw_add_sos(), ILL_RESULT, and float128_ILLread_mps_state_struct::sosvar.

Referenced by float128_add_col().

Here is the call graph for this function:

static void float128_mps_set_bound ( float128_rawlpdata lp,
float128_ILLread_mps_state state,
int  colind,
const char *  bndtype,
float128  bnd 
) [static]

Definition at line 833 of file float128_mps.c.

References float128_ILL_MAXDOUBLE, float128_ILL_MINDOUBLE, float128_ILLmps_warn(), float128_ILLraw_set_binaryBound(), float128_ILLraw_set_fixedBound(), float128_ILLraw_set_lowerBound(), float128_ILLraw_set_unbound(), float128_ILLraw_set_upperBound(), ILL_CLEANUP, ILL_REPRT, float128_rawlpdata::intmarker, and NULL.

Referenced by float128_add_bounds().

Here is the call graph for this function:

static int float128_mps_write_col ( int  i,
int  iorig,
char *  colname,
float128_ILLlpdata lp,
char **  rownames,
int  intmode,
char *  objname 
) [static]

Definition at line 1301 of file float128_mps.c.

References float128_ILLlpdata::A, float128_ILLprint_report(), float128_ILLlpdata::intmarker, float128_ILLmatrix::matbeg, float128_ILLmatrix::matcnt, float128_ILLmatrix::matind, float128_ILLmatrix::matval, and float128_ILLlpdata::obj.

Here is the call graph for this function:

static int float128_read_mps_line_in_section ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 442 of file float128_mps.c.

References float128_add_bounds(), float128_add_col(), float128_add_ranges(), float128_add_rhs(), float128_add_row(), float128_ILLmps_check_end_of_line(), float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), ILL_CLEANUP, ILL_FAILtrue, ILL_MPS_BOUNDS, ILL_MPS_COLS, ILL_MPS_NONE, ILL_MPS_RANGES, ILL_MPS_RHS, ILL_MPS_ROWS, ILL_REPRT, and ILL_RESULT.

Referenced by float128_ILLread_mps().

Here is the call graph for this function:

static int float128_read_mps_name ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 311 of file float128_mps.c.

References float128_ILLmps_empty_field(), float128_ILLmps_warn(), ILL_RESULT, and float128_rawlpdata::name.

Referenced by float128_read_mps_section().

Here is the call graph for this function:

static int float128_read_mps_objname ( float128_ILLread_mps_state state  )  [static]

Definition at line 431 of file float128_mps.c.

References float128_ILLread_mps_state_struct::field, ILL_FAILfalse, ILL_MPS_OBJNAME, ILL_RETURN, float128_ILLread_mps_state_struct::obj, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_objnamesense().

static int float128_read_mps_objnamesense ( ILLmps_section  sec,
float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 355 of file float128_mps.c.

References float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_line(), float128_ILLmps_section_name, float128_read_mps_objname(), float128_read_mps_objsense(), float128_read_mps_section(), ILL_MPS_OBJNAME, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_section().

Here is the call graph for this function:

static int float128_read_mps_objsense ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 399 of file float128_mps.c.

References float128_ILLread_mps_state_struct::field, float128_ILL_MAX, float128_ILL_MIN, float128_ILLmps_error(), ILL_FAILfalse, ILL_MPS_OBJSENSE, ILL_RESULT, float128_rawlpdata::objsense, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_objnamesense().

Here is the call graph for this function:

static int float128_read_mps_refrow ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 329 of file float128_mps.c.

References float128_ILLmps_empty_field(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_next_line(), ILL_MPS_REFROW, ILL_RETURN, float128_rawlpdata::refrow, and float128_ILLread_mps_state_struct::section.

Referenced by float128_read_mps_section().

Here is the call graph for this function:

static int float128_read_mps_section ( float128_ILLread_mps_state state,
float128_rawlpdata lp 
) [static]

Definition at line 236 of file float128_mps.c.

References float128_check_section_order(), float128_ILLmps_empty_key(), float128_ILLmps_error(), float128_ILLmps_section_name, float128_ILLmps_set_section(), float128_ILLraw_init_bounds(), float128_ILLraw_init_ranges(), float128_ILLraw_init_rhs(), float128_ILLutil_index(), float128_read_mps_name(), float128_read_mps_objnamesense(), float128_read_mps_refrow(), ILL_FAILtrue, ILL_MPS_BOUNDS, ILL_MPS_COLS, ILL_MPS_NAME, ILL_MPS_NONE, ILL_MPS_OBJNAME, ILL_MPS_OBJSENSE, ILL_MPS_RANGES, ILL_MPS_REFROW, ILL_MPS_RHS, ILL_MPS_ROWS, ILL_REPRT, and ILL_RESULT.

Referenced by float128_ILLread_mps(), and float128_read_mps_objnamesense().

Here is the call graph for this function:


Variable Documentation

const char* float128_ILLmps_section_name[ILL_MPS_N_SECTIONS+2]

Initial value:

 {
  "NAME", "OBJSENSE", "OBJNAME", "ROWS", "COLUMNS",
  "RHS", "RANGES", "BOUNDS", "REFROW", "ENDATA",
  NULL
}

Definition at line 57 of file float128_mps.c.

Referenced by float128_check_section_order(), float128_ILLlib_readbasis(), float128_ILLmps_set_section(), float128_ILLread_mps(), float128_read_mps_objnamesense(), and float128_read_mps_section().

const char* float128_mps_bound_name[] [static]

Initial value:

 {
  "LO", "UP", "FX", "FR", "MI", "PL", "BV", "UI", "LI", NULL
}

Definition at line 63 of file float128_mps.c.

Referenced by float128_add_bounds().

int TRACE = 0 [static]

Definition at line 55 of file float128_mps.c.


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