ldbl_rawlp.c File Reference

#include "qs_config.h"
#include "config.h"
#include "ldbl_sortrus.h"
#include "ldbl_iqsutil.h"
#include "ldbl_rawlp.h"
#include "allocrus.h"

Include dependency graph for ldbl_rawlp.c:

Go to the source code of this file.

Functions

 ILL_PTRWORLD_ROUTINES (ILL_PTRWORLD_LISTFREE_ROUTINE(ldbl_colptr, colptralloc, colptr_bulkalloc, colptrfree)
static int ldbl_buildMatrix (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *rowindex, int *colindex)
static int ldbl_buildSosInfo (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *colindex)
static int ldbl_convert_rawlpdata_to_lpdata (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp)
static int ldbl_ILLcheck_rawlpdata (ldbl_rawlpdata *lp)
ldbl_colptrldbl_ILLcolptralloc (ILLptrworld *p)
int ldbl_ILLdata_error (ldbl_qserror_collector *collector, const char *format,...)
void ldbl_ILLdata_warn (ldbl_qserror_collector *collector, const char *format,...)
void ldbl_ILLfree_rawlpdata (ldbl_rawlpdata *lp)
void ldbl_ILLinit_rawlpdata (ldbl_rawlpdata *lp, ldbl_qserror_collector *collector)
static int ldbl_ILLmsg (ldbl_qserror_collector *collector, int isError, const char *format, va_list args)
void ldbl_ILLprint_rawlpdata (ldbl_rawlpdata *lp)
int ldbl_ILLraw_add_col (ldbl_rawlpdata *lp, const char *name, int intmarker)
int ldbl_ILLraw_add_col_coef (ldbl_rawlpdata *lp, int colind, int rowind, long double coef)
int ldbl_ILLraw_add_ranges_coef (ldbl_rawlpdata *lp, int rowind, long double coef)
int ldbl_ILLraw_add_row (ldbl_rawlpdata *lp, const char *name, int sense, const long double rhs)
int ldbl_ILLraw_add_sos (ldbl_rawlpdata *lp, int tp)
int ldbl_ILLraw_add_sos_member (ldbl_rawlpdata *lp, int colind)
static int ldbl_ILLraw_check_bounds (ldbl_rawlpdata *lp)
void ldbl_ILLraw_clear_matrix (ldbl_rawlpdata *lp)
const char * ldbl_ILLraw_colname (ldbl_rawlpdata *lp, int i)
int ldbl_ILLraw_default_lower (ldbl_ILLlpdata *lp, int i)
int ldbl_ILLraw_default_upper (ldbl_ILLlpdata *lp, int i, int ri)
int ldbl_ILLraw_fill_in_bounds (ldbl_rawlpdata *lp)
int ldbl_ILLraw_fill_in_rownames (ldbl_rawlpdata *lp)
int ldbl_ILLraw_first_nondefault_bound (ldbl_ILLlpdata *lp)
int ldbl_ILLraw_init_bounds (ldbl_rawlpdata *lp)
int ldbl_ILLraw_init_ranges (ldbl_rawlpdata *lp)
int ldbl_ILLraw_init_rhs (ldbl_rawlpdata *lp)
int ldbl_ILLraw_is_mem_other_sos (ldbl_rawlpdata *lp, int colind)
const char * ldbl_ILLraw_rowname (ldbl_rawlpdata *lp, int i)
const char * ldbl_ILLraw_set_binaryBound (ldbl_rawlpdata *lp, int i)
int ldbl_ILLraw_set_bounds_name (ldbl_rawlpdata *lp, const char *name, int *skip)
const char * ldbl_ILLraw_set_fixedBound (ldbl_rawlpdata *lp, int i, long double bnd)
const char * ldbl_ILLraw_set_lowerBound (ldbl_rawlpdata *lp, int i, long double bnd)
int ldbl_ILLraw_set_ranges_name (ldbl_rawlpdata *lp, const char *name, int *skip)
int ldbl_ILLraw_set_rhs_name (ldbl_rawlpdata *lp, const char *name, int *skip)
const char * ldbl_ILLraw_set_unbound (ldbl_rawlpdata *lp, int i)
const char * ldbl_ILLraw_set_upperBound (ldbl_rawlpdata *lp, int i, long double bnd)
int ldbl_ILLrawlpdata_to_lpdata (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp)
static int ldbl_initStructmap (ldbl_ILLlpdata *lp)
static void ldbl_safeRegister (ILLsymboltab *tab, const char *name, int i)
static int ldbl_set_field_name (char **field, const char *name, int *skip)
static int ldbl_transferColNamesLowerUpperIntMarker (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *colindex)
static int ldbl_transferObjective (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *colindex)
static int ldbl_transferRanges (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *rowindex)
static int ldbl_transferSenseRhsRowNames (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *rowindex)
static int ldbl_whichColsAreUsed (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *colindex)
static int ldbl_whichRowsAreUsed (ldbl_rawlpdata *raw, ldbl_ILLlpdata *lp, int *rowindex)

Variables

static int TRACE = 0


Function Documentation

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

Definition at line 40 of file ldbl_rawlp.c.

References ldbl_ILL_MAXDOUBLE, and ldbl_ILL_MINDOUBLE.

static int ldbl_buildMatrix ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  rowindex,
int *  colindex 
) [static]

