rawlp.h File Reference

#include "trace.h"
#include "lpdata.h"
#include "iqsutil.h"
#include "format.h"
#include "lpdefs.h"

Include dependency graph for rawlp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  colptr
struct  rawlpdata
struct  sosptr

Defines

#define ILL_ISBLANK(p)   (((*(p))==' '||(*(p))=='\t'||(*(p))=='\r'||(*(p))=='\f') ? 1 : 0)

Functions

colptrILLcolptralloc (ILLptrworld *p)
int ILLdata_error (qserror_collector *collector, const char *format,...)
void ILLdata_warn (qserror_collector *collector, const char *format,...)
void ILLfree_rawlpdata (rawlpdata *lp)
void ILLinit_rawlpdata (rawlpdata *lp, qserror_collector *collector)
void ILLprint_rawlpdata (rawlpdata *lp)
int ILLraw_add_col (rawlpdata *lp, const char *name, int intmarker)
int ILLraw_add_col_coef (rawlpdata *lp, int colind, int rowind, EGlpNum_t coef)
int ILLraw_add_ranges_coef (rawlpdata *lp, int rowind, EGlpNum_t coef)
int ILLraw_add_row (rawlpdata *lp, const char *name, int sense, const EGlpNum_t rhs)
int ILLraw_add_sos (rawlpdata *lp, int sos_type)
int ILLraw_add_sos_member (rawlpdata *lp, int colind)
void ILLraw_clear_matrix (rawlpdata *lp)
const char * ILLraw_colname (rawlpdata *lp, int i)
int ILLraw_default_lower (ILLlpdata *lp, int i)
int ILLraw_default_upper (ILLlpdata *lp, int i, int ri)
int ILLraw_fill_in_bounds (rawlpdata *lp)
int ILLraw_fill_in_rownames (rawlpdata *lp)
int ILLraw_first_nondefault_bound (ILLlpdata *lp)
int ILLraw_init_bounds (rawlpdata *lp)
int ILLraw_init_ranges (rawlpdata *lp)
int ILLraw_init_rhs (rawlpdata *lp)
int ILLraw_is_mem_other_sos (rawlpdata *lp, int colind)
const char * ILLraw_rowname (rawlpdata *lp, int i)
const char * ILLraw_set_binaryBound (rawlpdata *lp, int i)
int ILLraw_set_bounds_name (rawlpdata *lp, const char *name, int *skip)
const char * ILLraw_set_fixedBound (rawlpdata *lp, int i, EGlpNum_t bnd)
const char * ILLraw_set_lowerBound (rawlpdata *lp, int i, EGlpNum_t bnd)
int ILLraw_set_ranges_name (rawlpdata *lp, const char *name, int *skip)
int ILLraw_set_rhs_name (rawlpdata *lp, const char *name, int *skip)
const char * ILLraw_set_unbound (rawlpdata *lp, int colind)
const char * ILLraw_set_upperBound (rawlpdata *lp, int i, EGlpNum_t bnd)
char * ILLraw_unique_name (ILLsymboltab *tab, char *prefix, int i)
int ILLrawlpdata_to_lpdata (rawlpdata *raw, ILLlpdata *lp)

Variables

const int ILL_SOS_TYPE1
const int ILL_SOS_TYPE2


Define Documentation

#define ILL_ISBLANK (  )     (((*(p))==' '||(*(p))=='\t'||(*(p))=='\r'||(*(p))=='\f') ? 1 : 0)

Definition at line 40 of file rawlp.h.

Referenced by ILLcheck_subject_to(), ILLmps_next_line(), ILLread_lp_state_next_line(), ILLread_lp_state_prev_field(), ILLread_lp_state_print_at(), ILLread_lp_state_skip_blanks(), is_marker_line(), and mps_skip_comment().


Function Documentation

colptr* ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file rawlp.c.

References colptr::coef.

Referenced by ILLraw_add_col_coef(), and ILLraw_add_ranges_coef().

