fp20_rawlp.h File Reference

#include "trace.h"
#include "fp20_lpdata.h"
#include "fp20_iqsutil.h"
#include "fp20_format.h"
#include "fp20_lpdefs.h"

Include dependency graph for fp20_rawlp.h:

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

Go to the source code of this file.

Data Structures

struct  fp20_colptr
struct  fp20_rawlpdata
struct  fp20_sosptr

Defines

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

Functions

fp20_colptrfp20_ILLcolptralloc (ILLptrworld *p)
int fp20_ILLdata_error (fp20_qserror_collector *collector, const char *format,...)
void fp20_ILLdata_warn (fp20_qserror_collector *collector, const char *format,...)
void fp20_ILLfree_rawlpdata (fp20_rawlpdata *lp)
void fp20_ILLinit_rawlpdata (fp20_rawlpdata *lp, fp20_qserror_collector *collector)
void fp20_ILLprint_rawlpdata (fp20_rawlpdata *lp)
int fp20_ILLraw_add_col (fp20_rawlpdata *lp, const char *name, int intmarker)
int fp20_ILLraw_add_col_coef (fp20_rawlpdata *lp, int colind, int rowind, EGfp20_t coef)
int fp20_ILLraw_add_ranges_coef (fp20_rawlpdata *lp, int rowind, EGfp20_t coef)
int fp20_ILLraw_add_row (fp20_rawlpdata *lp, const char *name, int sense, const EGfp20_t rhs)
int fp20_ILLraw_add_sos (fp20_rawlpdata *lp, int sos_type)
int fp20_ILLraw_add_sos_member (fp20_rawlpdata *lp, int colind)
void fp20_ILLraw_clear_matrix (fp20_rawlpdata *lp)
const char * fp20_ILLraw_colname (fp20_rawlpdata *lp, int i)
int fp20_ILLraw_default_lower (fp20_ILLlpdata *lp, int i)
int fp20_ILLraw_default_upper (fp20_ILLlpdata *lp, int i, int ri)
int fp20_ILLraw_fill_in_bounds (fp20_rawlpdata *lp)
int fp20_ILLraw_fill_in_rownames (fp20_rawlpdata *lp)
int fp20_ILLraw_first_nondefault_bound (fp20_ILLlpdata *lp)
int fp20_ILLraw_init_bounds (fp20_rawlpdata *lp)
int fp20_ILLraw_init_ranges (fp20_rawlpdata *lp)
int fp20_ILLraw_init_rhs (fp20_rawlpdata *lp)
int fp20_ILLraw_is_mem_other_sos (fp20_rawlpdata *lp, int colind)
const char * fp20_ILLraw_rowname (fp20_rawlpdata *lp, int i)
const char * fp20_ILLraw_set_binaryBound (fp20_rawlpdata *lp, int i)
int fp20_ILLraw_set_bounds_name (fp20_rawlpdata *lp, const char *name, int *skip)
const char * fp20_ILLraw_set_fixedBound (fp20_rawlpdata *lp, int i, EGfp20_t bnd)
const char * fp20_ILLraw_set_lowerBound (fp20_rawlpdata *lp, int i, EGfp20_t bnd)
int fp20_ILLraw_set_ranges_name (fp20_rawlpdata *lp, const char *name, int *skip)
int fp20_ILLraw_set_rhs_name (fp20_rawlpdata *lp, const char *name, int *skip)
const char * fp20_ILLraw_set_unbound (fp20_rawlpdata *lp, int colind)
const char * fp20_ILLraw_set_upperBound (fp20_rawlpdata *lp, int i, EGfp20_t bnd)
char * fp20_ILLraw_unique_name (ILLsymboltab *tab, char *prefix, int i)
int fp20_ILLrawlpdata_to_lpdata (fp20_rawlpdata *raw, fp20_ILLlpdata *lp)

Variables

const int fp20_ILL_SOS_TYPE1
const int fp20_ILL_SOS_TYPE2


Define Documentation

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

Definition at line 40 of file fp20_rawlp.h.


Function Documentation

fp20_colptr* fp20_ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file fp20_rawlp.c.

References fp20_colptr::coef.

