mpf_rawlp.c File Reference

#include "qs_config.h"
#include "config.h"
#include "mpf_sortrus.h"
#include "mpf_iqsutil.h"
#include "mpf_rawlp.h"
#include "allocrus.h"

Include dependency graph for mpf_rawlp.c:

Go to the source code of this file.

Functions

 ILL_PTRWORLD_ROUTINES (ILL_PTRWORLD_LISTFREE_ROUTINE(mpf_colptr, colptralloc, colptr_bulkalloc, colptrfree)
static int mpf_buildMatrix (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *rowindex, int *colindex)
static int mpf_buildSosInfo (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *colindex)
static int mpf_convert_rawlpdata_to_lpdata (mpf_rawlpdata *raw, mpf_ILLlpdata *lp)
static int mpf_ILLcheck_rawlpdata (mpf_rawlpdata *lp)
mpf_colptrmpf_ILLcolptralloc (ILLptrworld *p)
int mpf_ILLdata_error (mpf_qserror_collector *collector, const char *format,...)
void mpf_ILLdata_warn (mpf_qserror_collector *collector, const char *format,...)
void mpf_ILLfree_rawlpdata (mpf_rawlpdata *lp)
void mpf_ILLinit_rawlpdata (mpf_rawlpdata *lp, mpf_qserror_collector *collector)
static int mpf_ILLmsg (mpf_qserror_collector *collector, int isError, const char *format, va_list args)
void mpf_ILLprint_rawlpdata (mpf_rawlpdata *lp)
int mpf_ILLraw_add_col (mpf_rawlpdata *lp, const char *name, int intmarker)
int mpf_ILLraw_add_col_coef (mpf_rawlpdata *lp, int colind, int rowind, mpf_t coef)
int mpf_ILLraw_add_ranges_coef (mpf_rawlpdata *lp, int rowind, mpf_t coef)
int mpf_ILLraw_add_row (mpf_rawlpdata *lp, const char *name, int sense, const mpf_t rhs)
int mpf_ILLraw_add_sos (mpf_rawlpdata *lp, int tp)
int mpf_ILLraw_add_sos_member (mpf_rawlpdata *lp, int colind)
static int mpf_ILLraw_check_bounds (mpf_rawlpdata *lp)
void mpf_ILLraw_clear_matrix (mpf_rawlpdata *lp)
const char * mpf_ILLraw_colname (mpf_rawlpdata *lp, int i)
int mpf_ILLraw_default_lower (mpf_ILLlpdata *lp, int i)
int mpf_ILLraw_default_upper (mpf_ILLlpdata *lp, int i, int ri)
int mpf_ILLraw_fill_in_bounds (mpf_rawlpdata *lp)
int mpf_ILLraw_fill_in_rownames (mpf_rawlpdata *lp)
int mpf_ILLraw_first_nondefault_bound (mpf_ILLlpdata *lp)
int mpf_ILLraw_init_bounds (mpf_rawlpdata *lp)
int mpf_ILLraw_init_ranges (mpf_rawlpdata *lp)
int mpf_ILLraw_init_rhs (mpf_rawlpdata *lp)
int mpf_ILLraw_is_mem_other_sos (mpf_rawlpdata *lp, int colind)
const char * mpf_ILLraw_rowname (mpf_rawlpdata *lp, int i)
const char * mpf_ILLraw_set_binaryBound (mpf_rawlpdata *lp, int i)
int mpf_ILLraw_set_bounds_name (mpf_rawlpdata *lp, const char *name, int *skip)
const char * mpf_ILLraw_set_fixedBound (mpf_rawlpdata *lp, int i, mpf_t bnd)
const char * mpf_ILLraw_set_lowerBound (mpf_rawlpdata *lp, int i, mpf_t bnd)
int mpf_ILLraw_set_ranges_name (mpf_rawlpdata *lp, const char *name, int *skip)
int mpf_ILLraw_set_rhs_name (mpf_rawlpdata *lp, const char *name, int *skip)
const char * mpf_ILLraw_set_unbound (mpf_rawlpdata *lp, int i)
const char * mpf_ILLraw_set_upperBound (mpf_rawlpdata *lp, int i, mpf_t bnd)
int mpf_ILLrawlpdata_to_lpdata (mpf_rawlpdata *raw, mpf_ILLlpdata *lp)
static int mpf_initStructmap (mpf_ILLlpdata *lp)
static void mpf_safeRegister (ILLsymboltab *tab, const char *name, int i)
static int mpf_set_field_name (char **field, const char *name, int *skip)
static int mpf_transferColNamesLowerUpperIntMarker (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *colindex)
static int mpf_transferObjective (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *colindex)
static int mpf_transferRanges (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *rowindex)
static int mpf_transferSenseRhsRowNames (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *rowindex)
static int mpf_whichColsAreUsed (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *colindex)
static int mpf_whichRowsAreUsed (mpf_rawlpdata *raw, mpf_ILLlpdata *lp, int *rowindex)

Variables

static int TRACE = 0


Function Documentation

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

Definition at line 40 of file mpf_rawlp.c.

References mpf_ILL_MAXDOUBLE, and mpf_ILL_MINDOUBLE.

static int mpf_buildMatrix ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  rowindex,
int *  colindex 
) [static]