Definition at line 1131 of file ldbl_rawlp.c.

References ldbl_ILLlpdata::A, ldbl_ILLlpdata::colnames, ldbl_rawlpdata::cols, ldbl_rawlpdata::error_collector, ILL_SAFE_MALLOC, ldbl_ILLdata_warn(), ldbl_ILLmatrix::matbeg, ldbl_ILLmatrix::matcnt, ldbl_rawlpdata::ncols, ldbl_ILLlpdata::ncols, ldbl_colptr::next, ldbl_ILLlpdata::nrows, NULL, ldbl_ILLlpdata::nzcount, and ldbl_colptr::this_val.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_buildSosInfo ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 1344 of file ldbl_rawlp.c.

References ldbl_sosptr::first, ILL_SAFE_MALLOC, ldbl_ILLlpdata::is_sos_mem, ldbl_rawlpdata::is_sos_member, ldbl_ILLmatrix::matbeg, ldbl_ILLmatrix::matcnt, ldbl_ILLmatrix::matcols, ldbl_ILLmatrix::matcolsize, ldbl_ILLmatrix::matfree, ldbl_ILLmatrix::matind, ldbl_ILLmatrix::matrows, ldbl_ILLmatrix::matsize, ldbl_ILLmatrix::matval, ldbl_rawlpdata::ncols, ldbl_ILLlpdata::ncols, ldbl_sosptr::nelem, ldbl_rawlpdata::nsos, ldbl_ILLlpdata::sos, ldbl_rawlpdata::sos_col, ldbl_rawlpdata::sos_set, ldbl_ILLlpdata::sos_type, ldbl_rawlpdata::sos_weight, and ldbl_sosptr::type.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

static int ldbl_convert_rawlpdata_to_lpdata ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp 
) [static]

Definition at line 1407 of file ldbl_rawlp.c.