int fp20_ILLdata_error ( fp20_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file fp20_rawlp.c.

References fp20_ILLmsg(), and fp20_TRUE.

Here is the call graph for this function:

void fp20_ILLdata_warn ( fp20_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file fp20_rawlp.c.

References fp20_FALSE, and fp20_ILLmsg().

Here is the call graph for this function:

void fp20_ILLfree_rawlpdata ( fp20_rawlpdata lp  ) 

Definition at line 144 of file fp20_rawlp.c.

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

Here is the call graph for this function:

void fp20_ILLinit_rawlpdata ( fp20_rawlpdata lp,
fp20_qserror_collector collector 
)

Definition at line 70 of file fp20_rawlp.c.

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

Here is the call graph for this function:

void fp20_ILLprint_rawlpdata ( fp20_rawlpdata lp  ) 

Definition at line 1561 of file fp20_rawlp.c.

References fp20_colptr::coef, fp20_rawlpdata::cols, fp20_ILLraw_colname(), fp20_ILLraw_rowname(), fp20_rawlpdata::name, fp20_rawlpdata::ncols, fp20_colptr::next, fp20_rawlpdata::nrows, fp20_rawlpdata::rhs, fp20_rawlpdata::rowsense, and fp20_colptr::this_val.

Here is the call graph for this function:

int fp20_ILLraw_add_col ( fp20_rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file fp20_rawlp.c.

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

Here is the call graph for this function:

int fp20_ILLraw_add_col_coef ( fp20_rawlpdata lp,
int  colind,
int  rowind,
EGfp20_t  coef 
)

Definition at line 319 of file fp20_rawlp.c.

References fp20_colptr::coef, fp20_rawlpdata::cols, fp20_ILLcolptralloc(), fp20_colptr::next, fp20_rawlpdata::ptrworld, and fp20_colptr::this_val.

Here is the call graph for this function:

int fp20_ILLraw_add_ranges_coef ( fp20_rawlpdata lp,
int  rowind,
EGfp20_t  coef 
)

Definition at line 339 of file fp20_rawlp.c.

References fp20_colptr::coef, fp20_ILLcolptralloc(), fp20_colptr::next, fp20_rawlpdata::ptrworld, fp20_rawlpdata::ranges, fp20_rawlpdata::rangesind, and fp20_colptr::this_val.

Here is the call graph for this function:

int fp20_ILLraw_add_row ( fp20_rawlpdata lp,
const char *  name,
int  sense,
const EGfp20_t  rhs 
)

Definition at line 455 of file fp20_rawlp.c.

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

Here is the call graph for this function:

int fp20_ILLraw_add_sos ( fp20_rawlpdata lp,
int  sos_type 
)

Definition at line 358 of file fp20_rawlp.c.

References fp20_sosptr::first, ILL_RETURN, fp20_sosptr::nelem, fp20_rawlpdata::nsos, fp20_rawlpdata::sos_set, fp20_rawlpdata::sos_setsize, and fp20_sosptr::type.

int fp20_ILLraw_add_sos_member ( fp20_rawlpdata lp,
int  colind 
)

Definition at line 404 of file fp20_rawlp.c.

References fp20_ILLraw_is_mem_other_sos(), ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, and fp20_rawlpdata::nsos.

Here is the call graph for this function:

void fp20_ILLraw_clear_matrix ( fp20_rawlpdata lp  ) 

Definition at line 118 of file fp20_rawlp.c.

References fp20_rawlpdata::cols, fp20_rawlpdata::ncols, fp20_colptr::next, NULL, and fp20_rawlpdata::ptrworld.

const char* fp20_ILLraw_colname ( fp20_rawlpdata lp,
int  i 
)

Definition at line 213 of file fp20_rawlp.c.

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

Here is the call graph for this function:

int fp20_ILLraw_default_lower ( fp20_ILLlpdata lp,
int  i 
)

Definition at line 786 of file fp20_rawlp.c.

References fp20_ILL_MINDOUBLE, ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, fp20_ILLlpdata::lower, fp20_ILLlpdata::ncols, NULL, and fp20_ILLlpdata::upper.

int fp20_ILLraw_default_upper ( fp20_ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file fp20_rawlp.c.

References fp20_ILL_MAXDOUBLE, ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, fp20_ILLlpdata::intmarker, fp20_ILLlpdata::lower, fp20_ILLlpdata::ncols, NULL, and fp20_ILLlpdata::upper.

int fp20_ILLraw_fill_in_bounds ( fp20_rawlpdata lp  ) 

Definition at line 699 of file fp20_rawlp.c.

References fp20_ILL_MINDOUBLE, fp20_ILLraw_init_bounds(), ILL_FAILtrue, fp20_rawlpdata::lbind, fp20_rawlpdata::lower, fp20_rawlpdata::ncols, NULL, fp20_rawlpdata::ubind, and fp20_rawlpdata::upper.

Here is the call graph for this function:

int fp20_ILLraw_fill_in_rownames ( fp20_rawlpdata lp  ) 

Definition at line 834 of file fp20_rawlp.c.

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

Here is the call graph for this function:

int fp20_ILLraw_first_nondefault_bound ( fp20_ILLlpdata lp  ) 

Definition at line 769 of file fp20_rawlp.c.

References fp20_ILLraw_default_lower(), fp20_ILLraw_default_upper(), ILL_FAILtrue_no_rval, fp20_ILLlpdata::lower, fp20_ILLlpdata::nstruct, NULL, fp20_ILLlpdata::structmap, and fp20_ILLlpdata::upper.

Here is the call graph for this function:

int fp20_ILLraw_init_bounds ( fp20_rawlpdata lp  ) 

Definition at line 586 of file fp20_rawlp.c.

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

int fp20_ILLraw_init_ranges ( fp20_rawlpdata lp  ) 

Definition at line 300 of file fp20_rawlp.c.

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

int fp20_ILLraw_init_rhs ( fp20_rawlpdata lp  ) 

Definition at line 281 of file fp20_rawlp.c.

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

int fp20_ILLraw_is_mem_other_sos ( fp20_rawlpdata lp,
int  colind 
)

Definition at line 396 of file fp20_rawlp.c.

References fp20_rawlpdata::is_sos_member, and fp20_rawlpdata::nsos.

const char* fp20_ILLraw_rowname ( fp20_rawlpdata lp,
int  i 
)

Definition at line 200 of file fp20_rawlp.c.

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

Here is the call graph for this function:

const char* fp20_ILLraw_set_binaryBound ( fp20_rawlpdata lp,
int  i 
)

Definition at line 682 of file fp20_rawlp.c.

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

int fp20_ILLraw_set_bounds_name ( fp20_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file fp20_rawlp.c.

References fp20_rawlpdata::boundsname, and fp20_set_field_name().

Here is the call graph for this function:

const char* fp20_ILLraw_set_fixedBound ( fp20_rawlpdata lp,
int  i,
EGfp20_t  bnd 
)

Definition at line 647 of file fp20_rawlp.c.

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

const char* fp20_ILLraw_set_lowerBound ( fp20_rawlpdata lp,
int  i,
EGfp20_t  bnd 
)

Definition at line 610 of file fp20_rawlp.c.

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

int fp20_ILLraw_set_ranges_name ( fp20_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file fp20_rawlp.c.

References fp20_set_field_name(), and fp20_rawlpdata::rangesname.

Here is the call graph for this function:

int fp20_ILLraw_set_rhs_name ( fp20_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file fp20_rawlp.c.

References fp20_set_field_name(), and fp20_rawlpdata::rhsname.

Here is the call graph for this function:

const char* fp20_ILLraw_set_unbound ( fp20_rawlpdata lp,
int  colind 
)

Definition at line 665 of file fp20_rawlp.c.

References fp20_ILL_MAXDOUBLE, fp20_ILL_MINDOUBLE, ILL_FAILtrue_no_rval, fp20_rawlpdata::lbind, fp20_rawlpdata::lower, fp20_rawlpdata::ncols, NULL, fp20_rawlpdata::ubind, and fp20_rawlpdata::upper.

const char* fp20_ILLraw_set_upperBound ( fp20_rawlpdata lp,
int  i,
EGfp20_t  bnd 
)

Definition at line 626 of file fp20_rawlp.c.

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

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

int fp20_ILLrawlpdata_to_lpdata ( fp20_rawlpdata raw,
fp20_ILLlpdata lp 
)

Definition at line 1495 of file fp20_rawlp.c.

References fp20_convert_rawlpdata_to_lpdata(), fp20_ILLlp_add_logicals(), fp20_ILLprint_rawlpdata(), ILL_IFDOTRACE, and ILL_RESULT.

Here is the call graph for this function:


Variable Documentation

const int fp20_ILL_SOS_TYPE1

const int fp20_ILL_SOS_TYPE2


Generated on Thu Mar 29 09:38:58 2012 for QSopt_ex by  doxygen 1.4.7