int ILLdata_error ( qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file rawlp.c.

References ILLmsg(), and TRUE.

Referenced by convert_rawlpdata_to_lpdata(), ILLcheck_rawlpdata(), ILLraw_check_bounds(), ILLwrite_lp(), mps_fill_in(), and transferRanges().

Here is the call graph for this function:

void ILLdata_warn ( qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file rawlp.c.

References FALSE, and ILLmsg().

Referenced by buildMatrix(), convert_rawlpdata_to_lpdata(), fix_names(), ILLraw_fill_in_rownames(), ILLwrite_mps(), mps_fill_in(), and transferObjective().

Here is the call graph for this function:

void ILLfree_rawlpdata ( rawlpdata lp  ) 

Definition at line 144 of file rawlp.c.

References rawlpdata::boundsname, colptr::coef, rawlpdata::cols, rawlpdata::coltab, ILL_IFFREE, ILLinit_rawlpdata(), ILLptrworld_delete(), ILLraw_clear_matrix(), ILLsymboltab_free(), rawlpdata::intmarker, rawlpdata::is_sos_member, rawlpdata::lbind, rawlpdata::lower, rawlpdata::name, colptr::next, NULL, rawlpdata::ptrworld, rawlpdata::ranges, rawlpdata::rangesind, rawlpdata::rangesname, rawlpdata::refrow, rawlpdata::rhs, rawlpdata::rhsind, rawlpdata::rhsname, rawlpdata::rowsense, rawlpdata::rowtab, rawlpdata::sos_col, rawlpdata::sos_set, rawlpdata::sos_weight, rawlpdata::ubind, and rawlpdata::upper.

Referenced by convert_rawlpdata_to_lpdata(), ILLeditor(), and ILLread().

Here is the call graph for this function:

void ILLinit_rawlpdata ( rawlpdata lp,
qserror_collector collector 
)

Definition at line 70 of file rawlp.c.

References rawlpdata::boundsname, rawlpdata::cols, rawlpdata::colsize, rawlpdata::coltab, rawlpdata::error_collector, ILL_MIN, ILLptrworld_init(), ILLsymboltab_init(), rawlpdata::intmarker, rawlpdata::intsize, rawlpdata::is_sos_member, rawlpdata::is_sos_size, rawlpdata::lbind, rawlpdata::lower, rawlpdata::name, rawlpdata::ncols, rawlpdata::nrows, rawlpdata::nsos, rawlpdata::nsos_member, NULL, rawlpdata::objindex, rawlpdata::objsense, rawlpdata::ptrworld, rawlpdata::ranges, rawlpdata::rangesind, rawlpdata::rangesname, rawlpdata::refrow, rawlpdata::refrowind, rawlpdata::rhs, rawlpdata::rhsind, rawlpdata::rhsname, rawlpdata::rhssize, rawlpdata::rowsense, rawlpdata::rowtab, rawlpdata::sensesize, rawlpdata::sos_col, rawlpdata::sos_col_size, rawlpdata::sos_set, rawlpdata::sos_setsize, rawlpdata::sos_weight, rawlpdata::sos_weight_size, rawlpdata::ubind, and rawlpdata::upper.

Referenced by ILLfree_rawlpdata(), ILLread(), ILLread_lp(), and pull_info_from_p().

Here is the call graph for this function:

void ILLprint_rawlpdata ( rawlpdata lp  ) 

Definition at line 1561 of file rawlp.c.

References colptr::coef, rawlpdata::cols, ILLraw_colname(), ILLraw_rowname(), rawlpdata::name, rawlpdata::ncols, colptr::next, rawlpdata::nrows, rawlpdata::rhs, rawlpdata::rowsense, and colptr::this_val.

Referenced by ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

int ILLraw_add_col ( rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file rawlp.c.

References rawlpdata::cols, rawlpdata::colsize, rawlpdata::coltab, ILL_CLEANUP_IF, ILL_RETURN, ILLsymboltab_register(), rawlpdata::intmarker, rawlpdata::intsize, rawlpdata::is_sos_member, rawlpdata::is_sos_size, and rawlpdata::ncols.

Referenced by add_var(), mps_read_col_line(), and pull_info_from_p().

Here is the call graph for this function:

int ILLraw_add_col_coef ( rawlpdata lp,
int  colind,
int  rowind,
EGlpNum_t  coef 
)

Definition at line 319 of file rawlp.c.

References colptr::coef, rawlpdata::cols, ILLcolptralloc(), colptr::next, rawlpdata::ptrworld, and colptr::this_val.

Referenced by add_var(), and mps_read_col_line().

Here is the call graph for this function:

int ILLraw_add_ranges_coef ( rawlpdata lp,
int  rowind,
EGlpNum_t  coef 
)

Definition at line 339 of file rawlp.c.

References colptr::coef, ILLcolptralloc(), colptr::next, rawlpdata::ptrworld, rawlpdata::ranges, rawlpdata::rangesind, and colptr::this_val.

Referenced by add_ranges().

Here is the call graph for this function:

int ILLraw_add_row ( rawlpdata lp,
const char *  name,
int  sense,
const EGlpNum_t  rhs 
)

Definition at line 455 of file rawlp.c.

References ILL_CLEANUP_IF, ILL_RETURN, ILLsymboltab_register(), rawlpdata::nrows, rawlpdata::rhs, rawlpdata::rhssize, rawlpdata::rowsense, rawlpdata::rowtab, and rawlpdata::sensesize.

Referenced by add_row(), ILLread_one_constraint(), pull_info_from_p(), and read_objective().

Here is the call graph for this function:

int ILLraw_add_sos ( rawlpdata lp,
int  sos_type 
)

Definition at line 358 of file rawlp.c.

References sosptr::first, ILL_RETURN, sosptr::nelem, rawlpdata::nsos, rawlpdata::sos_set, rawlpdata::sos_setsize, and sosptr::type.

Referenced by mps_read_marker_line().

int ILLraw_add_sos_member ( rawlpdata lp,
int  colind 
)

Definition at line 404 of file rawlp.c.

References ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, ILLraw_is_mem_other_sos(), and rawlpdata::nsos.

Referenced by mps_read_col_line().

Here is the call graph for this function:

void ILLraw_clear_matrix ( rawlpdata lp  ) 

Definition at line 118 of file rawlp.c.

References rawlpdata::cols, rawlpdata::ncols, colptr::next, NULL, and rawlpdata::ptrworld.

Referenced by add_col(), add_row(), and ILLfree_rawlpdata().

const char* ILLraw_colname ( rawlpdata lp,
int  i 
)

Definition at line 213 of file rawlp.c.

References rawlpdata::coltab, ILL_FAILfalse_no_rval, ILLsymboltab_get(), rawlpdata::ncols, NULL, and ILLsymboltab::tablesize.

Referenced by fill_matrix(), ILLcheck_rawlpdata(), ILLprint_rawlpdata(), ILLraw_check_bounds(), mps_read_col_line(), read_bounds(), transferColNamesLowerUpperIntMarker(), and transferObjective().

Here is the call graph for this function:

int ILLraw_default_lower ( ILLlpdata lp,
int  i 
)

Definition at line 786 of file rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, ILL_MINDOUBLE, ILLlpdata::lower, ILLlpdata::ncols, NULL, and ILLlpdata::upper.

Referenced by ILLraw_first_nondefault_bound(), and write_bounds().

int ILLraw_default_upper ( ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, ILL_MAXDOUBLE, ILLlpdata::intmarker, ILLlpdata::lower, ILLlpdata::ncols, NULL, and ILLlpdata::upper.

Referenced by ILLraw_first_nondefault_bound(), and write_bounds().

int ILLraw_fill_in_bounds ( rawlpdata lp  ) 

Definition at line 699 of file rawlp.c.

References ILL_FAILtrue, ILL_MINDOUBLE, ILLraw_init_bounds(), rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by ILLread_lp().

Here is the call graph for this function:

int ILLraw_fill_in_rownames ( rawlpdata lp  ) 

Definition at line 834 of file rawlp.c.

References rawlpdata::error_collector, ILL_CLEANUP_IF, ILL_FAILtrue, ILL_namebufsize, ILL_RESULT, ILLdata_warn(), ILLsymboltab_get(), ILLsymboltab_rename(), ILLsymboltab_unique_name(), rawlpdata::nrows, NULL, rawlpdata::rowtab, and ILLsymboltab::tablesize.

Referenced by ILLread_lp().

Here is the call graph for this function:

int ILLraw_first_nondefault_bound ( ILLlpdata lp  ) 

Definition at line 769 of file rawlp.c.

References ILL_FAILtrue_no_rval, ILLraw_default_lower(), ILLraw_default_upper(), ILLlpdata::lower, ILLlpdata::nstruct, NULL, ILLlpdata::structmap, and ILLlpdata::upper.

Referenced by write_bounds().

Here is the call graph for this function:

int ILLraw_init_bounds ( rawlpdata lp  ) 

Definition at line 586 of file rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by ILLraw_fill_in_bounds(), read_bounds(), and read_mps_section().

int ILLraw_init_ranges ( rawlpdata lp  ) 

Definition at line 300 of file rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, rawlpdata::nrows, NULL, and rawlpdata::rangesind.

Referenced by read_mps_section().

int ILLraw_init_rhs ( rawlpdata lp  ) 

Definition at line 281 of file rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, rawlpdata::nrows, NULL, and rawlpdata::rhsind.

Referenced by read_mps_section().

int ILLraw_is_mem_other_sos ( rawlpdata lp,
int  colind 
)

Definition at line 396 of file rawlp.c.

References rawlpdata::is_sos_member, and rawlpdata::nsos.

Referenced by ILLraw_add_sos_member(), and mps_read_col_line().

const char* ILLraw_rowname ( rawlpdata lp,
int  i 
)

Definition at line 200 of file rawlp.c.

References ILL_FAILfalse_no_rval, ILLsymboltab_get(), rawlpdata::nrows, NULL, rawlpdata::rowtab, and ILLsymboltab::tablesize.

Referenced by add_ranges(), add_rhs(), add_var(), ILLcheck_rawlpdata(), ILLprint_rawlpdata(), ILLread_constraint_expr(), ILLread_one_constraint(), and transferSenseRhsRowNames().

Here is the call graph for this function:

const char* ILLraw_set_binaryBound ( rawlpdata lp,
int  i 
)

Definition at line 682 of file rawlp.c.

References ILL_FAILtrue_no_rval, rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by mps_set_bound().

int ILLraw_set_bounds_name ( rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file rawlp.c.

References rawlpdata::boundsname, and set_field_name().

Referenced by add_bounds().

Here is the call graph for this function:

const char* ILLraw_set_fixedBound ( rawlpdata lp,
int  i,
EGlpNum_t  bnd 
)

Definition at line 647 of file rawlp.c.

References ILL_FAILtrue_no_rval, rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by mps_set_bound(), and read_bounds().

const char* ILLraw_set_lowerBound ( rawlpdata lp,
int  i,
EGlpNum_t  bnd 
)

Definition at line 610 of file rawlp.c.

References ILL_FAILtrue_no_rval, rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, and NULL.

Referenced by mps_set_bound(), and read_bounds().

int ILLraw_set_ranges_name ( rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file rawlp.c.

References rawlpdata::rangesname, and set_field_name().

Referenced by add_ranges().

Here is the call graph for this function:

int ILLraw_set_rhs_name ( rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file rawlp.c.

References rawlpdata::rhsname, and set_field_name().

Referenced by add_rhs().

Here is the call graph for this function:

const char* ILLraw_set_unbound ( rawlpdata lp,
int  colind 
)

Definition at line 665 of file rawlp.c.

References ILL_FAILtrue_no_rval, ILL_MAXDOUBLE, ILL_MINDOUBLE, rawlpdata::lbind, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by mps_set_bound(), and read_bounds().

const char* ILLraw_set_upperBound ( rawlpdata lp,
int  i,
EGlpNum_t  bnd 
)

Definition at line 626 of file rawlp.c.

References ILL_FAILtrue_no_rval, rawlpdata::lower, rawlpdata::ncols, NULL, rawlpdata::ubind, and rawlpdata::upper.

Referenced by mps_set_bound(), and read_bounds().

char* ILLraw_unique_name ( ILLsymboltab tab,
char *  prefix,
int  i 
)

int ILLrawlpdata_to_lpdata ( rawlpdata raw,
ILLlpdata lp 
)

Definition at line 1495 of file rawlp.c.

References convert_rawlpdata_to_lpdata(), ILL_IFDOTRACE, ILL_RESULT, ILLlp_add_logicals(), and ILLprint_rawlpdata().

Referenced by ILLread().

Here is the call graph for this function:


Variable Documentation

const int ILL_SOS_TYPE1

Referenced by mps_read_marker_line().

const int ILL_SOS_TYPE2

Referenced by mps_read_marker_line().


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