References ldbl_ILLlpdata::A, ldbl_ILLlpdata::colsize, ldbl_ILLlpdata::coltab, ldbl_rawlpdata::error_collector, ILL_CLEANUP_IF, ILL_FAILfalse, ILL_FAILtrue, ILL_IFDOTRACE, ILL_IFFREE, ILL_RESULT, ILL_SAFE_MALLOC, ILLsymboltab_create(), ldbl_buildMatrix(), ldbl_buildSosInfo(), ldbl_ILL_MAX, ldbl_ILL_MIN, ldbl_ILLcheck_rawlpdata(), ldbl_ILLdata_error(), ldbl_ILLdata_warn(), ldbl_ILLfree_rawlpdata(), ldbl_ILLlpdata_init(), ldbl_ILLmatrix_prt(), ldbl_initStructmap(), ldbl_transferColNamesLowerUpperIntMarker(), ldbl_transferObjective(), ldbl_transferRanges(), ldbl_transferSenseRhsRowNames(), ldbl_whichColsAreUsed(), ldbl_whichRowsAreUsed(), ldbl_rawlpdata::name, ldbl_ILLlpdata::ncols, ldbl_rawlpdata::ncols, ldbl_ILLlpdata::nrows, ldbl_rawlpdata::nrows, ldbl_ILLlpdata::nstruct, NULL, ldbl_rawlpdata::objindex, ldbl_rawlpdata::objsense, ldbl_ILLlpdata::objsense, ldbl_ILLlpdata::probname, ldbl_rawlpdata::ranges, ldbl_ILLlpdata::rowsize, ldbl_ILLlpdata::rowtab, and ldbl_ILLlpdata::structsize.

Referenced by ldbl_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_ILLcheck_rawlpdata ( ldbl_rawlpdata lp  )  [static]

Definition at line 496 of file ldbl_rawlp.c.

References ldbl_rawlpdata::error_collector, ldbl_sosptr::first, ILL_FAILfalse, ILL_SAFE_MALLOC, ldbl_ILLdata_error(), ldbl_ILLraw_colname(), ldbl_ILLraw_rowname(), ldbl_ILLutil_EGlpNum_perm_quicksort(), ldbl_rawlpdata::ncols, ldbl_sosptr::nelem, NULL, and ldbl_rawlpdata::objindex.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

ldbl_colptr* ldbl_ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file ldbl_rawlp.c.

References ldbl_colptr::coef.

Referenced by ldbl_ILLraw_add_col_coef(), and ldbl_ILLraw_add_ranges_coef().

