mpq_rawlp.c File Reference

#include "qs_config.h"
#include "config.h"
#include "mpq_sortrus.h"
#include "mpq_iqsutil.h"
#include "mpq_rawlp.h"
#include "allocrus.h"

Include dependency graph for mpq_rawlp.c:

Go to the source code of this file.

Functions

 ILL_PTRWORLD_ROUTINES (ILL_PTRWORLD_LISTFREE_ROUTINE(mpq_colptr, colptralloc, colptr_bulkalloc, colptrfree)
static int mpq_buildMatrix (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *rowindex, int *colindex)
static int mpq_buildSosInfo (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *colindex)
static int mpq_convert_rawlpdata_to_lpdata (mpq_rawlpdata *raw, mpq_ILLlpdata *lp)
static int mpq_ILLcheck_rawlpdata (mpq_rawlpdata *lp)
mpq_colptrmpq_ILLcolptralloc (ILLptrworld *p)
int mpq_ILLdata_error (mpq_qserror_collector *collector, const char *format,...)
void mpq_ILLdata_warn (mpq_qserror_collector *collector, const char *format,...)
void mpq_ILLfree_rawlpdata (mpq_rawlpdata *lp)
void mpq_ILLinit_rawlpdata (mpq_rawlpdata *lp, mpq_qserror_collector *collector)
static int mpq_ILLmsg (mpq_qserror_collector *collector, int isError, const char *format, va_list args)
void mpq_ILLprint_rawlpdata (mpq_rawlpdata *lp)
int mpq_ILLraw_add_col (mpq_rawlpdata *lp, const char *name, int intmarker)
int mpq_ILLraw_add_col_coef (mpq_rawlpdata *lp, int colind, int rowind, mpq_t coef)
int mpq_ILLraw_add_ranges_coef (mpq_rawlpdata *lp, int rowind, mpq_t coef)
int mpq_ILLraw_add_row (mpq_rawlpdata *lp, const char *name, int sense, const mpq_t rhs)
int mpq_ILLraw_add_sos (mpq_rawlpdata *lp, int tp)
int mpq_ILLraw_add_sos_member (mpq_rawlpdata *lp, int colind)
static int mpq_ILLraw_check_bounds (mpq_rawlpdata *lp)
void mpq_ILLraw_clear_matrix (mpq_rawlpdata *lp)
const char * mpq_ILLraw_colname (mpq_rawlpdata *lp, int i)
int mpq_ILLraw_default_lower (mpq_ILLlpdata *lp, int i)
int mpq_ILLraw_default_upper (mpq_ILLlpdata *lp, int i, int ri)
int mpq_ILLraw_fill_in_bounds (mpq_rawlpdata *lp)
int mpq_ILLraw_fill_in_rownames (mpq_rawlpdata *lp)
int mpq_ILLraw_first_nondefault_bound (mpq_ILLlpdata *lp)
int mpq_ILLraw_init_bounds (mpq_rawlpdata *lp)
int mpq_ILLraw_init_ranges (mpq_rawlpdata *lp)
int mpq_ILLraw_init_rhs (mpq_rawlpdata *lp)
int mpq_ILLraw_is_mem_other_sos (mpq_rawlpdata *lp, int colind)
const char * mpq_ILLraw_rowname (mpq_rawlpdata *lp, int i)
const char * mpq_ILLraw_set_binaryBound (mpq_rawlpdata *lp, int i)
int mpq_ILLraw_set_bounds_name (mpq_rawlpdata *lp, const char *name, int *skip)
const char * mpq_ILLraw_set_fixedBound (mpq_rawlpdata *lp, int i, mpq_t bnd)
const char * mpq_ILLraw_set_lowerBound (mpq_rawlpdata *lp, int i, mpq_t bnd)
int mpq_ILLraw_set_ranges_name (mpq_rawlpdata *lp, const char *name, int *skip)
int mpq_ILLraw_set_rhs_name (mpq_rawlpdata *lp, const char *name, int *skip)
const char * mpq_ILLraw_set_unbound (mpq_rawlpdata *lp, int i)
const char * mpq_ILLraw_set_upperBound (mpq_rawlpdata *lp, int i, mpq_t bnd)
int mpq_ILLrawlpdata_to_lpdata (mpq_rawlpdata *raw, mpq_ILLlpdata *lp)
static int mpq_initStructmap (mpq_ILLlpdata *lp)
static void mpq_safeRegister (ILLsymboltab *tab, const char *name, int i)
static int mpq_set_field_name (char **field, const char *name, int *skip)
static int mpq_transferColNamesLowerUpperIntMarker (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *colindex)
static int mpq_transferObjective (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *colindex)
static int mpq_transferRanges (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *rowindex)
static int mpq_transferSenseRhsRowNames (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *rowindex)
static int mpq_whichColsAreUsed (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *colindex)
static int mpq_whichRowsAreUsed (mpq_rawlpdata *raw, mpq_ILLlpdata *lp, int *rowindex)

Variables

static int TRACE = 0


Function Documentation

ILL_PTRWORLD_ROUTINES ( ILL_PTRWORLD_LISTFREE_ROUTINE (  mpq_colptr,
colptralloc  ,
colptr_bulkalloc  ,
colptrfree   
)

Definition at line 40 of file mpq_rawlp.c.

References mpq_ILL_MAXDOUBLE, and mpq_ILL_MINDOUBLE.

static int mpq_buildMatrix ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  rowindex,
int *  colindex 
) [static]

Definition at line 1131 of file mpq_rawlp.c.

References mpq_ILLlpdata::A, mpq_ILLlpdata::colnames, mpq_rawlpdata::cols, mpq_rawlpdata::error_collector, ILL_SAFE_MALLOC, mpq_ILLmatrix::matbeg, mpq_ILLmatrix::matcnt, mpq_ILLdata_warn(), mpq_rawlpdata::ncols, mpq_ILLlpdata::ncols, mpq_colptr::next, mpq_ILLlpdata::nrows, NULL, mpq_ILLlpdata::nzcount, and mpq_colptr::this_val.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_buildSosInfo ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 1344 of file mpq_rawlp.c.

References mpq_sosptr::first, ILL_SAFE_MALLOC, mpq_ILLlpdata::is_sos_mem, mpq_rawlpdata::is_sos_member, mpq_ILLmatrix::matbeg, mpq_ILLmatrix::matcnt, mpq_ILLmatrix::matcols, mpq_ILLmatrix::matcolsize, mpq_ILLmatrix::matfree, mpq_ILLmatrix::matind, mpq_ILLmatrix::matrows, mpq_ILLmatrix::matsize, mpq_ILLmatrix::matval, mpq_rawlpdata::ncols, mpq_ILLlpdata::ncols, mpq_sosptr::nelem, mpq_rawlpdata::nsos, mpq_ILLlpdata::sos, mpq_rawlpdata::sos_col, mpq_rawlpdata::sos_set, mpq_ILLlpdata::sos_type, mpq_rawlpdata::sos_weight, and mpq_sosptr::type.

Referenced by mpq_convert_rawlpdata_to_lpdata().

static int mpq_convert_rawlpdata_to_lpdata ( mpq_rawlpdata raw,
mpq_ILLlpdata lp 
) [static]

Definition at line 1407 of file mpq_rawlp.c.

References mpq_ILLlpdata::A, mpq_ILLlpdata::colsize, mpq_ILLlpdata::coltab, mpq_rawlpdata::error_collector, ILL_CLEANUP_IF, ILL_FAILfalse, ILL_FAILtrue, ILL_IFDOTRACE, ILL_IFFREE, ILL_RESULT, ILL_SAFE_MALLOC, ILLsymboltab_create(), mpq_buildMatrix(), mpq_buildSosInfo(), mpq_ILL_MAX, mpq_ILL_MIN, mpq_ILLcheck_rawlpdata(), mpq_ILLdata_error(), mpq_ILLdata_warn(), mpq_ILLfree_rawlpdata(), mpq_ILLlpdata_init(), mpq_ILLmatrix_prt(), mpq_initStructmap(), mpq_transferColNamesLowerUpperIntMarker(), mpq_transferObjective(), mpq_transferRanges(), mpq_transferSenseRhsRowNames(), mpq_whichColsAreUsed(), mpq_whichRowsAreUsed(), mpq_rawlpdata::name, mpq_ILLlpdata::ncols, mpq_rawlpdata::ncols, mpq_ILLlpdata::nrows, mpq_rawlpdata::nrows, mpq_ILLlpdata::nstruct, NULL, mpq_rawlpdata::objindex, mpq_rawlpdata::objsense, mpq_ILLlpdata::objsense, mpq_ILLlpdata::probname, mpq_rawlpdata::ranges, mpq_ILLlpdata::rowsize, mpq_ILLlpdata::rowtab, and mpq_ILLlpdata::structsize.

Referenced by mpq_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_ILLcheck_rawlpdata ( mpq_rawlpdata lp  )  [static]

Definition at line 496 of file mpq_rawlp.c.

References mpq_rawlpdata::error_collector, mpq_sosptr::first, ILL_FAILfalse, ILL_SAFE_MALLOC, mpq_ILLdata_error(), mpq_ILLraw_colname(), mpq_ILLraw_rowname(), mpq_ILLutil_EGlpNum_perm_quicksort(), mpq_rawlpdata::ncols, mpq_sosptr::nelem, NULL, and mpq_rawlpdata::objindex.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

mpq_colptr* mpq_ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file mpq_rawlp.c.

References mpq_colptr::coef.

Referenced by mpq_ILLraw_add_col_coef(), and mpq_ILLraw_add_ranges_coef().

int mpq_ILLdata_error ( mpq_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file mpq_rawlp.c.

References mpq_ILLmsg().

Referenced by mpq_convert_rawlpdata_to_lpdata(), mpq_ILLcheck_rawlpdata(), mpq_ILLraw_check_bounds(), mpq_ILLwrite_lp(), mpq_mps_fill_in(), and mpq_transferRanges().

Here is the call graph for this function:

void mpq_ILLdata_warn ( mpq_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file mpq_rawlp.c.

References mpq_ILLmsg().

Referenced by mpq_buildMatrix(), mpq_convert_rawlpdata_to_lpdata(), mpq_fix_names(), mpq_ILLraw_fill_in_rownames(), mpq_ILLwrite_mps(), mpq_mps_fill_in(), and mpq_transferObjective().

Here is the call graph for this function:

void mpq_ILLfree_rawlpdata ( mpq_rawlpdata lp  ) 

Definition at line 144 of file mpq_rawlp.c.

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

Referenced by mpq_convert_rawlpdata_to_lpdata(), mpq_ILLeditor(), and mpq_ILLread().

Here is the call graph for this function:

void mpq_ILLinit_rawlpdata ( mpq_rawlpdata lp,
mpq_qserror_collector collector 
)

Definition at line 70 of file mpq_rawlp.c.

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

Referenced by mpq_ILLfree_rawlpdata(), mpq_ILLread(), mpq_ILLread_lp(), and mpq_pull_info_from_p().

Here is the call graph for this function:

static int mpq_ILLmsg ( mpq_qserror_collector collector,
int  isError,
const char *  format,
va_list  args 
) [static]

Definition at line 1697 of file mpq_rawlp.c.

References mpq_ILLformat_error, mpq_ILLformat_error_create(), mpq_ILLformat_error_delete(), NULL, QS_DATA_ERROR, and QS_DATA_WARN.

Referenced by mpq_ILLdata_error(), and mpq_ILLdata_warn().

Here is the call graph for this function:

void mpq_ILLprint_rawlpdata ( mpq_rawlpdata lp  ) 

Definition at line 1561 of file mpq_rawlp.c.

References mpq_colptr::coef, mpq_rawlpdata::cols, mpq_ILLraw_colname(), mpq_ILLraw_rowname(), mpq_rawlpdata::name, mpq_rawlpdata::ncols, mpq_colptr::next, mpq_rawlpdata::nrows, mpq_rawlpdata::rhs, mpq_rawlpdata::rowsense, and mpq_colptr::this_val.

Referenced by mpq_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

int mpq_ILLraw_add_col ( mpq_rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file mpq_rawlp.c.

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

Referenced by mpq_add_var(), mpq_mps_read_col_line(), and mpq_pull_info_from_p().

Here is the call graph for this function:

int mpq_ILLraw_add_col_coef ( mpq_rawlpdata lp,
int  colind,
int  rowind,
mpq_t  coef 
)

Definition at line 319 of file mpq_rawlp.c.

References mpq_colptr::coef, mpq_rawlpdata::cols, mpq_ILLcolptralloc(), mpq_colptr::next, mpq_rawlpdata::ptrworld, and mpq_colptr::this_val.

Referenced by mpq_add_var(), and mpq_mps_read_col_line().

Here is the call graph for this function:

int mpq_ILLraw_add_ranges_coef ( mpq_rawlpdata lp,
int  rowind,
mpq_t  coef 
)

Definition at line 339 of file mpq_rawlp.c.

References mpq_colptr::coef, mpq_ILLcolptralloc(), mpq_colptr::next, mpq_rawlpdata::ptrworld, mpq_rawlpdata::ranges, mpq_rawlpdata::rangesind, and mpq_colptr::this_val.

Referenced by mpq_add_ranges().

Here is the call graph for this function:

int mpq_ILLraw_add_row ( mpq_rawlpdata lp,
const char *  name,
int  sense,
const mpq_t  rhs 
)

Definition at line 455 of file mpq_rawlp.c.

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

Referenced by mpq_add_row(), mpq_ILLread_one_constraint(), mpq_pull_info_from_p(), and mpq_read_objective().

Here is the call graph for this function:

int mpq_ILLraw_add_sos ( mpq_rawlpdata lp,
int  tp 
)

Definition at line 358 of file mpq_rawlp.c.

References mpq_sosptr::first, ILL_RETURN, mpq_sosptr::nelem, mpq_rawlpdata::nsos, mpq_rawlpdata::sos_set, mpq_rawlpdata::sos_setsize, and mpq_sosptr::type.

Referenced by mpq_mps_read_marker_line().

int mpq_ILLraw_add_sos_member ( mpq_rawlpdata lp,
int  colind 
)

Definition at line 404 of file mpq_rawlp.c.

References ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, mpq_ILLraw_is_mem_other_sos(), and mpq_rawlpdata::nsos.

Referenced by mpq_mps_read_col_line().

Here is the call graph for this function:

static int mpq_ILLraw_check_bounds ( mpq_rawlpdata lp  )  [static]

Definition at line 746 of file mpq_rawlp.c.

References mpq_rawlpdata::error_collector, ILL_FAILtrue, mpq_rawlpdata::lbind, mpq_rawlpdata::lower, mpq_ILLdata_error(), mpq_ILLraw_colname(), mpq_rawlpdata::ncols, NULL, mpq_rawlpdata::ubind, and mpq_rawlpdata::upper.

Here is the call graph for this function:

void mpq_ILLraw_clear_matrix ( mpq_rawlpdata lp  ) 

Definition at line 118 of file mpq_rawlp.c.

References mpq_rawlpdata::cols, mpq_rawlpdata::ncols, mpq_colptr::next, NULL, and mpq_rawlpdata::ptrworld.

Referenced by mpq_add_col(), mpq_add_row(), and mpq_ILLfree_rawlpdata().

const char* mpq_ILLraw_colname ( mpq_rawlpdata lp,
int  i 
)

Definition at line 213 of file mpq_rawlp.c.

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

Referenced by mpq_fill_matrix(), mpq_ILLcheck_rawlpdata(), mpq_ILLprint_rawlpdata(), mpq_ILLraw_check_bounds(), mpq_mps_read_col_line(), mpq_read_bounds(), mpq_transferColNamesLowerUpperIntMarker(), and mpq_transferObjective().

Here is the call graph for this function:

int mpq_ILLraw_default_lower ( mpq_ILLlpdata lp,
int  i 
)

Definition at line 786 of file mpq_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, mpq_ILLlpdata::lower, mpq_ILL_MINDOUBLE, mpq_ILLlpdata::ncols, NULL, and mpq_ILLlpdata::upper.

Referenced by mpq_ILLraw_first_nondefault_bound(), and mpq_write_bounds().

int mpq_ILLraw_default_upper ( mpq_ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file mpq_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, mpq_ILLlpdata::intmarker, mpq_ILLlpdata::lower, mpq_ILL_MAXDOUBLE, mpq_ILLlpdata::ncols, NULL, and mpq_ILLlpdata::upper.

Referenced by mpq_ILLraw_first_nondefault_bound(), and mpq_write_bounds().

int mpq_ILLraw_fill_in_bounds ( mpq_rawlpdata lp  ) 

Definition at line 699 of file mpq_rawlp.c.

References ILL_FAILtrue, mpq_rawlpdata::lbind, mpq_rawlpdata::lower, mpq_ILL_MINDOUBLE, mpq_ILLraw_init_bounds(), mpq_rawlpdata::ncols, NULL, mpq_rawlpdata::ubind, and mpq_rawlpdata::upper.

Referenced by mpq_ILLread_lp().

Here is the call graph for this function:

int mpq_ILLraw_fill_in_rownames ( mpq_rawlpdata lp  ) 

Definition at line 834 of file mpq_rawlp.c.

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

Referenced by mpq_ILLread_lp().

Here is the call graph for this function:

int mpq_ILLraw_first_nondefault_bound ( mpq_ILLlpdata lp  ) 

Definition at line 769 of file mpq_rawlp.c.

References ILL_FAILtrue_no_rval, mpq_ILLlpdata::lower, mpq_ILLraw_default_lower(), mpq_ILLraw_default_upper(), mpq_ILLlpdata::nstruct, NULL, mpq_ILLlpdata::structmap, and mpq_ILLlpdata::upper.

Referenced by mpq_write_bounds().

Here is the call graph for this function:

int mpq_ILLraw_init_bounds ( mpq_rawlpdata lp  ) 

Definition at line 586 of file mpq_rawlp.c.

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

Referenced by mpq_ILLraw_fill_in_bounds(), mpq_read_bounds(), and mpq_read_mps_section().

int mpq_ILLraw_init_ranges ( mpq_rawlpdata lp  ) 

Definition at line 300 of file mpq_rawlp.c.

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

Referenced by mpq_read_mps_section().

int mpq_ILLraw_init_rhs ( mpq_rawlpdata lp  ) 

Definition at line 281 of file mpq_rawlp.c.

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

Referenced by mpq_read_mps_section().

int mpq_ILLraw_is_mem_other_sos ( mpq_rawlpdata lp,
int  colind 
)

Definition at line 396 of file mpq_rawlp.c.

References mpq_rawlpdata::is_sos_member, and mpq_rawlpdata::nsos.

Referenced by mpq_ILLraw_add_sos_member(), and mpq_mps_read_col_line().

const char* mpq_ILLraw_rowname ( mpq_rawlpdata lp,
int  i 
)

Definition at line 200 of file mpq_rawlp.c.

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

Referenced by mpq_add_ranges(), mpq_add_rhs(), mpq_add_var(), mpq_ILLcheck_rawlpdata(), mpq_ILLprint_rawlpdata(), mpq_ILLread_constraint_expr(), mpq_ILLread_one_constraint(), and mpq_transferSenseRhsRowNames().

Here is the call graph for this function:

const char* mpq_ILLraw_set_binaryBound ( mpq_rawlpdata lp,
int  i 
)

Definition at line 682 of file mpq_rawlp.c.

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

Referenced by mpq_mps_set_bound().

int mpq_ILLraw_set_bounds_name ( mpq_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file mpq_rawlp.c.

References mpq_rawlpdata::boundsname, and mpq_set_field_name().

Referenced by mpq_add_bounds().

Here is the call graph for this function:

const char* mpq_ILLraw_set_fixedBound ( mpq_rawlpdata lp,
int  i,
mpq_t  bnd 
)

Definition at line 647 of file mpq_rawlp.c.

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

Referenced by mpq_mps_set_bound(), and mpq_read_bounds().

const char* mpq_ILLraw_set_lowerBound ( mpq_rawlpdata lp,
int  i,
mpq_t  bnd 
)

Definition at line 610 of file mpq_rawlp.c.

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

Referenced by mpq_mps_set_bound(), and mpq_read_bounds().

int mpq_ILLraw_set_ranges_name ( mpq_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file mpq_rawlp.c.

References mpq_set_field_name(), and mpq_rawlpdata::rangesname.

Referenced by mpq_add_ranges().

Here is the call graph for this function:

int mpq_ILLraw_set_rhs_name ( mpq_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file mpq_rawlp.c.

References mpq_set_field_name(), and mpq_rawlpdata::rhsname.

Referenced by mpq_add_rhs().

Here is the call graph for this function:

const char* mpq_ILLraw_set_unbound ( mpq_rawlpdata lp,
int  i 
)

Definition at line 665 of file mpq_rawlp.c.

References ILL_FAILtrue_no_rval, mpq_rawlpdata::lbind, mpq_rawlpdata::lower, mpq_ILL_MAXDOUBLE, mpq_ILL_MINDOUBLE, mpq_rawlpdata::ncols, NULL, mpq_rawlpdata::ubind, and mpq_rawlpdata::upper.

Referenced by mpq_mps_set_bound(), and mpq_read_bounds().

const char* mpq_ILLraw_set_upperBound ( mpq_rawlpdata lp,
int  i,
mpq_t  bnd 
)

Definition at line 626 of file mpq_rawlp.c.

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

Referenced by mpq_mps_set_bound(), and mpq_read_bounds().

int mpq_ILLrawlpdata_to_lpdata ( mpq_rawlpdata raw,
mpq_ILLlpdata lp 
)

Definition at line 1495 of file mpq_rawlp.c.

References ILL_IFDOTRACE, ILL_RESULT, mpq_convert_rawlpdata_to_lpdata(), mpq_ILLlp_add_logicals(), and mpq_ILLprint_rawlpdata().

Referenced by mpq_ILLread().

Here is the call graph for this function:

static int mpq_initStructmap ( mpq_ILLlpdata lp  )  [static]

Definition at line 1327 of file mpq_rawlp.c.

References ILL_RETURN, ILL_SAFE_MALLOC, mpq_ILLlpdata::nstruct, and mpq_ILLlpdata::structmap.

Referenced by mpq_convert_rawlpdata_to_lpdata().

static void mpq_safeRegister ( ILLsymboltab tab,
const char *  name,
int  i 
) [static]

Definition at line 1063 of file mpq_rawlp.c.

References ILL_FAILfalse, and ILLsymboltab_register().

Referenced by mpq_transferSenseRhsRowNames().

Here is the call graph for this function:

static int mpq_set_field_name ( char **  field,
const char *  name,
int *  skip 
) [static]

Definition at line 1514 of file mpq_rawlp.c.

References ILL_RETURN.

Referenced by mpq_ILLraw_set_bounds_name(), mpq_ILLraw_set_ranges_name(), and mpq_ILLraw_set_rhs_name().

static int mpq_transferColNamesLowerUpperIntMarker ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 997 of file mpq_rawlp.c.

References mpq_ILLlpdata::colnames, mpq_ILLlpdata::coltab, ILL_FAILfalse, ILL_IFDOTRACE, ILL_IFFREE, ILL_IFTRACE, ILL_RETURN, ILL_SAFE_MALLOC, ILLsymboltab_register(), mpq_rawlpdata::intmarker, mpq_ILLlpdata::intmarker, mpq_ILLlpdata::lower, mpq_rawlpdata::lower, mpq_ILLraw_colname(), mpq_rawlpdata::ncols, mpq_ILLlpdata::ncols, mpq_ILLlpdata::upper, and mpq_rawlpdata::upper.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_transferObjective ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 948 of file mpq_rawlp.c.

References mpq_colptr::coef, mpq_rawlpdata::cols, mpq_rawlpdata::error_collector, ILL_FAILfalse, ILL_SAFE_MALLOC, mpq_ILLdata_warn(), mpq_ILLraw_colname(), mpq_rawlpdata::ncols, mpq_ILLlpdata::ncols, mpq_colptr::next, NULL, mpq_ILLlpdata::obj, mpq_rawlpdata::objindex, and mpq_colptr::this_val.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_transferRanges ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1258 of file mpq_rawlp.c.

References mpq_colptr::coef, mpq_rawlpdata::error_collector, mpq_ILLdata_error(), mpq_colptr::next, mpq_ILLlpdata::nrows, mpq_rawlpdata::ranges, mpq_ILLlpdata::rangeval, mpq_ILLlpdata::rhs, mpq_rawlpdata::rowsense, mpq_ILLlpdata::sense, and mpq_colptr::this_val.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_transferSenseRhsRowNames ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1077 of file mpq_rawlp.c.

References ILL_FAILfalse, ILL_SAFE_MALLOC, mpq_ILLraw_rowname(), mpq_safeRegister(), mpq_ILLlpdata::nrows, NULL, mpq_rawlpdata::objindex, mpq_ILLlpdata::objname, mpq_ILLlpdata::refind, mpq_ILLlpdata::refrowname, mpq_ILLlpdata::rhs, mpq_ILLlpdata::rownames, mpq_ILLlpdata::rowtab, and mpq_ILLlpdata::sense.

Referenced by mpq_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpq_whichColsAreUsed ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 864 of file mpq_rawlp.c.

References mpq_rawlpdata::cols, ILL_SAFE_MALLOC, mpq_rawlpdata::ncols, mpq_colptr::next, NULL, mpq_rawlpdata::objindex, mpq_rawlpdata::rowsense, and mpq_colptr::this_val.

Referenced by mpq_convert_rawlpdata_to_lpdata().

static int mpq_whichRowsAreUsed ( mpq_rawlpdata raw,
mpq_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 921 of file mpq_rawlp.c.

References mpq_ILLlpdata::nrows, mpq_rawlpdata::nrows, and mpq_rawlpdata::rowsense.

Referenced by mpq_convert_rawlpdata_to_lpdata().


Variable Documentation

int TRACE = 0 [static]

Definition at line 38 of file mpq_rawlp.c.


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