Definition at line 1131 of file mpf_rawlp.c.

References mpf_ILLlpdata::A, mpf_ILLlpdata::colnames, mpf_rawlpdata::cols, mpf_rawlpdata::error_collector, ILL_SAFE_MALLOC, mpf_ILLmatrix::matbeg, mpf_ILLmatrix::matcnt, mpf_ILLdata_warn(), mpf_rawlpdata::ncols, mpf_ILLlpdata::ncols, mpf_colptr::next, mpf_ILLlpdata::nrows, NULL, mpf_ILLlpdata::nzcount, and mpf_colptr::this_val.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_buildSosInfo ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 1344 of file mpf_rawlp.c.

References mpf_sosptr::first, ILL_SAFE_MALLOC, mpf_ILLlpdata::is_sos_mem, mpf_rawlpdata::is_sos_member, mpf_ILLmatrix::matbeg, mpf_ILLmatrix::matcnt, mpf_ILLmatrix::matcols, mpf_ILLmatrix::matcolsize, mpf_ILLmatrix::matfree, mpf_ILLmatrix::matind, mpf_ILLmatrix::matrows, mpf_ILLmatrix::matsize, mpf_ILLmatrix::matval, mpf_rawlpdata::ncols, mpf_ILLlpdata::ncols, mpf_sosptr::nelem, mpf_rawlpdata::nsos, mpf_ILLlpdata::sos, mpf_rawlpdata::sos_col, mpf_rawlpdata::sos_set, mpf_ILLlpdata::sos_type, mpf_rawlpdata::sos_weight, and mpf_sosptr::type.

Referenced by mpf_convert_rawlpdata_to_lpdata().

static int mpf_convert_rawlpdata_to_lpdata ( mpf_rawlpdata raw,
mpf_ILLlpdata lp 
) [static]

Definition at line 1407 of file mpf_rawlp.c.

References mpf_ILLlpdata::A, mpf_ILLlpdata::colsize, mpf_ILLlpdata::coltab, mpf_rawlpdata::error_collector, ILL_CLEANUP_IF, ILL_FAILfalse, ILL_FAILtrue, ILL_IFDOTRACE, ILL_IFFREE, ILL_RESULT, ILL_SAFE_MALLOC, ILLsymboltab_create(), mpf_buildMatrix(), mpf_buildSosInfo(), mpf_ILL_MAX, mpf_ILL_MIN, mpf_ILLcheck_rawlpdata(), mpf_ILLdata_error(), mpf_ILLdata_warn(), mpf_ILLfree_rawlpdata(), mpf_ILLlpdata_init(), mpf_ILLmatrix_prt(), mpf_initStructmap(), mpf_transferColNamesLowerUpperIntMarker(), mpf_transferObjective(), mpf_transferRanges(), mpf_transferSenseRhsRowNames(), mpf_whichColsAreUsed(), mpf_whichRowsAreUsed(), mpf_rawlpdata::name, mpf_ILLlpdata::ncols, mpf_rawlpdata::ncols, mpf_ILLlpdata::nrows, mpf_rawlpdata::nrows, mpf_ILLlpdata::nstruct, NULL, mpf_rawlpdata::objindex, mpf_rawlpdata::objsense, mpf_ILLlpdata::objsense, mpf_ILLlpdata::probname, mpf_rawlpdata::ranges, mpf_ILLlpdata::rowsize, mpf_ILLlpdata::rowtab, and mpf_ILLlpdata::structsize.