int ldbl_ILLdata_error ( ldbl_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file ldbl_rawlp.c.

References ldbl_ILLmsg().

Referenced by ldbl_convert_rawlpdata_to_lpdata(), ldbl_ILLcheck_rawlpdata(), ldbl_ILLraw_check_bounds(), ldbl_ILLwrite_lp(), ldbl_mps_fill_in(), and ldbl_transferRanges().

Here is the call graph for this function:

void ldbl_ILLdata_warn ( ldbl_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file ldbl_rawlp.c.

References ldbl_ILLmsg().

Referenced by ldbl_buildMatrix(), ldbl_convert_rawlpdata_to_lpdata(), ldbl_fix_names(), ldbl_ILLraw_fill_in_rownames(), ldbl_ILLwrite_mps(), ldbl_mps_fill_in(), and ldbl_transferObjective().

Here is the call graph for this function:

void ldbl_ILLfree_rawlpdata ( ldbl_rawlpdata lp  ) 

Definition at line 144 of file ldbl_rawlp.c.

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

Referenced by ldbl_convert_rawlpdata_to_lpdata(), ldbl_ILLeditor(), and ldbl_ILLread().

Here is the call graph for this function:

void ldbl_ILLinit_rawlpdata ( ldbl_rawlpdata lp,
ldbl_qserror_collector collector 
)

Definition at line 70 of file ldbl_rawlp.c.

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

Referenced by ldbl_ILLfree_rawlpdata(), ldbl_ILLread(), ldbl_ILLread_lp(), and ldbl_pull_info_from_p().

Here is the call graph for this function:

static int ldbl_ILLmsg ( ldbl_qserror_collector collector,
int  isError,
const char *  format,
va_list  args 
) [static]

Definition at line 1697 of file ldbl_rawlp.c.

References ldbl_ILLformat_error, ldbl_ILLformat_error_create(), ldbl_ILLformat_error_delete(), NULL, QS_DATA_ERROR, and QS_DATA_WARN.

Referenced by ldbl_ILLdata_error(), and ldbl_ILLdata_warn().

Here is the call graph for this function:

void ldbl_ILLprint_rawlpdata ( ldbl_rawlpdata lp  ) 

Definition at line 1561 of file ldbl_rawlp.c.

References ldbl_colptr::coef, ldbl_rawlpdata::cols, ldbl_ILLraw_colname(), ldbl_ILLraw_rowname(), ldbl_rawlpdata::name, ldbl_rawlpdata::ncols, ldbl_colptr::next, ldbl_rawlpdata::nrows, ldbl_rawlpdata::rhs, ldbl_rawlpdata::rowsense, and ldbl_colptr::this_val.

Referenced by ldbl_ILLrawlpdata_to_lpdata().

Here is the call graph for this function:

int ldbl_ILLraw_add_col ( ldbl_rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file ldbl_rawlp.c.

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

Referenced by ldbl_add_var(), ldbl_mps_read_col_line(), and ldbl_pull_info_from_p().

Here is the call graph for this function:

int ldbl_ILLraw_add_col_coef ( ldbl_rawlpdata lp,
int  colind,
int  rowind,
long double  coef 
)

Definition at line 319 of file ldbl_rawlp.c.

References ldbl_colptr::coef, ldbl_rawlpdata::cols, ldbl_ILLcolptralloc(), ldbl_colptr::next, ldbl_rawlpdata::ptrworld, and ldbl_colptr::this_val.

Referenced by ldbl_add_var(), and ldbl_mps_read_col_line().

Here is the call graph for this function:

int ldbl_ILLraw_add_ranges_coef ( ldbl_rawlpdata lp,
int  rowind,
long double  coef 
)

Definition at line 339 of file ldbl_rawlp.c.

References ldbl_colptr::coef, ldbl_ILLcolptralloc(), ldbl_colptr::next, ldbl_rawlpdata::ptrworld, ldbl_rawlpdata::ranges, ldbl_rawlpdata::rangesind, and ldbl_colptr::this_val.

Referenced by ldbl_add_ranges().

Here is the call graph for this function:

int ldbl_ILLraw_add_row ( ldbl_rawlpdata lp,
const char *  name,
int  sense,
const long double  rhs 
)

Definition at line 455 of file ldbl_rawlp.c.

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

Referenced by ldbl_add_row(), ldbl_ILLread_one_constraint(), ldbl_pull_info_from_p(), and ldbl_read_objective().

Here is the call graph for this function:

int ldbl_ILLraw_add_sos ( ldbl_rawlpdata lp,
int  tp 
)

Definition at line 358 of file ldbl_rawlp.c.

References ldbl_sosptr::first, ILL_RETURN, ldbl_sosptr::nelem, ldbl_rawlpdata::nsos, ldbl_rawlpdata::sos_set, ldbl_rawlpdata::sos_setsize, and ldbl_sosptr::type.

Referenced by ldbl_mps_read_marker_line().

int ldbl_ILLraw_add_sos_member ( ldbl_rawlpdata lp,
int  colind 
)

Definition at line 404 of file ldbl_rawlp.c.

References ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, ldbl_ILLraw_is_mem_other_sos(), and ldbl_rawlpdata::nsos.

Referenced by ldbl_mps_read_col_line().

Here is the call graph for this function:

static int ldbl_ILLraw_check_bounds ( ldbl_rawlpdata lp  )  [static]

Definition at line 746 of file ldbl_rawlp.c.

References ldbl_rawlpdata::error_collector, ILL_FAILtrue, ldbl_rawlpdata::lbind, ldbl_ILLdata_error(), ldbl_ILLraw_colname(), ldbl_rawlpdata::lower, ldbl_rawlpdata::ncols, NULL, ldbl_rawlpdata::ubind, and ldbl_rawlpdata::upper.

Here is the call graph for this function:

void ldbl_ILLraw_clear_matrix ( ldbl_rawlpdata lp  ) 

Definition at line 118 of file ldbl_rawlp.c.

References ldbl_rawlpdata::cols, ldbl_rawlpdata::ncols, ldbl_colptr::next, NULL, and ldbl_rawlpdata::ptrworld.

Referenced by ldbl_add_col(), ldbl_add_row(), and ldbl_ILLfree_rawlpdata().

const char* ldbl_ILLraw_colname ( ldbl_rawlpdata lp,
int  i 
)

Definition at line 213 of file ldbl_rawlp.c.

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

Referenced by ldbl_fill_matrix(), ldbl_ILLcheck_rawlpdata(), ldbl_ILLprint_rawlpdata(), ldbl_ILLraw_check_bounds(), ldbl_mps_read_col_line(), ldbl_read_bounds(), ldbl_transferColNamesLowerUpperIntMarker(), and ldbl_transferObjective().

Here is the call graph for this function:

int ldbl_ILLraw_default_lower ( ldbl_ILLlpdata lp,
int  i 
)

Definition at line 786 of file ldbl_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, ldbl_ILL_MINDOUBLE, ldbl_ILLlpdata::lower, ldbl_ILLlpdata::ncols, NULL, and ldbl_ILLlpdata::upper.

Referenced by ldbl_ILLraw_first_nondefault_bound(), and ldbl_write_bounds().

int ldbl_ILLraw_default_upper ( ldbl_ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file ldbl_rawlp.c.

References ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, ldbl_ILLlpdata::intmarker, ldbl_ILL_MAXDOUBLE, ldbl_ILLlpdata::lower, ldbl_ILLlpdata::ncols, NULL, and ldbl_ILLlpdata::upper.

Referenced by ldbl_ILLraw_first_nondefault_bound(), and ldbl_write_bounds().

int ldbl_ILLraw_fill_in_bounds ( ldbl_rawlpdata lp  ) 

Definition at line 699 of file ldbl_rawlp.c.

References ILL_FAILtrue, ldbl_rawlpdata::lbind, ldbl_ILL_MINDOUBLE, ldbl_ILLraw_init_bounds(), ldbl_rawlpdata::lower, ldbl_rawlpdata::ncols, NULL, ldbl_rawlpdata::ubind, and ldbl_rawlpdata::upper.

Referenced by ldbl_ILLread_lp().

Here is the call graph for this function:

int ldbl_ILLraw_fill_in_rownames ( ldbl_rawlpdata lp  ) 

Definition at line 834 of file ldbl_rawlp.c.

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

Referenced by ldbl_ILLread_lp().

Here is the call graph for this function:

int ldbl_ILLraw_first_nondefault_bound ( ldbl_ILLlpdata lp  ) 

Definition at line 769 of file ldbl_rawlp.c.

References ILL_FAILtrue_no_rval, ldbl_ILLraw_default_lower(), ldbl_ILLraw_default_upper(), ldbl_ILLlpdata::lower, ldbl_ILLlpdata::nstruct, NULL, ldbl_ILLlpdata::structmap, and ldbl_ILLlpdata::upper.

Referenced by ldbl_write_bounds().

Here is the call graph for this function:

int ldbl_ILLraw_init_bounds ( ldbl_rawlpdata lp  ) 

Definition at line 586 of file ldbl_rawlp.c.

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

Referenced by ldbl_ILLraw_fill_in_bounds(), ldbl_read_bounds(), and ldbl_read_mps_section().

int ldbl_ILLraw_init_ranges ( ldbl_rawlpdata lp  ) 

Definition at line 300 of file ldbl_rawlp.c.

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

Referenced by ldbl_read_mps_section().

int ldbl_ILLraw_init_rhs ( ldbl_rawlpdata lp  ) 

Definition at line 281 of file ldbl_rawlp.c.

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

Referenced by ldbl_read_mps_section().

int ldbl_ILLraw_is_mem_other_sos ( ldbl_rawlpdata lp,
int  colind 
)

Definition at line 396 of file ldbl_rawlp.c.

References ldbl_rawlpdata::is_sos_member, and ldbl_rawlpdata::nsos.

Referenced by ldbl_ILLraw_add_sos_member(), and ldbl_mps_read_col_line().

const char* ldbl_ILLraw_rowname ( ldbl_rawlpdata lp,
int  i 
)

Definition at line 200 of file ldbl_rawlp.c.

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

Referenced by ldbl_add_ranges(), ldbl_add_rhs(), ldbl_add_var(), ldbl_ILLcheck_rawlpdata(), ldbl_ILLprint_rawlpdata(), ldbl_ILLread_constraint_expr(), ldbl_ILLread_one_constraint(), and ldbl_transferSenseRhsRowNames().

Here is the call graph for this function:

const char* ldbl_ILLraw_set_binaryBound ( ldbl_rawlpdata lp,
int  i 
)

Definition at line 682 of file ldbl_rawlp.c.

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

Referenced by ldbl_mps_set_bound().

int ldbl_ILLraw_set_bounds_name ( ldbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file ldbl_rawlp.c.

References ldbl_rawlpdata::boundsname, and ldbl_set_field_name().

Referenced by ldbl_add_bounds().

Here is the call graph for this function:

const char* ldbl_ILLraw_set_fixedBound ( ldbl_rawlpdata lp,
int  i,
long double  bnd 
)

Definition at line 647 of file ldbl_rawlp.c.

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

Referenced by ldbl_mps_set_bound(), and ldbl_read_bounds().

const char* ldbl_ILLraw_set_lowerBound ( ldbl_rawlpdata lp,
int  i,
long double  bnd 
)

Definition at line 610 of file ldbl_rawlp.c.

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

Referenced by ldbl_mps_set_bound(), and ldbl_read_bounds().

int ldbl_ILLraw_set_ranges_name ( ldbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file ldbl_rawlp.c.

References ldbl_set_field_name(), and ldbl_rawlpdata::rangesname.

Referenced by ldbl_add_ranges().

Here is the call graph for this function:

int ldbl_ILLraw_set_rhs_name ( ldbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file ldbl_rawlp.c.

References ldbl_set_field_name(), and ldbl_rawlpdata::rhsname.

Referenced by ldbl_add_rhs().

Here is the call graph for this function:

const char* ldbl_ILLraw_set_unbound ( ldbl_rawlpdata lp,
int  i 
)

Definition at line 665 of file ldbl_rawlp.c.

References ILL_FAILtrue_no_rval, ldbl_rawlpdata::lbind, ldbl_ILL_MAXDOUBLE, ldbl_ILL_MINDOUBLE, ldbl_rawlpdata::lower, ldbl_rawlpdata::ncols, NULL, ldbl_rawlpdata::ubind, and ldbl_rawlpdata::upper.

Referenced by ldbl_mps_set_bound(), and ldbl_read_bounds().

const char* ldbl_ILLraw_set_upperBound ( ldbl_rawlpdata lp,
int  i,
long double  bnd 
)

Definition at line 626 of file ldbl_rawlp.c.

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

Referenced by ldbl_mps_set_bound(), and ldbl_read_bounds().

int ldbl_ILLrawlpdata_to_lpdata ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp 
)

Definition at line 1495 of file ldbl_rawlp.c.

References ILL_IFDOTRACE, ILL_RESULT, ldbl_convert_rawlpdata_to_lpdata(), ldbl_ILLlp_add_logicals(), and ldbl_ILLprint_rawlpdata().

Referenced by ldbl_ILLread().

Here is the call graph for this function:

static int ldbl_initStructmap ( ldbl_ILLlpdata lp  )  [static]

Definition at line 1327 of file ldbl_rawlp.c.

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

Referenced by ldbl_convert_rawlpdata_to_lpdata().

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

Definition at line 1063 of file ldbl_rawlp.c.

References ILL_FAILfalse, and ILLsymboltab_register().

Referenced by ldbl_transferSenseRhsRowNames().

Here is the call graph for this function:

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

Definition at line 1514 of file ldbl_rawlp.c.

References ILL_RETURN.

Referenced by ldbl_ILLraw_set_bounds_name(), ldbl_ILLraw_set_ranges_name(), and ldbl_ILLraw_set_rhs_name().

static int ldbl_transferColNamesLowerUpperIntMarker ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 997 of file ldbl_rawlp.c.

References ldbl_ILLlpdata::colnames, ldbl_ILLlpdata::coltab, ILL_FAILfalse, ILL_IFDOTRACE, ILL_IFFREE, ILL_IFTRACE, ILL_RETURN, ILL_SAFE_MALLOC, ILLsymboltab_register(), ldbl_rawlpdata::intmarker, ldbl_ILLlpdata::intmarker, ldbl_ILLraw_colname(), ldbl_ILLlpdata::lower, ldbl_rawlpdata::lower, ldbl_rawlpdata::ncols, ldbl_ILLlpdata::ncols, ldbl_ILLlpdata::upper, and ldbl_rawlpdata::upper.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_transferObjective ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 948 of file ldbl_rawlp.c.

References ldbl_colptr::coef, ldbl_rawlpdata::cols, ldbl_rawlpdata::error_collector, ILL_FAILfalse, ILL_SAFE_MALLOC, ldbl_ILLdata_warn(), ldbl_ILLraw_colname(), ldbl_rawlpdata::ncols, ldbl_ILLlpdata::ncols, ldbl_colptr::next, NULL, ldbl_ILLlpdata::obj, ldbl_rawlpdata::objindex, and ldbl_colptr::this_val.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_transferRanges ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1258 of file ldbl_rawlp.c.

References ldbl_colptr::coef, ldbl_rawlpdata::error_collector, ldbl_ILLdata_error(), ldbl_colptr::next, ldbl_ILLlpdata::nrows, ldbl_rawlpdata::ranges, ldbl_ILLlpdata::rangeval, ldbl_ILLlpdata::rhs, ldbl_rawlpdata::rowsense, ldbl_ILLlpdata::sense, and ldbl_colptr::this_val.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_transferSenseRhsRowNames ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 1077 of file ldbl_rawlp.c.

References ILL_FAILfalse, ILL_SAFE_MALLOC, ldbl_ILLraw_rowname(), ldbl_safeRegister(), ldbl_ILLlpdata::nrows, NULL, ldbl_rawlpdata::objindex, ldbl_ILLlpdata::objname, ldbl_ILLlpdata::refind, ldbl_ILLlpdata::refrowname, ldbl_ILLlpdata::rhs, ldbl_ILLlpdata::rownames, ldbl_ILLlpdata::rowtab, and ldbl_ILLlpdata::sense.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

Here is the call graph for this function:

static int ldbl_whichColsAreUsed ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  colindex 
) [static]

Definition at line 864 of file ldbl_rawlp.c.

References ldbl_rawlpdata::cols, ILL_SAFE_MALLOC, ldbl_rawlpdata::ncols, ldbl_colptr::next, NULL, ldbl_rawlpdata::objindex, ldbl_rawlpdata::rowsense, and ldbl_colptr::this_val.

Referenced by ldbl_convert_rawlpdata_to_lpdata().

static int ldbl_whichRowsAreUsed ( ldbl_rawlpdata raw,
ldbl_ILLlpdata lp,
int *  rowindex 
) [static]

Definition at line 921 of file ldbl_rawlp.c.

References ldbl_ILLlpdata::nrows, ldbl_rawlpdata::nrows, and ldbl_rawlpdata::rowsense.

Referenced by ldbl_convert_rawlpdata_to_lpdata().


Variable Documentation

int TRACE = 0 [static]

Definition at line 38 of file ldbl_rawlp.c.


Generated on Thu Mar 29 09:40:49 2012 for QSopt_ex by  doxygen 1.4.7