Referenced by mpf_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_ILLcheck_rawlpdata ( mpf_rawlpdata lp  )  [static]

Definition at line 496 of file mpf_rawlp.c.

References mpf_rawlpdata::error_collector, mpf_sosptr::first, ILL_FAILfalse, ILL_SAFE_MALLOC, mpf_ILLdata_error(), mpf_ILLraw_colname(), mpf_ILLraw_rowname(), mpf_ILLutil_EGlpNum_perm_quicksort(), mpf_rawlpdata::ncols, mpf_sosptr::nelem, NULL, and mpf_rawlpdata::objindex.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

mpf_colptr* mpf_ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file mpf_rawlp.c.

References mpf_colptr::coef.

Referenced by mpf_ILLraw_add_col_coef(), and mpf_ILLraw_add_ranges_coef().

int mpf_ILLdata_error ( mpf_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file mpf_rawlp.c.

References mpf_ILLmsg().

Referenced by mpf_convert_rawlpdata_to_lpdata(), mpf_ILLcheck_rawlpdata(), mpf_ILLraw_check_bounds(), mpf_ILLwrite_lp(), mpf_mps_fill_in(), and mpf_transferRanges().

Here is the call graph for this function:

void mpf_ILLdata_warn ( mpf_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file mpf_rawlp.c.

References mpf_ILLmsg().

Referenced by mpf_buildMatrix(), mpf_convert_rawlpdata_to_lpdata(), mpf_fix_names(), mpf_ILLraw_fill_in_rownames(), mpf_ILLwrite_mps(), mpf_mps_fill_in(), and mpf_transferObjective().

Here is the call graph for this function:

void mpf_ILLfree_rawlpdata ( mpf_rawlpdata lp  ) 

Definition at line 144 of file mpf_rawlp.c.

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

Referenced by mpf_convert_rawlpdata_to_lpdata(), mpf_ILLeditor(), and mpf_ILLread().

Here is the call graph for this function:

void mpf_ILLinit_rawlpdata ( mpf_rawlpdata lp,
mpf_qserror_collector collector 
)

Definition at line 70 of file mpf_rawlp.c.

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

Referenced by mpf_ILLfree_rawlpdata(), mpf_ILLread(), mpf_ILLread_lp(), and mpf_pull_info_from_p().

Here is the call graph for this function:

static int mpf_ILLmsg ( mpf_qserror_collector collector,
int  isError,
const char *  format,
va_list  args 
) [static]

Definition at line 1697 of file mpf_rawlp.c.

References mpf_ILLformat_error, mpf_ILLformat_error_create(), mpf_ILLformat_error_delete(), NULL, QS_DATA_ERROR, and QS_DATA_WARN.

Referenced by mpf_ILLdata_error(), and mpf_ILLdata_warn().

Here is the call graph for this function:

void mpf_ILLprint_rawlpdata ( mpf_rawlpdata lp  ) 

Definition at line 1561 of file mpf_rawlp.c.

References mpf_colptr::coef, mpf_rawlpdata::cols, mpf_ILLraw_colname(), mpf_ILLraw_rowname(), mpf_rawlpdata::name, mpf_rawlpdata::ncols, mpf_colptr::next, mpf_rawlpdata::nrows, mpf_rawlpdata::rhs, mpf_rawlpdata::rowsense, and mpf_colptr::this_val.

Referenced by mpf_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

int mpf_ILLraw_add_col ( mpf_rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file mpf_rawlp.c.

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

Referenced by mpf_add_var(), mpf_mps_read_col_line(), and mpf_pull_info_from_p().

Here is the call graph for this function:

int mpf_ILLraw_add_col_coef ( mpf_rawlpdata lp,
int  colind,
int  rowind,
mpf_t  coef 
)

Definition at line 319 of file mpf_rawlp.c.

References mpf_colptr::coef, mpf_rawlpdata::cols, mpf_ILLcolptralloc(), mpf_colptr::next, mpf_rawlpdata::ptrworld, and mpf_colptr::this_val.

Referenced by mpf_add_var(), and mpf_mps_read_col_line().

Here is the call graph for this function:

int mpf_ILLraw_add_ranges_coef ( mpf_rawlpdata lp,
int  rowind,
mpf_t  coef 
)

Definition at line 339 of file mpf_rawlp.c.

References mpf_colptr::coef, mpf_ILLcolptralloc(), mpf_colptr::next, mpf_rawlpdata::ptrworld, mpf_rawlpdata::ranges, mpf_rawlpdata::rangesind, and mpf_colptr::this_val.

Referenced by mpf_add_ranges().

Here is the call graph for this function:

int mpf_ILLraw_add_row ( mpf_rawlpdata lp,
const char *  name,
int  sense,
const mpf_t  rhs 
)

Definition at line 455 of file mpf_rawlp.c.

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

Referenced by mpf_add_row(), mpf_ILLread_one_constraint(), mpf_pull_info_from_p(), and mpf_read_objective().

Here is the call graph for this function:

int mpf_ILLraw_add_sos ( mpf_rawlpdata lp,
int  tp 
)

Definition at line 358 of file mpf_rawlp.c.

References mpf_sosptr::first, ILL_RETURN, mpf_sosptr::nelem, mpf_rawlpdata::nsos, mpf_rawlpdata::sos_set, mpf_rawlpdata::sos_setsize, and mpf_sosptr::type.

Referenced by mpf_mps_read_marker_line().

int mpf_ILLraw_add_sos_member ( mpf_rawlpdata lp,
int  colind 
)

Definition at line 404 of file mpf_rawlp.c.

References ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, mpf_ILLraw_is_mem_other_sos(), and mpf_rawlpdata::nsos.

Referenced by mpf_mps_read_col_line().

Here is the call graph for this function:

static int mpf_ILLraw_check_bounds ( mpf_rawlpdata lp  )  [static]

Definition at line 746 of file mpf_rawlp.c.

References mpf_rawlpdata::error_collector, ILL_FAILtrue, mpf_rawlpdata::lbind, mpf_rawlpdata::lower, mpf_ILLdata_error(), mpf_ILLraw_colname(), mpf_rawlpdata::ncols, NULL, mpf_rawlpdata::ubind, and mpf_rawlpdata::upper.

Here is the call graph for this function:

void mpf_ILLraw_clear_matrix ( mpf_rawlpdata lp  ) 

Definition at line 118 of file mpf_rawlp.c.

References mpf_rawlpdata::cols, mpf_rawlpdata::ncols, mpf_colptr::next, NULL, and mpf_rawlpdata::ptrworld.

Referenced by mpf_add_col(), mpf_add_row(), and mpf_ILLfree_rawlpdata().

const char* mpf_ILLraw_colname ( mpf_rawlpdata lp,
int  i 
)

Definition at line 213 of file mpf_rawlp.c.

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

Referenced by mpf_fill_matrix(), mpf_ILLcheck_rawlpdata(), mpf_ILLprint_rawlpdata(), mpf_ILLraw_check_bounds(), mpf_mps_read_col_line(), mpf_read_bounds(), mpf_transferColNamesLowerUpperIntMarker(), and mpf_transferObjective().

Here is the call graph for this function:

int mpf_ILLraw_default_lower ( mpf_ILLlpdata lp,
int  i 
)

Definition at line 786 of file mpf_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, mpf_ILLlpdata::lower, mpf_ILL_MINDOUBLE, mpf_ILLlpdata::ncols, NULL, and mpf_ILLlpdata::upper.

Referenced by mpf_ILLraw_first_nondefault_bound(), and mpf_write_bounds().

int mpf_ILLraw_default_upper ( mpf_ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file mpf_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, mpf_ILLlpdata::intmarker, mpf_ILLlpdata::lower, mpf_ILL_MAXDOUBLE, mpf_ILLlpdata::ncols, NULL, and mpf_ILLlpdata::upper.

Referenced by mpf_ILLraw_first_nondefault_bound(), and mpf_write_bounds().

int mpf_ILLraw_fill_in_bounds ( mpf_rawlpdata lp  ) 

Definition at line 699 of file mpf_rawlp.c.

References ILL_FAILtrue, mpf_rawlpdata::lbind, mpf_rawlpdata::lower, mpf_ILL_MINDOUBLE, mpf_ILLraw_init_bounds(), mpf_rawlpdata::ncols, NULL, mpf_rawlpdata::ubind, and mpf_rawlpdata::upper.

Referenced by mpf_ILLread_lp().

Here is the call graph for this function:

int mpf_ILLraw_fill_in_rownames ( mpf_rawlpdata lp  ) 

Definition at line 834 of file mpf_rawlp.c.

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

Referenced by mpf_ILLread_lp().

Here is the call graph for this function:

int mpf_ILLraw_first_nondefault_bound ( mpf_ILLlpdata lp  ) 

Definition at line 769 of file mpf_rawlp.c.

References ILL_FAILtrue_no_rval, mpf_ILLlpdata::lower, mpf_ILLraw_default_lower(), mpf_ILLraw_default_upper(), mpf_ILLlpdata::nstruct, NULL, mpf_ILLlpdata::structmap, and mpf_ILLlpdata::upper.

Referenced by mpf_write_bounds().

Here is the call graph for this function:

int mpf_ILLraw_init_bounds ( mpf_rawlpdata lp  ) 

Definition at line 586 of file mpf_rawlp.c.

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

Referenced by mpf_ILLraw_fill_in_bounds(), mpf_read_bounds(), and mpf_read_mps_section().

int mpf_ILLraw_init_ranges ( mpf_rawlpdata lp  ) 

Definition at line 300 of file mpf_rawlp.c.

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

Referenced by mpf_read_mps_section().

int mpf_ILLraw_init_rhs ( mpf_rawlpdata lp  ) 

Definition at line 281 of file mpf_rawlp.c.

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

Referenced by mpf_read_mps_section().

int mpf_ILLraw_is_mem_other_sos ( mpf_rawlpdata lp,
int  colind 
)

Definition at line 396 of file mpf_rawlp.c.

References mpf_rawlpdata::is_sos_member, and mpf_rawlpdata::nsos.

Referenced by mpf_ILLraw_add_sos_member(), and mpf_mps_read_col_line().

const char* mpf_ILLraw_rowname ( mpf_rawlpdata lp,
int  i 
)

Definition at line 200 of file mpf_rawlp.c.

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

Referenced by mpf_add_ranges(), mpf_add_rhs(), mpf_add_var(), mpf_ILLcheck_rawlpdata(), mpf_ILLprint_rawlpdata(), mpf_ILLread_constraint_expr(), mpf_ILLread_one_constraint(), and mpf_transferSenseRhsRowNames().

Here is the call graph for this function:

const char* mpf_ILLraw_set_binaryBound ( mpf_rawlpdata lp,
int  i 
)

Definition at line 682 of file mpf_rawlp.c.

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

Referenced by mpf_mps_set_bound().

int mpf_ILLraw_set_bounds_name ( mpf_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file mpf_rawlp.c.

References mpf_rawlpdata::boundsname, and mpf_set_field_name().

Referenced by mpf_add_bounds().

Here is the call graph for this function:

const char* mpf_ILLraw_set_fixedBound ( mpf_rawlpdata lp,
int  i,
mpf_t  bnd 
)

Definition at line 647 of file mpf_rawlp.c.

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

Referenced by mpf_mps_set_bound(), and mpf_read_bounds().

const char* mpf_ILLraw_set_lowerBound ( mpf_rawlpdata lp,
int  i,
mpf_t  bnd 
)

Definition at line 610 of file mpf_rawlp.c.

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

Referenced by mpf_mps_set_bound(), and mpf_read_bounds().

int mpf_ILLraw_set_ranges_name ( mpf_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file mpf_rawlp.c.

References mpf_set_field_name(), and mpf_rawlpdata::rangesname.

Referenced by mpf_add_ranges().

Here is the call graph for this function:

int mpf_ILLraw_set_rhs_name ( mpf_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file mpf_rawlp.c.

References mpf_set_field_name(), and mpf_rawlpdata::rhsname.

Referenced by mpf_add_rhs().

Here is the call graph for this function:

const char* mpf_ILLraw_set_unbound ( mpf_rawlpdata lp,
int  i 
)

Definition at line 665 of file mpf_rawlp.c.

References ILL_FAILtrue_no_rval, mpf_rawlpdata::lbind, mpf_rawlpdata::lower, mpf_ILL_MAXDOUBLE, mpf_ILL_MINDOUBLE, mpf_rawlpdata::ncols, NULL, mpf_rawlpdata::ubind, and mpf_rawlpdata::upper.

Referenced by mpf_mps_set_bound(), and mpf_read_bounds().

const char* mpf_ILLraw_set_upperBound ( mpf_rawlpdata lp,
int  i,
mpf_t  bnd 
)

Definition at line 626 of file mpf_rawlp.c.

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

Referenced by mpf_mps_set_bound(), and mpf_read_bounds().

int mpf_ILLrawlpdata_to_lpdata ( mpf_rawlpdata raw,
mpf_ILLlpdata lp 
)

Definition at line 1495 of file mpf_rawlp.c.

References ILL_IFDOTRACE, ILL_RESULT, mpf_convert_rawlpdata_to_lpdata(), mpf_ILLlp_add_logicals(), and mpf_ILLprint_rawlpdata().

Referenced by mpf_ILLread().

Here is the call graph for this function:

static int mpf_initStructmap ( mpf_ILLlpdata lp  )  [static]

Definition at line 1327 of file mpf_rawlp.c.

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

Referenced by mpf_convert_rawlpdata_to_lpdata().

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

Definition at line 1063 of file mpf_rawlp.c.

References ILL_FAILfalse, and ILLsymboltab_register().

Referenced by mpf_transferSenseRhsRowNames().

Here is the call graph for this function:

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

Definition at line 1514 of file mpf_rawlp.c.

References ILL_RETURN.

Referenced by mpf_ILLraw_set_bounds_name(), mpf_ILLraw_set_ranges_name(), and mpf_ILLraw_set_rhs_name().

static int mpf_transferColNamesLowerUpperIntMarker ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 997 of file mpf_rawlp.c.

References mpf_ILLlpdata::colnames, mpf_ILLlpdata::coltab, ILL_FAILfalse, ILL_IFDOTRACE, ILL_IFFREE, ILL_IFTRACE, ILL_RETURN, ILL_SAFE_MALLOC, ILLsymboltab_register(), mpf_rawlpdata::intmarker, mpf_ILLlpdata::intmarker, mpf_ILLlpdata::lower, mpf_rawlpdata::lower, mpf_ILLraw_colname(), mpf_rawlpdata::ncols, mpf_ILLlpdata::ncols, mpf_ILLlpdata::upper, and mpf_rawlpdata::upper.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_transferObjective ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 948 of file mpf_rawlp.c.

References mpf_colptr::coef, mpf_rawlpdata::cols, mpf_rawlpdata::error_collector, ILL_FAILfalse, ILL_SAFE_MALLOC, mpf_ILLdata_warn(), mpf_ILLraw_colname(), mpf_rawlpdata::ncols, mpf_ILLlpdata::ncols, mpf_colptr::next, NULL, mpf_ILLlpdata::obj, mpf_rawlpdata::objindex, and mpf_colptr::this_val.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_transferRanges ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1258 of file mpf_rawlp.c.

References mpf_colptr::coef, mpf_rawlpdata::error_collector, mpf_ILLdata_error(), mpf_colptr::next, mpf_ILLlpdata::nrows, mpf_rawlpdata::ranges, mpf_ILLlpdata::rangeval, mpf_ILLlpdata::rhs, mpf_rawlpdata::rowsense, mpf_ILLlpdata::sense, and mpf_colptr::this_val.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_transferSenseRhsRowNames ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1077 of file mpf_rawlp.c.

References ILL_FAILfalse, ILL_SAFE_MALLOC, mpf_ILLraw_rowname(), mpf_safeRegister(), mpf_ILLlpdata::nrows, NULL, mpf_rawlpdata::objindex, mpf_ILLlpdata::objname, mpf_ILLlpdata::refind, mpf_ILLlpdata::refrowname, mpf_ILLlpdata::rhs, mpf_ILLlpdata::rownames, mpf_ILLlpdata::rowtab, and mpf_ILLlpdata::sense.

Referenced by mpf_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int mpf_whichColsAreUsed ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 864 of file mpf_rawlp.c.

References mpf_rawlpdata::cols, ILL_SAFE_MALLOC, mpf_rawlpdata::ncols, mpf_colptr::next, NULL, mpf_rawlpdata::objindex, mpf_rawlpdata::rowsense, and mpf_colptr::this_val.

Referenced by mpf_convert_rawlpdata_to_lpdata().

static int mpf_whichRowsAreUsed ( mpf_rawlpdata raw,
mpf_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 921 of file mpf_rawlp.c.

References mpf_ILLlpdata::nrows, mpf_rawlpdata::nrows, and mpf_rawlpdata::rowsense.

Referenced by mpf_convert_rawlpdata_to_lpdata().


Variable Documentation

int TRACE = 0 [static]

Definition at line 38 of file mpf_rawlp.c.


Generated on Thu Mar 29 09:43:03 2012 for QSopt_ex by  doxygen 1.4.7